#metabrainz

/

      • ruaok
        Mr_Monkey: can you please review https://github.com/metabrainz/listenbrainz-server… soonish so I can start the release?
      • 2021-02-15 04649, 2021

      • Mr_Monkey
        Already reveiwed, sorry forgot to mention it
      • 2021-02-15 04625, 2021

      • Mr_Monkey
        Ah, re-review needed, my bad
      • 2021-02-15 04608, 2021

      • Mr_Monkey
        Done
      • 2021-02-15 04648, 2021

      • _lucifer
        i'll update with the final changes
      • 2021-02-15 04603, 2021

      • ruaok
        _lucifer: which PR is that in reference to?
      • 2021-02-15 04618, 2021

      • _lucifer
        the one Mr_Monkey just re-reviewed
      • 2021-02-15 04624, 2021

      • ruaok
        right, sorry. just read that.
      • 2021-02-15 04622, 2021

      • _lucifer
        done. Mr_Monkey, a quick look again please
      • 2021-02-15 04618, 2021

      • ruaok
        thanks you two!
      • 2021-02-15 04638, 2021

      • Mr_Monkey
        I'll merge once JS tests pass
      • 2021-02-15 04644, 2021

      • ruaok
        read my mind.
      • 2021-02-15 04624, 2021

      • _lucifer
        i'll open a ticket to add a test for this.
      • 2021-02-15 04644, 2021

      • ruaok
        Mr_Monkey: can you now please look at alastairp's comments on https://github.com/metabrainz/listenbrainz-server… ?
      • 2021-02-15 04655, 2021

      • Mr_Monkey
        Yep, already working on that :)
      • 2021-02-15 04618, 2021

      • ruaok
        <3
      • 2021-02-15 04626, 2021

      • Etua has quit
      • 2021-02-15 04629, 2021

      • alastairp
        oh, I remember another comment on a merged PR
      • 2021-02-15 04629, 2021

      • alastairp
        mm
      • 2021-02-15 04659, 2021

      • alastairp
      • 2021-02-15 04612, 2021

      • alastairp
        Mr_Monkey: does this mean that collaborators and collaborator_ids are sorted differently?
      • 2021-02-15 04626, 2021

      • ruaok
        alastairp: I'm going to try and wrap a retry loop around this init_ts_db failure in hopes of getting tests to pass more.
      • 2021-02-15 04630, 2021

      • ruaok
      • 2021-02-15 04648, 2021

      • alastairp
        ruaok: ok, sure. I'm still really confused about this
      • 2021-02-15 04617, 2021

      • alastairp
        I think an ideal solution would be to clear the tables each time around instead of dropping/recreating the database
      • 2021-02-15 04620, 2021

      • ruaok
        you and me both. I feel it might be saved by delay/retry
      • 2021-02-15 04621, 2021

      • Mr_Monkey
        alastairp: I suppose so yes, at least some of the time
      • 2021-02-15 04628, 2021

      • alastairp
        then we should never get to this case
      • 2021-02-15 04631, 2021

      • Mr_Monkey
        Is that an issue in other parts of the code?
      • 2021-02-15 04640, 2021

      • ruaok
        alastairp: agreed. or make tests idempotent, which I've started doing for some.
      • 2021-02-15 04658, 2021

      • alastairp
        Mr_Monkey: well, I remember being unhappy with having 2 different fields for the same information
      • 2021-02-15 04618, 2021

      • alastairp
        the correct thing to do here is to have a user object (we already have one in LB!) that encapsulates both the ID and name
      • 2021-02-15 04629, 2021

      • alastairp
        but I think in the interests of time last year I just added 2 fields
      • 2021-02-15 04653, 2021

      • BrainzGit
        [listenbrainz-server] mayhem opened pull request #1287 (master…heisentest): STFU heisentest! https://github.com/metabrainz/listenbrainz-server…
      • 2021-02-15 04628, 2021

      • BrainzGit
        [listenbrainz-server] mayhem merged pull request #1286 (master…rabbitmq-service-name): Support RABBITMQ_SERVICE environment variable https://github.com/metabrainz/listenbrainz-server…
      • 2021-02-15 04649, 2021

      • Mr_Monkey
        alastairp: WRT https://github.com/metabrainz/listenbrainz-server… with the user being optional, is there a better way to access `user["id"]` where user could be `None`?
      • 2021-02-15 04651, 2021

      • alastairp
        Mr_Monkey: yeah, that's a good question
      • 2021-02-15 04634, 2021

      • Mr_Monkey
        _lucifer: Some failing JS tests regarding receiveNewListen for you to look at :) https://ci.metabrainz.org/job/listenbrainz-js/326…
      • 2021-02-15 04628, 2021

      • _lucifer
        did the follow feature start working ;P
      • 2021-02-15 04628, 2021

      • alastairp
        I was looking into it more, and validate_auth_header is making me think. the behaviour of the (True) is very opaque, but this is turning into a bigger task that we shouldn't do in this PR
      • 2021-02-15 04600, 2021

      • alastairp
        I don't like that None as a return value of validate_auth_header means something special, and we're propagating that behaviour into the is_visible_by function too
      • 2021-02-15 04621, 2021

      • BrainzGit
        [musicbrainz-server] reosarevok opened pull request #1910 (master…MBS-11387): MBS-11387: Use l_relationships for "instrument" attribute name https://github.com/metabrainz/musicbrainz-server/…
      • 2021-02-15 04627, 2021

      • alastairp
        It think it's OK to leave as-is in this PR, but I'd like to open a ticket to improve the behaviour of the current authenticated user in the API
      • 2021-02-15 04604, 2021

      • ruaok
        +1
      • 2021-02-15 04634, 2021

      • alastairp
        in the webapp we have this built-in AnonymousUser which is provided by the login tool that we have, this way we can do stuff like `user.is_authenticated` (which I see is what I wrote in my original suggested method). this way we absolutely know that we're working with a user, rather than a dict, or None, or...
      • 2021-02-15 04632, 2021

      • ruaok
        outsidecontext: can you please have a look at the GSoC ideas page for picard? I know zas is quite busy at the moment and we should really flesh out the ideas page.
      • 2021-02-15 04625, 2021

      • outsidecontext
        ruaok: will do, but also low on time currently. But I should be able to take a look this week if this works timewise
      • 2021-02-15 04647, 2021

      • ruaok
        on or before the 19th would be ideal.
      • 2021-02-15 04604, 2021

      • ruaok
        and you know that GSoC projects are half the size they used to be, yes?
      • 2021-02-15 04638, 2021

      • outsidecontext
        ok, that is doable. but nope, don't know about current GSoC procedures :)
      • 2021-02-15 04601, 2021

      • outsidecontext
        is it half the time or how are they organized?
      • 2021-02-15 04618, 2021

      • ruaok
        that is the most important thing to know -- projects are now taking up half the time over a larger period of time.
      • 2021-02-15 04635, 2021

      • outsidecontext
        ok
      • 2021-02-15 04636, 2021

      • ruaok
        organized much in the same way as before, just not as in depth.
      • 2021-02-15 04647, 2021

      • Mr_Monkey
        Yeah that anonymous user sounds way better alastairp. Indeed for another PR.
      • 2021-02-15 04613, 2021

      • reosarevok
        yvanzo, bitmap: https://tickets.metabrainz.org/browse/MBS-11384 exists because we just check whether the area is marked as of type country (which Europe and [Worldwide] unsurprisingly are not). Should we pass is_release_country_area to JS for this check?
      • 2021-02-15 04614, 2021

      • BrainzBot
        MBS-11384: Some (release) countries are untranslated
      • 2021-02-15 04632, 2021

      • reosarevok
        I expect that's the actual condition for whether something is in the l_countries context
      • 2021-02-15 04654, 2021

      • reosarevok
      • 2021-02-15 04628, 2021

      • _lucifer
        Mr_Monkey: interestingly tests passed before adding the return statements
      • 2021-02-15 04659, 2021

      • Mr_Monkey
        Huh. let me look at those tests
      • 2021-02-15 04646, 2021

      • _lucifer
      • 2021-02-15 04656, 2021

      • _lucifer
        ah ok makes sense, if the ws message is already correct it still goes to else hence the error. i'll fix it
      • 2021-02-15 04636, 2021

      • Mr_Monkey
        Ah, right.
      • 2021-02-15 04625, 2021

      • shivam-kapila
        Mr_Monkey: did you get time to catch the YT playback error
      • 2021-02-15 04637, 2021

      • Mr_Monkey
        Not yet no
      • 2021-02-15 04612, 2021

      • yvanzo
        reosarevok: That seems sensible to me.
      • 2021-02-15 04657, 2021

      • reosarevok
        Ok
      • 2021-02-15 04633, 2021

      • BrainzGit
        [sir] yvanzo merged pull request #119 (master…rabbitmq-service-name): Support RABBITMQ_SERVICE environment variable https://github.com/metabrainz/sir/pull/119
      • 2021-02-15 04646, 2021

      • Mr_Monkey
        _lucifer: Last commit to #1284 looks good, let's wait for the tests and merge.
      • 2021-02-15 04645, 2021

      • sumedh has quit
      • 2021-02-15 04616, 2021

      • _lucifer
        Mr_Monkey: passed
      • 2021-02-15 04629, 2021

      • Mr_Monkey
        👍
      • 2021-02-15 04639, 2021

      • BrainzGit
        [listenbrainz-server] MonkeyDo merged pull request #1284 (master…ws-bugfix): Fix websockets data format to avoid breaking listens page https://github.com/metabrainz/listenbrainz-server…
      • 2021-02-15 04634, 2021

      • BrainzGit
        [sir] release v2.0.1 has been published by yvanzo: https://github.com/metabrainz/sir/releases/tag/v2…
      • 2021-02-15 04622, 2021

      • alastairp
        lol
      • 2021-02-15 04656, 2021

      • alastairp
        ruaok: "@brainzbot retest this please" is the magic. I wonder if we can make the check phase a bit more flexible
      • 2021-02-15 04643, 2021

      • alastairp
        Test phrase: `.*test\W+this\W+please.*`
      • 2021-02-15 04613, 2021

      • alastairp
        happy to take suggestions for changes. perhaps .*test.* is easier
      • 2021-02-15 04624, 2021

      • ruaok
        ah, thanks.
      • 2021-02-15 04625, 2021

      • Mr_Monkey
        Since you're taking suggestions, I propose `Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn`
      • 2021-02-15 04636, 2021

      • ruaok
        well, I haven't been able to trip that test failure with that PR. should we merge it and see how it goes?
      • 2021-02-15 04649, 2021

      • ruaok
        Mr_Monkey: super easy, lets do that!
      • 2021-02-15 04641, 2021

      • shivam-kapila
        and how to remember that Mr_Monkey XD
      • 2021-02-15 04624, 2021

      • alastairp
        Mr_Monkey: sounds like you're volunteering to be the person to trigger tests when someone asks you to do so
      • 2021-02-15 04617, 2021

      • Mr_Monkey
        Oh easy peasy, just read it once in the Necronomicon, burning the ancient words in you rmind of minds, melting all in its wake, slowly but inevitably replacing avery living moment with Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.
      • 2021-02-15 04619, 2021

      • Mr_Monkey
        Easy.
      • 2021-02-15 04615, 2021

      • alastairp
        keep in mind that ruaok can't even memorise "test this please" :)
      • 2021-02-15 04622, 2021

      • Mr_Monkey
        Lol
      • 2021-02-15 04601, 2021

      • goapunk has quit
      • 2021-02-15 04607, 2021

      • alastairp
        OK, I changed it to `(.*test.*please.*)|(.*please.*test.*)`
      • 2021-02-15 04618, 2021

      • alastairp
        so you still have to be nice to it, but it doesn't matter in which order
      • 2021-02-15 04650, 2021

      • shivam-kapila
        lol
      • 2021-02-15 04658, 2021

      • goapunk joined the channel
      • 2021-02-15 04658, 2021

      • ruaok
      • 2021-02-15 04605, 2021

      • Mr_Monkey
        One more order on alastairp's plate :)
      • 2021-02-15 04605, 2021

      • Mr_Monkey
        But if you want you can review too ruaok ?
      • 2021-02-15 04637, 2021

      • alastairp
        what's missing?
      • 2021-02-15 04615, 2021

      • Mr_Monkey
        Just a re-review.
      • 2021-02-15 04637, 2021

      • sumedh joined the channel
      • 2021-02-15 04631, 2021

      • ruaok
        yvanzo: how are your preparations going? We have 2 hours until the meeting and I am not available after that.
      • 2021-02-15 04608, 2021

      • sumedh has quit
      • 2021-02-15 04642, 2021

      • yvanzo
        ruaok: I’m testing migration with sir-test; can do listenbrainz after that.
      • 2021-02-15 04609, 2021

      • ruaok
        ok, I'll start prepping the release then.
      • 2021-02-15 04612, 2021

      • iliekcomputers
        >@brainzbot Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
      • 2021-02-15 04621, 2021

      • iliekcomputers
        I see our incantations are getting more complex
      • 2021-02-15 04637, 2021

      • ruaok
        it didn't work. :(
      • 2021-02-15 04653, 2021

      • iliekcomputers
        the integration tests have been really flaky since the move to Jenkins, it seems
      • 2021-02-15 04614, 2021

      • ruaok
        it started before then.
      • 2021-02-15 04627, 2021

      • ruaok
        and we've nailed most of the problems, save for the pesky template1 error.
      • 2021-02-15 04604, 2021

      • ruaok
        and here is my attempt at mitigating that: https://github.com/metabrainz/listenbrainz-server…
      • 2021-02-15 04658, 2021

      • iliekcomputers
        ah, thanks!
      • 2021-02-15 04608, 2021

      • iliekcomputers
        i see you've been having fun with brainzbot today, ruaok :D
      • 2021-02-15 04629, 2021

      • ruaok
        yeah, just providing some entertainment for the team.
      • 2021-02-15 04650, 2021

      • ruaok
        think I should merge #1287 -- its not caused a failure, but then again I don't see the mitigation triggering.
      • 2021-02-15 04659, 2021

      • ruaok
        +?
      • 2021-02-15 04617, 2021

      • iliekcomputers
        yep. approved.
      • 2021-02-15 04624, 2021

      • ruaok
        kewl, thanks.
      • 2021-02-15 04652, 2021

      • BrainzGit
        [listenbrainz-server] mayhem merged pull request #1287 (master…heisentest): STFU heisentest! https://github.com/metabrainz/listenbrainz-server…
      • 2021-02-15 04638, 2021

      • Mr_Monkey rebases #1276
      • 2021-02-15 04653, 2021

      • ruaok
        today
      • 2021-02-15 04602, 2021

      • ruaok
        today's proposed release is up on beta now: https://beta.listenbrainz.org/
      • 2021-02-15 04653, 2021

      • Mr_Monkey
        So far everything looks good to me
      • 2021-02-15 04634, 2021

      • ruaok
        Mr_Monkey: thanks, yes.
      • 2021-02-15 04649, 2021

      • ruaok
        but, this is the "autoplay" problem I was mentioning to you on friday: https://photos.app.goo.gl/LTAsdycdztAkQozW8
      • 2021-02-15 04622, 2021

      • Mr_Monkey
        Well that's not great.
      • 2021-02-15 04641, 2021

      • ruaok
        its been there for a while, so not a showstopper.
      • 2021-02-15 04606, 2021

      • ruaok
        yvanzo: ready for release -- how should we proceed?
      • 2021-02-15 04618, 2021

      • iliekcomputers
        yeah, i think that bug has been there since last summer at least
      • 2021-02-15 04619, 2021

      • Mr_Monkey
        So if you're playing something on spotify, the page should reflect that when you open it, with whatever you are playing. It shouldn't try to play any of the songs automatically, not sure what's causing this
      • 2021-02-15 04625, 2021

      • Mr_Monkey
        Agh
      • 2021-02-15 04658, 2021

      • ruaok
        it never happens on my listens page, but it happens on the playlist page. so, I've not seen it longer than we've had playlists.
      • 2021-02-15 04618, 2021

      • iliekcomputers
        weird, i've seen it on the listens page quite often
      • 2021-02-15 04628, 2021

      • Mr_Monkey
        Autoplay?
      • 2021-02-15 04636, 2021

      • ruaok
        not saying it doesn't happen to others, but it doesn't happen to me on the listens page.
      • 2021-02-15 04640, 2021

      • iliekcomputers
        yep.
      • 2021-02-15 04624, 2021

      • yvanzo
        ruaok: just release as usual, no need to set RABBITMQ_SERVICE for now.
      • 2021-02-15 04651, 2021

      • ruaok
        won't I need to restart the containers when we start the migration?
      • 2021-02-15 04603, 2021

      • ruaok
        I'd prefer to only do one restart if necessary.
      • 2021-02-15 04612, 2021

      • yvanzo
        oh ok
      • 2021-02-15 04621, 2021

      • yvanzo
        yes that will require recreating containers.
      • 2021-02-15 04642, 2021

      • ruaok
        I cant wait until you're ready... as long as we still have time.
      • 2021-02-15 04647, 2021

      • ruaok
        or we just delay until tomorrow.
      • 2021-02-15 04605, 2021

      • CatQuest
        [17:12] <Mr_Monkey> Since you're taking suggestions, I propose `Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn`
      • 2021-02-15 04605, 2021

      • CatQuest
        lmao
      • 2021-02-15 04621, 2021

      • shivam-kapila
        > weird, i've seen it on the listens page quite often
      • 2021-02-15 04621, 2021

      • shivam-kapila
        I also have encountered it on my profile itself
      • 2021-02-15 04611, 2021

      • iliekcomputers
      • 2021-02-15 04622, 2021

      • _lucifer
        ruaok: in case you have some time today, can you help with some issues i am facing while trying to test BU with meb website
      • 2021-02-15 04647, 2021

      • ruaok
        what cha'got, _lucifer