#bookbrainz

/

      • Shubh joined the channel
      • 2021-11-29 33303, 2021

      • Shubh has quit
      • 2021-11-29 33331, 2021

      • Shubh joined the channel
      • 2021-11-29 33353, 2021

      • Shubh
        Hello..
      • 2021-11-29 33307, 2021

      • Shubh has quit
      • 2021-11-29 33358, 2021

      • Shubh joined the channel
      • 2021-11-29 33305, 2021

      • Shubh has quit
      • 2021-11-29 33302, 2021

      • CatQuest has quit
      • 2021-11-29 33324, 2021

      • humhumxx has quit
      • 2021-11-29 33329, 2021

      • BrainzGit joined the channel
      • 2021-11-29 33354, 2021

      • CatQuest joined the channel
      • 2021-11-29 33349, 2021

      • Shubh joined the channel
      • 2021-11-29 33311, 2021

      • Shubh
        Hello monkey...
      • 2021-11-29 33300, 2021

      • Shubh has quit
      • 2021-11-29 33306, 2021

      • Shubh49 joined the channel
      • 2021-11-29 33306, 2021

      • Shubh49 has quit
      • 2021-11-29 33354, 2021

      • Shubh joined the channel
      • 2021-11-29 33330, 2021

      • Shubh has quit
      • 2021-11-29 33355, 2021

      • monkey
        Hi Shbh if you see this
      • 2021-11-29 33344, 2021

      • Shubh joined the channel
      • 2021-11-29 33351, 2021

      • Shubh
        finnaly..
      • 2021-11-29 33300, 2021

      • monkey
        Hiya Shubh !
      • 2021-11-29 33308, 2021

      • monkey
        Connection issues?
      • 2021-11-29 33342, 2021

      • Shubh has quit
      • 2021-11-29 33314, 2021

      • Shubh joined the channel
      • 2021-11-29 33319, 2021

      • Shubh
        idk why it gets disconnected so often ;,
      • 2021-11-29 33300, 2021

      • monkey
        In any case, you can always find a log of our discusions here: https://chatlogs.metabrainz.org/libera/bookbrainz/
      • 2021-11-29 33331, 2021

      • Shubh
        Yeah that's how i find your response :)
      • 2021-11-29 33342, 2021

      • Shubh
        anyway i have lot of questions
      • 2021-11-29 33314, 2021

      • monkey
        shoot :)
      • 2021-11-29 33320, 2021

      • Shubh
        I made 3 PR's
      • 2021-11-29 33336, 2021

      • Shubh
        and nobody reviewed it yet :,
      • 2021-11-29 33314, 2021

      • monkey
        Yes, it's mainly just me reviewing PRs at the moment, so it usually takes some time for me to get to it
      • 2021-11-29 33332, 2021

      • monkey
        Usually within the week, but I do ask for your patience
      • 2021-11-29 33320, 2021

      • Shubh
        and also in first one lint checks failed so can i fix it in github without pulling it?
      • 2021-11-29 33322, 2021

      • monkey
        Possibly yes, although I usually find it's easier to make the modifications locally so I can check if the tests and linting passes
      • 2021-11-29 33340, 2021

      • Shubh
        i was kinda nervous as its my first contribution to open-source and though i messed that simple task
      • 2021-11-29 33329, 2021

      • monkey
        Don't you worry ! We all start somewhere :)
      • 2021-11-29 33303, 2021

      • Shubh
        although i passed most of the linter check but there was one related to inconsistent return
      • 2021-11-29 33350, 2021

      • Shubh
        so what should i do to fix that like return something if entity only deleted once or just remove the lint check for that line?
      • 2021-11-29 33327, 2021

      • monkey
        So you can run the linter locally before committing changes: if you have NodeJS on your machine you can use the command `npm run lint` (after installing dependencies with `npm install`)
      • 2021-11-29 33345, 2021

      • monkey
        Alternatively you can run it in a docker container, le me find the command
      • 2021-11-29 33323, 2021

      • monkey
        `docker-compose run --rm bookbrainz-site npm run lint` I believe
      • 2021-11-29 33317, 2021

      • Shubh
        How should i fix that inconsistent return check ?
      • 2021-11-29 33343, 2021

      • monkey
        Which PR is that?
      • 2021-11-29 33312, 2021

      • Shubh
        first one that entity delete twice bug
      • 2021-11-29 33326, 2021

      • monkey
        Right. I think for all those route you can use `next(new ConflictError(…` instead of `return next(new ConflictError(…`
      • 2021-11-29 33320, 2021

      • monkey
        It's complaining because in one condition you `return` something, but in other conditions nothing is returned. But in this case we don't need to return explicitly, so we can just use next(…)
      • 2021-11-29 33343, 2021

      • Shubh
        lemme try without return then
      • 2021-11-29 33326, 2021

      • Shubh
        umm..
      • 2021-11-29 33314, 2021

      • Shubh
        if i dont return it then wont the other things run as well like displayEntity ..
      • 2021-11-29 33307, 2021

      • monkey
        Ah yes, correct.
      • 2021-11-29 33339, 2021

      • CatQuest
        oh man, here both Shubh and monkey are the same colour, it makes it difficukt to read conversation :D
      • 2021-11-29 33355, 2021

      • Shubh
        what will happen if i return that displayEntity thingy?
      • 2021-11-29 33302, 2021

      • CatQuest
        difficult*
      • 2021-11-29 33309, 2021

      • Shubh
        im purple
      • 2021-11-29 33315, 2021

      • monkey
        I guess you can put the rest of the processing inside an `else { }` block
      • 2021-11-29 33340, 2021

      • Shubh
        oh
      • 2021-11-29 33304, 2021

      • Shubh
        kinda dumb of me , sorry
      • 2021-11-29 33312, 2021

      • monkey
        Not at all
      • 2021-11-29 33313, 2021

      • CatQuest
        oh is Shubhham on jira you?
      • 2021-11-29 33315, 2021

      • CatQuest
        cool :)
      • 2021-11-29 33321, 2021

      • monkey
        And I gave you a wrong tip
      • 2021-11-29 33329, 2021

      • CatQuest
      • 2021-11-29 33330, 2021

      • BrainzBot
        BB-511: Consistently sort identifiers
      • 2021-11-29 33340, 2021

      • Shubh has quit
      • 2021-11-29 33357, 2021

      • Shubh joined the channel
      • 2021-11-29 33343, 2021

      • Shubh
        Expected return with your callback function. monkey..
      • 2021-11-29 33315, 2021

      • monkey
        Is that a lint error you get?
      • 2021-11-29 33333, 2021

      • Shubh
        yos
      • 2021-11-29 33320, 2021

      • Shubh
        Heyo CatQuest
      • 2021-11-29 33333, 2021

      • monkey
        All right, well I guess I'm wrong after wrong :)
      • 2021-11-29 33333, 2021

      • monkey
        Try out `return entityRoutes.displayDeleteEntity(req, res);` instead of the else{} block and see if that works.
      • 2021-11-29 33341, 2021

      • monkey
        I know at least the linter is OK with that
      • 2021-11-29 33322, 2021

      • monkey
        In this instance I believe returning like that won't have any impact on the route's function
      • 2021-11-29 33317, 2021

      • Shubh
        there is unused import in series.js file so should i get rid of that as well?
      • 2021-11-29 33300, 2021

      • monkey
        Yes, let's clean that up while we're here
      • 2021-11-29 33314, 2021

      • Shubh
        Hmm on it
      • 2021-11-29 33300, 2021

      • Shubh
        monkey although some tickets are resolved still their status has not updated yet so
      • 2021-11-29 33303, 2021

      • monkey
        Ah, well they might need to be updated. Mind if I check too? hat are the ticket numbers?
      • 2021-11-29 33318, 2021

      • Shubh
        Hmm here they come
      • 2021-11-29 33338, 2021

      • Shubh
        BB-605 it is working on mobile view of dev tools
      • 2021-11-29 33338, 2021

      • BrainzBot
        BB-605: Unlocked and Locked achievements are not visible on small screen devices https://tickets.metabrainz.org/browse/BB-605
      • 2021-11-29 33303, 2021

      • monkey
        Yep, confirming that one can be closed
      • 2021-11-29 33306, 2021

      • Shubh
        BB-468 this working as well
      • 2021-11-29 33306, 2021

      • BrainzBot
        BB-468: Username is not updated in the navbar after update in editor profile https://tickets.metabrainz.org/browse/BB-468
      • 2021-11-29 33324, 2021

      • monkey
        Yes, that's been fixed as well and can indeed be closed
      • 2021-11-29 33346, 2021

      • monkey
        I've done that one
      • 2021-11-29 33325, 2021

      • Shubh
        BB-558 this as well
      • 2021-11-29 33325, 2021

      • BrainzBot
        BB-558: Buttons on create collection page do not respond on mobile https://tickets.metabrainz.org/browse/BB-558
      • 2021-11-29 33326, 2021

      • monkey
        Yep, that's also fixed
      • 2021-11-29 33340, 2021

      • monkey
        Thanks for the help cleaning up !
      • 2021-11-29 33320, 2021

      • Shubh
        Thanks for helping me as well !
      • 2021-11-29 33332, 2021

      • Shubh
        BB-578 another one
      • 2021-11-29 33333, 2021

      • BrainzBot
        BB-578: Create Collection Button should not be there when viewing someone else's collection https://tickets.metabrainz.org/browse/BB-578
      • 2021-11-29 33358, 2021

      • monkey
        Yep, that's fixed
      • 2021-11-29 33329, 2021

      • Shubh
        BB-572 i'm not sure about this one
      • 2021-11-29 33330, 2021

      • BrainzBot
        BB-572: Deleted entities appear in search results https://tickets.metabrainz.org/browse/BB-572
      • 2021-11-29 33308, 2021

      • monkey
        I think that might still be an issue
      • 2021-11-29 33316, 2021

      • Shubh
        BB-523 this one
      • 2021-11-29 33317, 2021

      • BrainzBot
        BB-523: "New" badge appears in entity deletion revision https://tickets.metabrainz.org/browse/BB-523
      • 2021-11-29 33335, 2021

      • monkey
        That's fixed
      • 2021-11-29 33353, 2021

      • Shubh
        BB-429 not sure about this as well !
      • 2021-11-29 33353, 2021

      • BrainzBot
        BB-429: PropType mismatch throws a warning https://tickets.metabrainz.org/browse/BB-429
      • 2021-11-29 33314, 2021

      • Shubh
        BB-570 hmm
      • 2021-11-29 33314, 2021

      • BrainzBot
        BB-570: Work-type dropdown overflow https://tickets.metabrainz.org/browse/BB-570
      • 2021-11-29 33340, 2021

      • monkey
        I don't see a fix for 429 so probably still an issue
      • 2021-11-29 33320, 2021

      • Shubh
        but I don't see any related warning during build process
      • 2021-11-29 33321, 2021

      • monkey
        570 looks fixed to me
      • 2021-11-29 33339, 2021

      • monkey
        Ah, right, then if you don't see that warning anyomre consider it fixed
      • 2021-11-29 33322, 2021

      • Shubh
        are those instructions related to setting up docker fixed ?
      • 2021-11-29 33302, 2021

      • monkey
        If you mean the issues you encountered when you were setting up, not yet, something I'm working on now
      • 2021-11-29 33346, 2021

      • Shubh
        if you are busy then i can also fix those thingy , if you don't mind ..
      • 2021-11-29 33300, 2021

      • monkey
        These setup issues I'd like to do myself, there's something pretty crucial gone wrong.
      • 2021-11-29 33300, 2021

      • monkey
        But other than that feel free to take any ticket you are interested in
      • 2021-11-29 33341, 2021

      • Shubh
        Hmm on it !
      • 2021-11-29 33302, 2021

      • Shubh
        Hello ..
      • 2021-11-29 33313, 2021

      • monkey
        Don't hesitate to write your questions without waiting for me to be here Shubh, I receive alerts and read the logs
      • 2021-11-29 33344, 2021

      • Shubh
        i just wanted to ask how page routing works in BB ?
      • 2021-11-29 33346, 2021

      • monkey
        I might need a more precise question, that one is a bit broad :p We use ExpressJS as a framework to handle routing, if that answers part of the question
      • 2021-11-29 33302, 2021

      • Shubh
        Ha that answers it
      • 2021-11-29 33327, 2021

      • Shubh
        Ah i was working on this issue BB-513
      • 2021-11-29 33328, 2021

      • BrainzBot
        BB-513: Improve "Are we missing an entry?" section. https://tickets.metabrainz.org/browse/BB-513
      • 2021-11-29 33304, 2021

      • monkey
        I see
      • 2021-11-29 33321, 2021

      • Shubh
        so here :entity/routes href points to what file i want to ask
      • 2021-11-29 33333, 2021

      • Shubh
        :entity/create*
      • 2021-11-29 33333, 2021

      • monkey
        Not sure I understand the question
      • 2021-11-29 33323, 2021

      • Shubh
        i need to pass query parameters and fetch those query params in req body
      • 2021-11-29 33336, 2021

      • Shubh
        req params i mean
      • 2021-11-29 33352, 2021

      • monkey
        Ah, right. Have a look here for example: https://github.com/bookbrainz/bookbrainz-site/blo…
      • 2021-11-29 33307, 2021

      • monkey
      • 2021-11-29 33343, 2021

      • monkey
        He's an example of how the link can be constructed: https://github.com/bookbrainz/bookbrainz-site/blo…
      • 2021-11-29 33320, 2021

      • Shubh
        Thanks !
      • 2021-11-29 33324, 2021

      • monkey
        (_kebabCase is just to make sure we transform entity names appropriately)
      • 2021-11-29 33315, 2021

      • Shubh
        does it lower case all stuff?
      • 2021-11-29 33351, 2021

      • monkey
        A bit more: Author -> author, but for multiple words: Edition Group -> editionGroup
      • 2021-11-29 33317, 2021

      • monkey
        I'd expect the link you want to construct should have this structure: ```href={`/author/create?name=${the-search-terms-here`}```
      • 2021-11-29 33300, 2021

      • monkey
        Which will require passing the search terms to CallToAction as a prop I think
      • 2021-11-29 33325, 2021

      • monkey
        CatQuest: Can you still reproduce this issue? BB-570
      • 2021-11-29 33326, 2021

      • BrainzBot
        BB-570: Work-type dropdown overflow https://tickets.metabrainz.org/browse/BB-570
      • 2021-11-29 33325, 2021

      • CatQuest
        hmm
      • 2021-11-29 33343, 2021

      • CatQuest
        i put in a user css to fix it so i'll try and disable this and see if i get it again
      • 2021-11-29 33316, 2021

      • monkey
        I wonder if it was just a superposition of the dropdown and the text box underneath
      • 2021-11-29 33307, 2021

      • CatQuest
        it no longer looks like that because the annotation box is further dows. but the lowest line in the drop down in the "type" dropdown *is* thinner and less visible than eg "language"
      • 2021-11-29 33328, 2021

      • CatQuest
        let me make a n image
      • 2021-11-29 33335, 2021

      • KassOtsimine
      • 2021-11-29 33347, 2021

      • KassOtsimine
      • 2021-11-29 33349, 2021

      • monkey
        Mm.
      • 2021-11-29 33313, 2021

      • CatQuest
        my user css contaisn the bit i wrote in a comment
      • 2021-11-29 33324, 2021

      • monkey
        They are both the same size, so i have to assume the height of each item in the dropdown is somewhat vraiable