#metabrainz

/

      • genpaku has quit
      • 2022-09-30 27336, 2022

      • genpaku joined the channel
      • 2022-09-30 27310, 2022

      • jonolds joined the channel
      • 2022-09-30 27333, 2022

      • jonolds has quit
      • 2022-09-30 27311, 2022

      • darkstardevx has quit
      • 2022-09-30 27358, 2022

      • lucifer
        chinmay: i think i fixed the issue of filters not getting applied right away. its because `useState` is async so calling `setFilteredList` right after will use an outdated value. for the other issue, releases disappearing after removing all filters. its because the checkedList becomes empty and then the filtering returns no releases so i added an if to special case that and show all releases.
      • 2022-09-30 27354, 2022

      • lucifer
        i have pushed the changes to your branch, latest two commits. it seems to work fine for me but try it out and if there any issues or if you have any doubts or further questions.
      • 2022-09-30 27321, 2022

      • darkstardevx joined the channel
      • 2022-09-30 27359, 2022

      • darkstardevx has quit
      • 2022-09-30 27322, 2022

      • darkstardevx joined the channel
      • 2022-09-30 27352, 2022

      • aerozol
        FYI summit attendees, still tons of space in my bag if anyone wants anything from NZ > Spain (I’ve stocked up on treats and hops)
      • 2022-09-30 27306, 2022

      • reosarevok
        "Cover Art Archive - 429 Too Many Requests Errors" in support
      • 2022-09-30 27319, 2022

      • reosarevok
        zas: do you know if this was just the IA or it can be something else?
      • 2022-09-30 27304, 2022

      • zas
        It can be anything, I'll check
      • 2022-09-30 27359, 2022

      • lucifer
        reosarevok: zas: bitmap mentioned this yesterday. he suspected a spammer.
      • 2022-09-30 27309, 2022

      • reosarevok
        Oh, ok
      • 2022-09-30 27348, 2022

      • lucifer
      • 2022-09-30 27354, 2022

      • reosarevok
        aerozol: I think that genre icon is pretty good - have you checked how it looks inverted?
      • 2022-09-30 27301, 2022

      • reosarevok
      • 2022-09-30 27322, 2022

      • reosarevok
        So I guess ideally we'd have the equivalent for genre to the other entity icons there? :)
      • 2022-09-30 27330, 2022

      • reosarevok
        I can do the implementation
      • 2022-09-30 27318, 2022

      • monkey
        zas is on the case for the CAA issues.
      • 2022-09-30 27337, 2022

      • alastairp
        aerozol: when do you fly?
      • 2022-09-30 27346, 2022

      • zas
        reosarevok: CAA issue was on our side, there was an increase of (apparently legit) traffic, but our rate limit was a bit low, I increased it, now all requests are handled, 429s disappeared. I also added an alert to detect this in the future.
      • 2022-09-30 27358, 2022

      • reosarevok
        Thanks!
      • 2022-09-30 27303, 2022

      • mayhem
        aerozol: I asked my Kiwi friend here about how to answer your question. She says: "Whittakers peanut slab, Pixie Caramel, pineapple lumps and Perky Nana bars (just for the name 😂).
      • 2022-09-30 27327, 2022

      • mayhem
        which of course is all goobelydegook to me, but hey. :)
      • 2022-09-30 27346, 2022

      • mayhem
        so, if any of those still fit, sign us up. :)
      • 2022-09-30 27317, 2022

      • reosarevok
        Pineapple lumps sound ominous
      • 2022-09-30 27326, 2022

      • reosarevok
        Like something you tell your doctor about
      • 2022-09-30 27346, 2022

      • mayhem
        Perky nana got me. :)
      • 2022-09-30 27307, 2022

      • alastairp
        mayhem: those are all nice things
      • 2022-09-30 27315, 2022

      • alastairp
        mmmm, pineapple lumps are great
      • 2022-09-30 27337, 2022

      • alastairp
      • 2022-09-30 27342, 2022

      • mayhem
        I was wondering how you'd feel about those.
      • 2022-09-30 27320, 2022

      • mayhem
        lol, that advert must sit really deeply in your psyche of kiwis -- my friend sent the me same link, lol.
      • 2022-09-30 27302, 2022

      • alastairp
        hahahaha
      • 2022-09-30 27317, 2022

      • alastairp
        yeah, I don't think I've ever eaten one? but the moment I read the name I thought of that ad
      • 2022-09-30 27301, 2022

      • mayhem
        well maybe we'll get the chance to eat one. not like we don't have these things in the EU, but its all about nostalgia, right?
      • 2022-09-30 27302, 2022

      • chinmay
        lucifer: Awesome! It's working now. I knew I had to use useeffect somehow but couldn't figure it out
      • 2022-09-30 27308, 2022

      • chinmay
        thanks
      • 2022-09-30 27316, 2022

      • lucifer
        np
      • 2022-09-30 27330, 2022

      • mayhem can't wait to see this feature in action
      • 2022-09-30 27342, 2022

      • chinmay can't wait to complete it and see it on lb
      • 2022-09-30 27315, 2022

      • chinmay
        I'll do some css changes and start working on timeline today
      • 2022-09-30 27303, 2022

      • chinmay has quit
      • 2022-09-30 27312, 2022

      • chinmay joined the channel
      • 2022-09-30 27340, 2022

      • chinmay
        ```
      • 2022-09-30 27340, 2022

      • chinmay
        Access to fetch at 'https://coverartarchive.org/release/8ace46d4-560d-432b-8dda-037b26a9d7c2' from origin 'http://localhost:8100' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
      • 2022-09-30 27340, 2022

      • chinmay
        ```
      • 2022-09-30 27340, 2022

      • chinmay
        I'm getting this error on every CAA request
      • 2022-09-30 27348, 2022

      • lucifer
        do those requests have 429 as status?
      • 2022-09-30 27356, 2022

      • chinmay
        Umm no
      • 2022-09-30 27303, 2022

      • chinmay
        307 redirects
      • 2022-09-30 27312, 2022

      • CatQuest has left the channel
      • 2022-09-30 27316, 2022

      • lucifer
        uh weird. i tried your branch locally. the 307 ones work fine the CORS errors are thrown only on 404 and 429.
      • 2022-09-30 27343, 2022

      • lucifer
      • 2022-09-30 27359, 2022

      • alastairp
        🤯
      • 2022-09-30 27302, 2022

      • alastairp
        amazing!
      • 2022-09-30 27316, 2022

      • chinmay
        Oh!
      • 2022-09-30 27337, 2022

      • chinmay
        Let me see
      • 2022-09-30 27342, 2022

      • BrainzGit
        [musicbrainz-server] 14reosarevok opened pull request #2668 (03master…MBS-12645): MBS-12645: Add guess case to genre edit form https://github.com/metabrainz/musicbrainz-server/…
      • 2022-09-30 27316, 2022

      • reosarevok
        bitmap: opened that both for my qol purposes and to have something to base stuff like the React label form on (since that'll need the guess case too)
      • 2022-09-30 27355, 2022

      • reosarevok
        Can you take a look when you have some time? Also, is there any reason we're not updating master with the relationship editor changes? :) I don't want to open every PR on beta but I do want to test with the less buggy code ;)
      • 2022-09-30 27311, 2022

      • chinmay
      • 2022-09-30 27311, 2022

      • chinmay
        I'm using this function to fetch CAA which is written by monkey (getAlbumArtFromListenMetadata). I had to copy it as a new function because I needed it to accept a MBID parameter instead of listen metadata.
      • 2022-09-30 27311, 2022

      • chinmay
        monkey: can this be done somehow by modifying the existing getAlbumArtFromListenMetadata function? I do not want to duplicate the code.
      • 2022-09-30 27342, 2022

      • lucifer
        you can create a fake listen as a stopgap measure.
      • 2022-09-30 27357, 2022

      • chinmay
        alastairp: thanks! there's a lot of work left
      • 2022-09-30 27316, 2022

      • alastairp
        perhaps we could create getAlbumArtFromMbid(), and the fromListenMetadata version just parses the id out and calls the first one?
      • 2022-09-30 27355, 2022

      • chinmay
        yes! that sounds doable
      • 2022-09-30 27313, 2022

      • chinmay
        lucifer: you mean I call the fromListenMetadata function with some fake listen data?
      • 2022-09-30 27354, 2022

      • lucifer
        chinmay: yes, something like `{"track_metadata": "additional_info": {"release_mbid": RELEASE_MBID_HERE}} as Listen`. but separating out a function for mbid sounds better in longer run.
      • 2022-09-30 27336, 2022

      • chinmay
        lucifer: got it
      • 2022-09-30 27321, 2022

      • monkey
        Yes, alastairp's solution is the way to go. Separate getAlbumArtFromReleaseMbid method that will be called by getAlbumArtFromListenMetadata
      • 2022-09-30 27318, 2022

      • monkey
        chinmay: I'd like to make a quick change to the getAlbumArtFromListenMetadata retry mechanism before you do that, if possible. Just to avoid some merge conflicts
      • 2022-09-30 27352, 2022

      • aerozol
        mayhem: alastairp: I already got a few packs of pineapple lumps haha. They're a kiwi classic, which means good enough to stick around, but not good enough to take off anywhere else haha
      • 2022-09-30 27307, 2022

      • mayhem
        :D
      • 2022-09-30 27309, 2022

      • aerozol
        I fly Monday evening (3 days away)
      • 2022-09-30 27315, 2022

      • alastairp
        I don't think that there's anything specific that I'm craving from there
      • 2022-09-30 27324, 2022

      • alastairp
        but thanks! (and super exited about the hops)
      • 2022-09-30 27341, 2022

      • alastairp
        monkey: maybe we should open a pils and test it
      • 2022-09-30 27322, 2022

      • monkey
        I tried one this week, it's very nice! Probably better with a couple more weeks but certainly fine for next week
      • 2022-09-30 27336, 2022

      • monkey
        Great nose
      • 2022-09-30 27301, 2022

      • alastairp
        oh that's right, you took some with you!
      • 2022-09-30 27319, 2022

      • lucifer
        alastairp: hi! were you able to look at the BU#95?
      • 2022-09-30 27319, 2022

      • BrainzBot
        Enable sqlalchemy warnings and update mbdata: https://github.com/metabrainz/brainzutils-python/…
      • 2022-09-30 27333, 2022

      • alastairp
        lucifer: hi! it looks good
      • 2022-09-30 27335, 2022

      • alastairp
        and the other one
      • 2022-09-30 27344, 2022

      • alastairp
        and the mbdata patch too
      • 2022-09-30 27300, 2022

      • lucifer
        great, thanks! i'll do a BU release.
      • 2022-09-30 27320, 2022

      • alastairp
        any preference for doing an sqlalchemy version check in mbdata instead of `except ImportError`?
      • 2022-09-30 27338, 2022

      • alastairp
      • 2022-09-30 27309, 2022

      • lucifer
        i was unable to find which version they moved the method so I went with ImportError but i can dig deeper and try to find it.
      • 2022-09-30 27310, 2022

      • alastairp
        why did `relation` change?
      • 2022-09-30 27328, 2022

      • alastairp
        that's because if you just use `target_attr` then it's the same as using a string?
      • 2022-09-30 27351, 2022

      • alastairp
        so you're using getattr(model, str) to get the attribute with that name?
      • 2022-09-30 27300, 2022

      • lucifer
        yes
      • 2022-09-30 27323, 2022

      • alastairp
        yeah, in that case I guess I would maybe just do it on 1.4, since this is the version where the warning starts to appear?
      • 2022-09-30 27300, 2022

      • alastairp
        so the "new" one doesn't exist in old versions of sqlalchemy, then? but we're not sure if that's 1, 1.1, 1.2 or 1.3?
      • 2022-09-30 27343, 2022

      • lucifer
        basically joinedload("l_artist_url.link") is deprecated and we need to use joinedload(LinkArtistUrl.link_type), since the part after `.` varies in that method using `getattr`
      • 2022-09-30 27309, 2022

      • lucifer
        right, not sure in which all versions the new one exists.
      • 2022-09-30 27324, 2022

      • alastairp
        yeah, got it. sorry, I understand the usage in _relationship_link_helper now. no need for further explanations :)
      • 2022-09-30 27349, 2022

      • alastairp
        I have no string preference, I think the ImportError is a fine way of doing it
      • 2022-09-30 27358, 2022

      • alastairp
        no strong preference either
      • 2022-09-30 27319, 2022

      • lucifer
        cool, i'll let it be the current way then because i have already tested with 1.3 and 1.4 versions
      • 2022-09-30 27318, 2022

      • lucifer
        i have write access to mbdata repo but i'll not merge the PR there for now because the CI seems to be broken currently.
      • 2022-09-30 27331, 2022

      • BrainzGit
        [listenbrainz-server] 14MonkeyDo opened pull request #2189 (03master…caa-retry-rate): Tweak CAA retry strategy https://github.com/metabrainz/listenbrainz-server…
      • 2022-09-30 27341, 2022

      • BrainzGit
        [brainzutils-python] 14amCap1712 merged pull request #95 (03master…update-mbdata): Enable sqlalchemy warnings and update mbdata https://github.com/metabrainz/brainzutils-python/…
      • 2022-09-30 27344, 2022

      • Sophist-UK joined the channel
      • 2022-09-30 27303, 2022

      • lucifer
        mayhem: hourly daily jams is live now, from tommorrow playlists should appear at user's midnight.
      • 2022-09-30 27311, 2022

      • BrainzGit
        [brainzutils-python] 14amCap1712 merged pull request #96 (03master…sqlalchemy-warnings): Join relationships using attributes, not strings https://github.com/metabrainz/brainzutils-python/…
      • 2022-09-30 27358, 2022

      • BrainzGit
        [brainzutils-python] release 03v2.7.0 has been published by 14github-actions[bot]: https://github.com/metabrainz/brainzutils-python/…
      • 2022-09-30 27354, 2022

      • BrainzGit
        [listenbrainz-server] 14amCap1712 merged pull request #2184 (03master…update-scripts): Make develop.sh and test.sh compatible with compose v2 https://github.com/metabrainz/listenbrainz-server…
      • 2022-09-30 27355, 2022

      • BrainzGit
        [listenbrainz-server] 14MonkeyDo merged pull request #2189 (03master…caa-retry-rate): Tweak CAA retry strategy https://github.com/metabrainz/listenbrainz-server…
      • 2022-09-30 27319, 2022

      • monkey
        chinmay: I'm done with the thing I wanted to change on getAlbumArtFromListenMetadata, all yours !
      • 2022-09-30 27301, 2022

      • mayhem
        lucifer: that's great, thank you!
      • 2022-09-30 27324, 2022

      • BrainzGit
        [listenbrainz-server] 14amCap1712 merged pull request #2164 (03master…sqlalchemy-20/errors): Turn sqlalchemy.exc.Base20DeprecationWarning into errors in tests https://github.com/metabrainz/listenbrainz-server…
      • 2022-09-30 27358, 2022

      • BrainzGit
        [listenbrainz-server] release 03v-2022-09-30.1 has been published by 14github-actions[bot]: https://github.com/metabrainz/listenbrainz-server…
      • 2022-09-30 27343, 2022

      • chinmay
        monkey: Alright
      • 2022-09-30 27302, 2022

      • lucifer
        mayhem: did you start working on the reverse painter's index?
      • 2022-09-30 27304, 2022

      • mayhem
        not yet, but I've started working out how to make it work. Let me hammer out some code to start. did you need anything in particular?
      • 2022-09-30 27349, 2022

      • lucifer
        ah no, the spotify server side playlist generation seems mostly done except for that endpoint so asked.
      • 2022-09-30 27313, 2022

      • lucifer
        let me know if i can help on that.
      • 2022-09-30 27355, 2022

      • mayhem
        k, let me dive in and see what I can come up with.
      • 2022-09-30 27314, 2022

      • bitmap
        reosarevok: feel free to merge beta into master if you need the changes there, I just hadn't gotten around to it
      • 2022-09-30 27345, 2022

      • chinmay
      • 2022-09-30 27346, 2022

      • chinmay
        monkey: ^ review please
      • 2022-09-30 27300, 2022

      • monkey
        Will do
      • 2022-09-30 27335, 2022

      • monkey
        lucifer: Can I deploy a branch to test.LB or are you using it?
      • 2022-09-30 27349, 2022

      • lucifer
        monkey: sure. not using it
      • 2022-09-30 27358, 2022

      • monkey
        👍
      • 2022-09-30 27315, 2022

      • monkey
        chinmay: the commit looks great
      • 2022-09-30 27335, 2022

      • chinmay
        monkey: thanks
      • 2022-09-30 27351, 2022

      • monkey
        FYI: to avoid having to export functions like in here: https://github.com/metabrainz/listenbrainz-server…
      • 2022-09-30 27351, 2022

      • monkey
        You can simply use the syntax
      • 2022-09-30 27308, 2022

      • monkey
        `export async function getCoverartFromReleaseMBID…` for example
      • 2022-09-30 27346, 2022

      • monkey
        as in export functions when you defined them, rather than at the very end of the file. I'm fixing it across the codebase little by little
      • 2022-09-30 27342, 2022

      • chinmay
        oh
      • 2022-09-30 27359, 2022

      • chinmay
        Yeah I know this format
      • 2022-09-30 27330, 2022

      • chinmay
        pure js instead of es6 right?
      • 2022-09-30 27323, 2022

      • reosarevok
        bitmap: not that I need it actively, just easier to review :)
      • 2022-09-30 27332, 2022

      • reosarevok
        But I'll do it on Monday if you haven't before then I guess
      • 2022-09-30 27335, 2022

      • bitmap
        reosarevok: np I'll rebase the two I have up
      • 2022-09-30 27328, 2022

      • bitmap
        though rn MBS-12634 is the only thing in beta not in master
      • 2022-09-30 27328, 2022

      • BrainzBot
        MBS-12634: Beta: related entities do not show disambiguation in relationship editor https://tickets.metabrainz.org/browse/MBS-12634
      • 2022-09-30 27314, 2022

      • bitmap
        oh nvm, my branch was stale, ignore me :)
      • 2022-09-30 27321, 2022

      • v6lur joined the channel
      • 2022-09-30 27346, 2022

      • v6lur has quit
      • 2022-09-30 27345, 2022

      • elgranRoble joined the channel