#metabrainz

/

      • zas
        plus it's quite inefficient, as it leads to ~500 regexps matches per query
      • 2021-03-11 07000, 2021

      • zas
        additionnally I think this belongs to related services instead of gateways
      • 2021-03-11 07026, 2021

      • kepstin
        also, this gets kind of annoying… https://www.kepstin.ca/dump/Screenshot_2021-03-11…
      • 2021-03-11 07033, 2021

      • zas
        so, first, is it possible to move those rewrites to backends?
      • 2021-03-11 07054, 2021

      • bitmap
        that's very possible, I'm pretty sure this stuff was ported from classic.mb around the time ngs was happening, idk the last time it worked
      • 2021-03-11 07006, 2021

      • bitmap
        we should probably move it to the gateways, yes
      • 2021-03-11 07016, 2021

      • bitmap
        there is already some kind of script to sync the file there, so
      • 2021-03-11 07016, 2021

      • zas
        move from?
      • 2021-03-11 07051, 2021

      • bitmap
        or do you mean handle the redirects in perl?
      • 2021-03-11 07006, 2021

      • bitmap
        sorry I missed your last comment
      • 2021-03-11 07007, 2021

      • zas
        yes
      • 2021-03-11 07029, 2021

      • zas
        well, I think those rewrites should be testable (they broke, and no one knows)
      • 2021-03-11 07008, 2021

      • zas
        also, it'd be prolly easier to manage
      • 2021-03-11 07009, 2021

      • bitmap
        well we could, I'd prefer them on the gateway if there's an efficient way to implement them there
      • 2021-03-11 07035, 2021

      • zas
        why do you prefer them on gateways?
      • 2021-03-11 07035, 2021

      • bitmap
        but it would be easier to manage in perl, yes
      • 2021-03-11 07022, 2021

      • bitmap
        mostly because we already have a bunch of configuration to work from
      • 2021-03-11 07031, 2021

      • bitmap
        porting them to perl will be much more work
      • 2021-03-11 07029, 2021

      • ShivamAwasthi joined the channel
      • 2021-03-11 07019, 2021

      • bitmap
        and it would be a lot of code given how many redirects there are, spread across many files, right now they're all compactly in one file which is nice
      • 2021-03-11 07028, 2021

      • Cyna[m]
      • 2021-03-11 07039, 2021

      • Cyna[m]
        Can you have a look when free ?
      • 2021-03-11 07010, 2021

      • zas
        not sure I'm for such "centralization", but ok. So now, how can those rewrites can be tested?
      • 2021-03-11 07014, 2021

      • bitmap
        Cyna[m]: okay :)
      • 2021-03-11 07010, 2021

      • bitmap
        can we install them to test.mb? that would make it easier
      • 2021-03-11 07031, 2021

      • zas
        yes (don't they work there already?)
      • 2021-03-11 07008, 2021

      • zas
        also the way they are written make extensive of (evil) nginx if, most should be moved to map
      • 2021-03-11 07040, 2021

      • zas
        plus we need improve matches to prevent useless matches
      • 2021-03-11 07058, 2021

      • bitmap
        oh, I guess they are
      • 2021-03-11 07011, 2021

      • bitmap
        though I think the config file is shared between prod, beta, & test
      • 2021-03-11 07003, 2021

      • zas
        for example, we have tons of sequential matches for ^/news/, but each query is tested against each, even if it doesn't start with /news/
      • 2021-03-11 07030, 2021

      • zas
        ok, I could use a different rewrite file for test.mb.o
      • 2021-03-11 07004, 2021

      • zas
        or we could use a prefixed file with a default, I'll look into this
      • 2021-03-11 07017, 2021

      • bitmap
        that would be nice, and if you let me know how I can easily reload it to test changes, I could work on improving it and removing evil nginx stuff
      • 2021-03-11 07055, 2021

      • zas
        that's the point: easily, no, you need to reload gateway nginx process (HUPit)
      • 2021-03-11 07015, 2021

      • zas
        (after you sync rewrite file ofc)
      • 2021-03-11 07017, 2021

      • reosarevok
        I mean, you could test on the main file for all it matters, because it's broken anyway
      • 2021-03-11 07032, 2021

      • CatQuest
        how do I "follow" people?
      • 2021-03-11 07038, 2021

      • bitmap
        ok, maybe I can set something up locally then
      • 2021-03-11 07038, 2021

      • reosarevok
        But I guess if you need to reset nginx then it doesn't help
      • 2021-03-11 07014, 2021

      • bouhormq has quit
      • 2021-03-11 07033, 2021

      • zas
        also, to see what nginx does, you need to enable rewrite_log, and that's not a good idea on prod (at all)
      • 2021-03-11 07002, 2021

      • bitmap
        we should probably have a small nginx Dockerfile in the mbs repo that can test the config
      • 2021-03-11 07048, 2021

      • ShivamAwasthi has quit
      • 2021-03-11 07015, 2021

      • reosarevok
        zas: I guess even if we had a first check for "skip all other rules if this doesn't match", that would still flood the rewrite_log?
      • 2021-03-11 07022, 2021

      • reosarevok
        (since it'd still be at least one line per page load)
      • 2021-03-11 07040, 2021

      • reosarevok
        I mean, a lot less than with 450 or whatever lines per load, but
      • 2021-03-11 07039, 2021

      • zas
        perhaps, but rewrite_log isn't meant to run on prod anyway (we can enable it on test.mb.o though)
      • 2021-03-11 07045, 2021

      • bitmap
        zas: I can work in it tonight, hopefully get a small docker container working and hook it into our CI
      • 2021-03-11 07050, 2021

      • bitmap
        *on it
      • 2021-03-11 07010, 2021

      • reosarevok
        zas: sure, I know :) Just wondering in general
      • 2021-03-11 07021, 2021

      • reosarevok
        But yeah, for testing at least it would be sensible
      • 2021-03-11 07051, 2021

      • zas
        bitmap: ok, on my side I'll see how to split rewrite configs between test.mb.o and the rest
      • 2021-03-11 07000, 2021

      • bitmap
        btw, we talked about restarting PG earlier in the week, we ought to schedule a day to do it so it doesn't slip by again
      • 2021-03-11 07042, 2021

      • bitmap
        to fix the logging config and upgrade pg_amqp
      • 2021-03-11 07051, 2021

      • shivam-kapila
        > the UI is coming soon.
      • 2021-03-11 07051, 2021

      • shivam-kapila
        real soon :crossed_fingers:
      • 2021-03-11 07028, 2021

      • shivam-kapila
        Mr_Monkey: how is the PR overall?
      • 2021-03-11 07050, 2021

      • CatQuest
        I'd be SO cool to finally have proper social features on lb!
      • 2021-03-11 07041, 2021

      • bouhormq joined the channel
      • 2021-03-11 07013, 2021

      • Mr_Monkey forgot to click submit…
      • 2021-03-11 07035, 2021

      • Mr_Monkey
        Soz
      • 2021-03-11 07046, 2021

      • dpmittal
        Hello everyone! My name is Divya Prakash Mittal and I wish to contribute to ListenBrainz in GSoC 2021. I was able to set up the dev instance locally after going through docs and was looking at the "good-first-bug" JIRAs and I felt that I can take up some like LB-773 and LB-783 but they were assigned so I wanted to know if it's in progress or can I take them up?
      • 2021-03-11 07047, 2021

      • BrainzBot
        LB-773: Remove pytz dependency https://tickets.metabrainz.org/browse/LB-773
      • 2021-03-11 07047, 2021

      • BrainzBot
        LB-783: Dumps documentation page doesn't link to dumps location https://tickets.metabrainz.org/browse/LB-783
      • 2021-03-11 07037, 2021

      • alastairp
        hi dpmittal! If they're not assigned to anyone then you're welcome to take them
      • 2021-03-11 07006, 2021

      • alastairp
        ah, they're assigned to iliekcomputers, but that's a default asignment. let me undo that
      • 2021-03-11 07039, 2021

      • alastairp
        now they're unassigned!
      • 2021-03-11 07003, 2021

      • alastairp
        it would be good if you pick just one at a time, so that if others want to work on one as well they are able to
      • 2021-03-11 07031, 2021

      • dpmittal
        Okay yes understood that, I'll assign LB-773 to myself and start working on it
      • 2021-03-11 07032, 2021

      • BrainzBot
        LB-773: Remove pytz dependency https://tickets.metabrainz.org/browse/LB-773
      • 2021-03-11 07047, 2021

      • dpmittal
        Thanks a lot alastairp :)
      • 2021-03-11 07019, 2021

      • Cyna[m]
        hmm... listenbrainz is getting more popular than musicbrainz XD.
      • 2021-03-11 07048, 2021

      • reosarevok
        dpmittal: hi! I thought the name was familiar :)
      • 2021-03-11 07057, 2021

      • alastairp
        is there a way to bulk-unassign in jira? We should unassign iliekcomputers from these: https://tickets.metabrainz.org/issues/?jql=projec…
      • 2021-03-11 07005, 2021

      • reosarevok
        GCI finalist with us, right?
      • 2021-03-11 07011, 2021

      • bouhormq has quit
      • 2021-03-11 07041, 2021

      • CatQuest
        dpmittal hy i recognise that name!
      • 2021-03-11 07055, 2021

      • dpmittal
        Hi reosarevok, CatQuest :D Yes I was a finalist from MeB in 2015 and 2016
      • 2021-03-11 07043, 2021

      • shivam-kapila
        This is nice to see :)
      • 2021-03-11 07017, 2021

      • shivam-kapila
        Mr_Monkey: Thanks for catching the state thing. Totally unnecessary. All fixes pushed
      • 2021-03-11 07026, 2021

      • reosarevok
        "the state thing: totally unnecessary"
      • 2021-03-11 07037, 2021

      • reosarevok
        #libertarians2024
      • 2021-03-11 07039, 2021

      • reosarevok shuts up
      • 2021-03-11 07052, 2021

      • atj
        damnit reosarevok
      • 2021-03-11 07003, 2021

      • atj
        the libertarian jokes are my area
      • 2021-03-11 07007, 2021

      • ruaok snickers
      • 2021-03-11 07016, 2021

      • shivam-kapila
        reeeo
      • 2021-03-11 07017, 2021

      • ruaok
        atj: what's your best one?
      • 2021-03-11 07006, 2021

      • bouhormq joined the channel
      • 2021-03-11 07015, 2021

      • atj
        Unfortunately I sold them all in the marketplace of ideas, and am now unable to repeat them due to threats of legal action
      • 2021-03-11 07040, 2021

      • reosarevok
        Sigh, BrainzGit is gone again
      • 2021-03-11 07042, 2021

      • reosarevok goes fix that
      • 2021-03-11 07048, 2021

      • reosarevok
      • 2021-03-11 07000, 2021

      • bitmap
        looks good, testing it now
      • 2021-03-11 07001, 2021

      • reosarevok
        bitmap: did you find any other cases like this?
      • 2021-03-11 07007, 2021

      • shivam-kapila
        yvanzo renamed?
      • 2021-03-11 07008, 2021

      • bitmap
        no, not yet
      • 2021-03-11 07021, 2021

      • reosarevok
        shivam-kapila: he just numbered. in weird made up language
      • 2021-03-11 07028, 2021

      • reosarevok shrugs
      • 2021-03-11 07033, 2021

      • reosarevok
        The French, they're... strange
      • 2021-03-11 07040, 2021

      • shivam-kapila
        oh so its a version upgrade
      • 2021-03-11 07058, 2021

      • ruaok
        atj: well done. :)
      • 2021-03-11 07000, 2021

      • reosarevok
        shivam-kapila: or a downgrade, I'm not sure :D
      • 2021-03-11 07025, 2021

      • reosarevok
        Maybe the latest yvanzo version isn't numbered, but when he gets killed, he is cloned into a numbered version with half the memories
      • 2021-03-11 07055, 2021

      • reosarevok
        bitmap: dunno if yvanzomeu is around so I think I'll just release beta with this
      • 2021-03-11 07056, 2021

      • ruaok
        this sounds like the great base for a scifi plot.
      • 2021-03-11 07040, 2021

      • shivam-kapila
        maybe reo writes scripts as a part time job. who knows
      • 2021-03-11 07052, 2021

      • reosarevok
        I do not, but I guess I was half-aping altered carbon :p
      • 2021-03-11 07053, 2021

      • Clint
        so it's your fault they canceled it
      • 2021-03-11 07016, 2021

      • reosarevok
        Wait, they did?
      • 2021-03-11 07022, 2021

      • reosarevok
        Oh, meh
      • 2021-03-11 07007, 2021

      • yvanzomeu is now known as yvanzo
      • 2021-03-11 07026, 2021

      • yvanzo
        this is not a downgrade ^^
      • 2021-03-11 07039, 2021

      • reosarevok
      • 2021-03-11 07039, 2021

      • BrainzBot
        MBS-11436: Beta: ISE on user's collection subscription pages
      • 2021-03-11 07051, 2021

      • reosarevok
        So let's fix this one before releasing beta
      • 2021-03-11 07021, 2021

      • bitmap
        want me to do this one or are you already on it?
      • 2021-03-11 07050, 2021

      • reosarevok
        I'm taking a look, maybe look at the zas stuff and I can ask if I get stuck
      • 2021-03-11 07014, 2021

      • BrainzGit joined the channel
      • 2021-03-11 07046, 2021

      • reosarevok
        Oh, yeah, with all this I forgot brainzgit :D
      • 2021-03-11 07003, 2021

      • reosarevok
        Well, thanks, whoever brought it back (yvanzo?)
      • 2021-03-11 07013, 2021

      • yvanzo
        yes, just restarted it (on williams), see syswiki :)
      • 2021-03-11 07016, 2021

      • reosarevok
        I know how to do it, I just got distracted :)
      • 2021-03-11 07019, 2021

      • reosarevok
        Thanks!
      • 2021-03-11 07040, 2021

      • reosarevok
        (I only know how to do it *because of syswiki*, but :D )
      • 2021-03-11 07047, 2021

      • yvanzo
        You’re welcome :)
      • 2021-03-11 07028, 2021

      • bouhormq has quit
      • 2021-03-11 07013, 2021

      • bitmap
        Cyna[m]: re: your google doc, I left some questions on it which might help you expand it. there isn't much to comment on atm since it appears to be generic and not tailored to MB
      • 2021-03-11 07026, 2021

      • Cyna[m]
        Yep
      • 2021-03-11 07057, 2021

      • Cyna[m]
        It is not tailored to it yet :). Thanks I will have a look and add details specific to MB
      • 2021-03-11 07053, 2021

      • iliekcomputers
        I tweeted a thread with some gifs and screenshots: https://twitter.com/ListenBrainz/status/137007598…
      • 2021-03-11 07054, 2021

      • Cyna[m]
        Is there a specific email template I can refer to for notifications ?
      • 2021-03-11 07002, 2021

      • bitmap
      • 2021-03-11 07021, 2021

      • BrainzGit
        [musicbrainz-server] reosarevok merged pull request #1972 (beta…MBS-11435): MBS-11435: Don't modify data in build_display_data for EditReleaseLabel https://github.com/metabrainz/musicbrainz-server/…
      • 2021-03-11 07013, 2021

      • bitmap
        unfortunately these don't have i18n but they should in the new system
      • 2021-03-11 07003, 2021

      • iliekcomputers
        New twitter login is me
      • 2021-03-11 07010, 2021

      • ruaok
        k
      • 2021-03-11 07031, 2021

      • BrainzGit
        [musicbrainz-server] reosarevok opened pull request #1973 (beta…MBS-11436): MBS-11436: Don't try to call method public on unblessed JSON https://github.com/metabrainz/musicbrainz-server/…
      • 2021-03-11 07044, 2021

      • reosarevok
        yvanzo, bitmap ^
      • 2021-03-11 07012, 2021

      • _lucifer
        ruaok, what data do you want to post using troi on the timeline? just a message or something else?
      • 2021-03-11 07058, 2021

      • ruaok
        message with a link should suffice.
      • 2021-03-11 07009, 2021

      • _lucifer
        👍:
      • 2021-03-11 07015, 2021

      • bouhormq joined the channel
      • 2021-03-11 07018, 2021

      • ShivamAwasthi joined the channel
      • 2021-03-11 07040, 2021

      • bouhormq has quit
      • 2021-03-11 07035, 2021

      • bouhormq joined the channel
      • 2021-03-11 07010, 2021

      • bouhormq has quit
      • 2021-03-11 07016, 2021

      • shivam-kapila
        Mr_Monkey: ping
      • 2021-03-11 07057, 2021

      • Mr_Monkey
        pong