#metabrainz

/

      • monkey
        call*
      • 2021-10-26 29919, 2021

      • lucifer
        ruaok: alastairp: we don't have the check for listened_at either. i just submitted a listen with ts = 1.
      • 2021-10-26 29942, 2021

      • lucifer
        this is weird... i remember having this time check convo before
      • 2021-10-26 29913, 2021

      • lucifer
      • 2021-10-26 29920, 2021

      • lucifer
        (need to scroll up)
      • 2021-10-26 29919, 2021

      • ruaok
        well, ok. we HAD a check. there is a define for that.
      • 2021-10-26 29931, 2021

      • ruaok
        lucifer: if you put in the check, I'll clean up the DB.
      • 2021-10-26 29940, 2021

      • lucifer
        on it
      • 2021-10-26 29929, 2021

      • lucifer
        ruaok: for the error to show, how does this sound? "Value for key listened_at is too low. listened_at value should be of 2002 (Last.fm founding year) or later"
      • 2021-10-26 29943, 2021

      • ruaok
        hmmm.
      • 2021-10-26 29936, 2021

      • ruaok
        LAST_FM_FOUNDING_YEAR = 2002
      • 2021-10-26 29953, 2021

      • ruaok
        hmmm. I have a recollection that that ought to be 2005
      • 2021-10-26 29907, 2021

      • BrainzGit
        [musicbrainz-server] 14reosarevok opened pull request #2315 (03master…MBS-12049): MBS-12049: Convert the edit index page to React [WIP] https://github.com/metabrainz/musicbrainz-server/…
      • 2021-10-26 29921, 2021

      • ruaok
        alastairp: I have a vague memory of RJ telling us to ignore everything prior to a certain date.
      • 2021-10-26 29922, 2021

      • ruaok
        founding year was defined in the main codebase at some point. now its just in spark, which seems odd since listen validation is being done on the flask side.
      • 2021-10-26 29935, 2021

      • lucifer
        yeah
      • 2021-10-26 29902, 2021

      • lucifer
        i think at some point the check got deleted.
      • 2021-10-26 29928, 2021

      • lucifer
        then stuff got moved around as usual refactoring.
      • 2021-10-26 29900, 2021

      • ruaok
        I want find the place where we had defined it orginally
      • 2021-10-26 29914, 2021

      • ruaok
        there was an epoch timestamp as well.
      • 2021-10-26 29957, 2021

      • lucifer
        trying to find that in git history.
      • 2021-10-26 29915, 2021

      • ruaok
        us both
      • 2021-10-26 29958, 2021

      • monkey is going to deploy huesound to test.LB, making some final UI refinements
      • 2021-10-26 29903, 2021

      • lucifer
      • 2021-10-26 29930, 2021

      • ruaok
        I knew that was going to be about me, lol
      • 2021-10-26 29943, 2021

      • lucifer
        🤣
      • 2021-10-26 29957, 2021

      • monkey
        > But, I have better things to do than to fight poorly documented skeletons of shit.
      • 2021-10-26 29904, 2021

      • monkey
        👏
      • 2021-10-26 29953, 2021

      • ruaok blushes
      • 2021-10-26 29959, 2021

      • ruaok
        so glad the internet doesn't forget.
      • 2021-10-26 29940, 2021

      • ruaok
        [off[ just super disorganzed, bad data practices (the irony!), and very behind. every email from them becomes an emergency for me.
      • 2021-10-26 29959, 2021

      • ruaok
        #dataishard
      • 2021-10-26 29931, 2021

      • CatQuest
        akshat: ack, icons witouth text is the WORST
      • 2021-10-26 29936, 2021

      • CatQuest
        even on mobile i don't like icons. actually i like them there *less* becasue i have no way of hovering over thme to see what they mean
      • 2021-10-26 29900, 2021

      • CatQuest
        like https://usercontent.irccloud-cdn.com/file/kOUY1yJ… what does these mean? hme search.. uhhh what?
      • 2021-10-26 29943, 2021

      • CatQuest
        also +100 n the buttons for saying "this is not correct" and a button for saying "this is the one it really is"
      • 2021-10-26 29945, 2021

      • CatQuest
        <333
      • 2021-10-26 29921, 2021

      • ruaok thinks about scalabilty for the incremental dumps
      • 2021-10-26 29943, 2021

      • CatQuest
        also re listen/scrobble dates. there are tools for manually adding listened stuff to (last.fm) where you could conceivably add something listened to in 1998 to l.fm
      • 2021-10-26 29907, 2021

      • ruaok
        lucifer: one thing I hadn't yet considered with the "save incremental listens to a file" approach was that it makes scaling timescale_writer much much harder.
      • 2021-10-26 29927, 2021

      • ruaok
        so, I am going back to looking at being able to sort on created, rather than listened_at.
      • 2021-10-26 29939, 2021

      • ruaok
      • 2021-10-26 29916, 2021

      • ruaok
        I'm going to try creating an index on created, but I think that in order for timescale to use it, we'd need to upgrade ts.
      • 2021-10-26 29917, 2021

      • lucifer
        yeah, i had that in mind ts_writer could be impacted. but i was unsure about the exact numbers.
      • 2021-10-26 29900, 2021

      • ruaok
        if the spark cluster could do it at the end of the unique stream, that would be better.
      • 2021-10-26 29903, 2021

      • lucifer
        we have to upgrade ts anyways sooner or later so that's fine
      • 2021-10-26 29922, 2021

      • ruaok
        but, let me investigate this. I hope this will help and let us skip this extra complexity.
      • 2021-10-26 29924, 2021

      • lucifer
        can you elaborate on that?
      • 2021-10-26 29945, 2021

      • ruaok
        on this ? "if the spark cluster could do it at the end of the unique stream, that would be better."
      • 2021-10-26 29948, 2021

      • lucifer
        yes
      • 2021-10-26 29910, 2021

      • lucifer
        oh nvm, i get it now. connect to rmq as a consumer?
      • 2021-10-26 29923, 2021

      • ruaok
        because the unique stream could come from multiple timescale_writers.
      • 2021-10-26 29929, 2021

      • ruaok
        yes, that.
      • 2021-10-26 29947, 2021

      • ruaok
        and then the files are already there.
      • 2021-10-26 29904, 2021

      • lucifer
        sure that's a good plan in the long term. not sure we need that now.
      • 2021-10-26 29931, 2021

      • ruaok
        we dont need multuple timescale writers yet, no.
      • 2021-10-26 29952, 2021

      • lucifer
        i think adding a container to do this on kiss/gaga and shipping to spark is a good middle ground for now.
      • 2021-10-26 29909, 2021

      • ruaok
        but we must resist fucking future ruaok and lucifer. because those two will need to wake up in the middle of the night and deploy more timescale-writers.
      • 2021-10-26 29936, 2021

      • ruaok
        "i think adding a container to do this on kiss/gaga and shipping to spark is a good middle ground for now."
      • 2021-10-26 29959, 2021

      • ruaok
        it is tempting to think that way. but we're pushing an impending disaster ahead of us. knowingly.
      • 2021-10-26 29904, 2021

      • lucifer
        oh definitely need to avoid that.
      • 2021-10-26 29911, 2021

      • ruaok
        yeah.
      • 2021-10-26 29921, 2021

      • lucifer
        yes but we don't have the MB on spark yet and just getting that to spark is huge work
      • 2021-10-26 29929, 2021

      • ruaok
        so, if we NEED to make this work differently RMQ on J5 is the way to go.
      • 2021-10-26 29940, 2021

      • ruaok
        yeah, loads.
      • 2021-10-26 29945, 2021

      • lucifer
        but if that needs to be done then let's try to plan it then once alastairp is around or later this week?
      • 2021-10-26 29942, 2021

      • lucifer
        even if don't implement rn, having an idea of how to get about it would be good.
      • 2021-10-26 29944, 2021

      • ruaok
        yeah
      • 2021-10-26 29953, 2021

      • ruaok
        let me see if this index does anything.
      • 2021-10-26 29912, 2021

      • lucifer
        +1
      • 2021-10-26 29932, 2021

      • ruaok
        15 minutes to create the index. nice
      • 2021-10-26 29913, 2021

      • ruaok
      • 2021-10-26 29938, 2021

      • ruaok
        woo!
      • 2021-10-26 29944, 2021

      • ruaok
        now it executes in reaonable time.
      • 2021-10-26 29949, 2021

      • lucifer
        noice!
      • 2021-10-26 29951, 2021

      • ruaok does a little dance!
      • 2021-10-26 29959, 2021

      • lucifer
        to confirm the full dumps will be sorted by listened_at but inc dumps by created, right?
      • 2021-10-26 29931, 2021

      • ruaok
        that makes sense to me, yes.
      • 2021-10-26 29937, 2021

      • ruaok
        do we need to do anything else?
      • 2021-10-26 29941, 2021

      • lucifer
        sounds good
      • 2021-10-26 29911, 2021

      • lucifer
        no don't think so.
      • 2021-10-26 29946, 2021

      • lucifer
      • 2021-10-26 29924, 2021

      • ruaok
        shit your boss says, lol.
      • 2021-10-26 29901, 2021

      • lucifer
      • 2021-10-26 29932, 2021

      • lucifer
        ruaok: do you remember approximately when you last saw that check or that timestamp?
      • 2021-10-26 29901, 2021

      • ruaok
        when I did the conversion to timescale, for sure.
      • 2021-10-26 29921, 2021

      • lucifer
        👍
      • 2021-10-26 29922, 2021

      • ruaok
        I removed these 0 listens, for sure.
      • 2021-10-26 29915, 2021

      • ruaok
        the borked incremental dumps, is there a ticket for it?
      • 2021-10-26 29957, 2021

      • lucifer
        LB-980
      • 2021-10-26 29958, 2021

      • BrainzBot
        LB-980: Incorrect statistics in Reports and Charts https://tickets.metabrainz.org/browse/LB-980
      • 2021-10-26 29923, 2021

      • ruaok
        thx!
      • 2021-10-26 29942, 2021

      • BrainzGit
        [listenbrainz-server] 14mayhem opened pull request #1678 (03master…better-incremental-dumps): (LB-980) AISOTT: Improve incremental dumps by sorting on created, rather than listened_at https://github.com/metabrainz/listenbrainz-server…
      • 2021-10-26 29904, 2021

      • Lotheric has quit
      • 2021-10-26 29928, 2021

      • Lotheric joined the channel
      • 2021-10-26 29929, 2021

      • ruaok
        overheard in catalunya: "I made fideuà like a biryani and now I don't know whom to hide from"
      • 2021-10-26 29901, 2021

      • monkey
      • 2021-10-26 29935, 2021

      • ruaok likes the new beta tag. thanks!
      • 2021-10-26 29938, 2021

      • ruaok
      • 2021-10-26 29951, 2021

      • ruaok
        the wheel look s weird off center though...
      • 2021-10-26 29923, 2021

      • monkey
        Yep,
      • 2021-10-26 29947, 2021

      • monkey
        Also, sometimes the cover art is in an unexpected format… https://usercontent.irccloud-cdn.com/file/FJxavc2…
      • 2021-10-26 29907, 2021

      • ruaok
        woah.
      • 2021-10-26 29913, 2021

      • ruaok
        looks pretty cool though
      • 2021-10-26 29946, 2021

      • monkey
        Hm, is that the expected frontiest cover? https://musicbrainz.org/release/39112ada-5a27-40a…
      • 2021-10-26 29931, 2021

      • monkey
        Looks like only part of the front cover https://coverartarchive.org/release/39112ada-5a27…
      • 2021-10-26 29906, 2021

      • ruaok
        there are a lot of weird edge cases.
      • 2021-10-26 29921, 2021

      • ruaok
        I would say get it to cover the square somehow and move on.
      • 2021-10-26 29956, 2021

      • monkey
        Interestingly, that's a complicated thing to do in CSS with the way we're doing it
      • 2021-10-26 29932, 2021

      • lucifer
        ruaok: checked the ts pr, one commit ahead, one back. couldn't find it. also the founding year was added to spark in 2018 so more confused.
      • 2021-10-26 29905, 2021

      • ruaok
        ok, lets not worry about it.
      • 2021-10-26 29929, 2021

      • ruaok
        lets just say we should reject anything earlier than 2005 and be done with it. that data from prior to that is really rubbish.
      • 2021-10-26 29943, 2021

      • lucifer
        👍
      • 2021-10-26 29916, 2021

      • BrainzGit
        [acousticbrainz-server] 14alastair opened pull request #418 (03master…fix-root-certs): AB-471: Remove expired root cert https://github.com/metabrainz/acousticbrainz-serv…
      • 2021-10-26 29935, 2021

      • lucifer
      • 2021-10-26 29952, 2021

      • lucifer
        only 3 listens between 2002 and 2005 anyways
      • 2021-10-26 29919, 2021

      • Lotheric has quit
      • 2021-10-26 29959, 2021

      • Lotheric joined the channel
      • 2021-10-26 29932, 2021

      • lucifer
      • 2021-10-26 29903, 2021

      • BrainzGit
        [listenbrainz-server] 14amCap1712 opened pull request #1680 (03master…spotify-reader-hotfix): Spotify Reader fix user_id key https://github.com/metabrainz/listenbrainz-server…
      • 2021-10-26 29956, 2021

      • akshat
        I think huesound css breaks in mobile devices. monkey did you fix that today?
      • 2021-10-26 29920, 2021

      • BrainzGit
        [acousticbrainz-server] 14alastair merged pull request #418 (03master…fix-root-certs): AB-471: Remove expired root cert https://github.com/metabrainz/acousticbrainz-serv…
      • 2021-10-26 29955, 2021

      • lucifer
        alastairp: LB-981, do you remember if this is intentional?
      • 2021-10-26 29955, 2021

      • BrainzBot
        LB-981: Endpoint delete-listen returns 200 even if nothing was deleted https://tickets.metabrainz.org/browse/LB-981
      • 2021-10-26 29929, 2021

      • alastairp
        lucifer: not sure, I suspect it was just missed
      • 2021-10-26 29923, 2021

      • lucifer
        ah ok. i asked because i remember having this discussion with you about another delete endpoint (unfollow user iirc) where we decided its fine to return 200 if nothing was deleted.
      • 2021-10-26 29936, 2021

      • alastairp
        oh yes, that's right
      • 2021-10-26 29924, 2021

      • lucifer
        this is a different endpoint but we should probably be consistent unless there's a reason not to be.
      • 2021-10-26 29941, 2021

      • alastairp
        so the question is: when is it useful for a user to know the difference between something being successfully deleted, and something not existing?
      • 2021-10-26 29945, 2021

      • lucifer
        yup right. i cannot think of a use case currently where the distinction would matter.
      • 2021-10-26 29903, 2021

      • aerozol has quit
      • 2021-10-26 29925, 2021

      • aerozol joined the channel
      • 2021-10-26 29900, 2021

      • lucifer
        but get_or_create can be a close analogy. we have that in our own codebase and also use cases where the distinction is useful.
      • 2021-10-26 29952, 2021

      • opal has quit
      • 2021-10-26 29930, 2021

      • opal joined the channel
      • 2021-10-26 29942, 2021

      • lucifer
        i suggest let's document the current behvaiour and consider again if someone complains.
      • 2021-10-26 29921, 2021

      • monkey
        akshat: Yes, I noticed the huesound page wasn't working on mobile. I did work on it this morning and improved it some. Just deployed the result if you want to have a look
      • 2021-10-26 29930, 2021

      • ruaok
        alastairp: any chance you might have some time for the huesound PR today?
      • 2021-10-26 29934, 2021

      • ruaok
        it would be nice to get that out soon
      • 2021-10-26 29914, 2021

      • alastairp
        yes, should be no problem. let me just finish some other reviews of lucifer's first
      • 2021-10-26 29923, 2021

      • ruaok
        👍
      • 2021-10-26 29933, 2021

      • lucifer
        :-D
      • 2021-10-26 29940, 2021

      • alastairp
        ruaok: did I see that you were adding an index to listens table?
      • 2021-10-26 29942, 2021

      • alastairp
        created?
      • 2021-10-26 29903, 2021

      • ruaok
      • 2021-10-26 29908, 2021

      • ruaok
        already done, saved our bacon.
      • 2021-10-26 29942, 2021

      • ruaok
        and cansalada too!
      • 2021-10-26 29938, 2021

      • alastairp
        great, good catch
      • 2021-10-26 29943, 2021

      • monkey
        Hmm, still got some work to do on huesound on mobile…
      • 2021-10-26 29900, 2021

      • alastairp
        nobody uses mobile