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.
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. :)
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.
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 ;)
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?
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.