#metabrainz

/

      • ruaok
        and if not, go you have an example query to hand that I can start with?
      • 2021-01-20 02018, 2021

      • zas
        well, if key changes, your container will not be updated, but I guess it will not change often
      • 2021-01-20 02029, 2021

      • ruaok
        I dont plan to change the keys. ever.
      • 2021-01-20 02040, 2021

      • zas
        you need to use: curl -s http://$PRIVATEIP:$CONSULPORT/v1/kv/KEY or the like
      • 2021-01-20 02054, 2021

      • ruaok
        thx, let me play
      • 2021-01-20 02030, 2021

      • zas
      • 2021-01-20 02003, 2021

      • zas
      • 2021-01-20 02019, 2021

      • zas
        ?raw = just the value
      • 2021-01-20 02026, 2021

      • ruaok
        perfect
      • 2021-01-20 02051, 2021

      • ruaok
      • 2021-01-20 02010, 2021

      • ruaok
        and the API key is really not a secret -- if I could do without I would not have one.
      • 2021-01-20 02036, 2021

      • ruaok
        given that, I am just going to pass the key on the command line.
      • 2021-01-20 02040, 2021

      • ruaok
        also that code hasn't been run, since the key doesn't exist. 🤞
      • 2021-01-20 02021, 2021

      • BrainzGit
        [listenbrainz-server] mayhem merged pull request #1240 (master…stfu-sentry-1): Sentry cleanup, part 1. https://github.com/metabrainz/listenbrainz-server…
      • 2021-01-20 02044, 2021

      • ruaok
        iliekcomputers: should i wait with the LB release since you're on PR review spree?
      • 2021-01-20 02046, 2021

      • iliekcomputers
        ruaok: i just finished with it. i'd say go ahead, don't think there's anything i reviewed that's crucial/urgent to release.
      • 2021-01-20 02030, 2021

      • ruaok
        ok, I'm runnning the tests one last time on the updated production branch, so I'll continue with that.
      • 2021-01-20 02049, 2021

      • ruaok
        if would be great if you could publish the release notes once I finish with the release, though.
      • 2021-01-20 02051, 2021

      • ruaok
        oh, the branch that wanted to release wasn't actually merged yet.
      • 2021-01-20 02006, 2021

      • ruaok
        got anything else ready to merge since I do have to start over?
      • 2021-01-20 02013, 2021

      • ruaok
        🤦‍♂️
      • 2021-01-20 02026, 2021

      • BrainzGit
        [listenbrainz-server] mayhem merged pull request #1197 (master…rec-component-feedback): Merge branch rec-component-feedback to master https://github.com/metabrainz/listenbrainz-server…
      • 2021-01-20 02031, 2021

      • ruaok
        pristine___: ^^
      • 2021-01-20 02047, 2021

      • BrainzGit
        [listenbrainz-server] mayhem merged pull request #1086 (master…LB-686-user-information-cleanup): LB-686 Cleaned up a variety of user information pages https://github.com/metabrainz/listenbrainz-server…
      • 2021-01-20 02037, 2021

      • iliekcomputers
        nope, nothing else.
      • 2021-01-20 02058, 2021

      • ruaok
        pristine___: remind me, for the rec-component PR that was just merged, were there DB changes that needed to go with the release?
      • 2021-01-20 02004, 2021

      • ruaok
        or are those already in place?
      • 2021-01-20 02029, 2021

      • ruaok
        zas: your comment on the PR raises an issue I don't really like about this solution.
      • 2021-01-20 02058, 2021

      • ruaok
        the services that run on gaga are not somewhat dependent on or possibly slowed down by consul being up and responding.
      • 2021-01-20 02034, 2021

      • ruaok
        can we imagine a case where consul might not be up, but we want to start services anyway? perhaps so they become ready when consul comes up?
      • 2021-01-20 02051, 2021

      • ruaok
        I just don't really like how to handle this stuff. its not very nice at all. :(
      • 2021-01-20 02008, 2021

      • zas
        I'd say if consul is down, something very bad is happening, and starting services will not be our priority
      • 2021-01-20 02021, 2021

      • zas
        consul is a cluster, and almost all services depends on it
      • 2021-01-20 02040, 2021

      • ruaok
        yeah, I just feels like we're opening the door for another failure mode.
      • 2021-01-20 02050, 2021

      • ruaok
        what other options do we have for solving this?
      • 2021-01-20 02057, 2021

      • zas
        solve what?
      • 2021-01-20 02000, 2021

      • ruaok
        I mean, I don't care about the key. really, I don't.
      • 2021-01-20 02025, 2021

      • zas
        but this solution is ok, just be sure curl doesn't fail
      • 2021-01-20 02026, 2021

      • devorizon[m]
        hi iliekcomputers: this is about PR #1238 about lb-535, i want to disscuss about this issue, about what changes we can do here?
      • 2021-01-20 02048, 2021

      • ruaok
        and what do I do if it does fail?
      • 2021-01-20 02007, 2021

      • zas
        just bail out, as you expect a key you didn't get
      • 2021-01-20 02016, 2021

      • ruaok
        and not start the other services?
      • 2021-01-20 02031, 2021

      • ruaok
        or don't start typesense and start everything else?
      • 2021-01-20 02033, 2021

      • zas
        well, if this command fails ... something is wrong
      • 2021-01-20 02058, 2021

      • ruaok
        I think I will make it so that everything but typesense starts.
      • 2021-01-20 02016, 2021

      • ruaok
        if the key cannot be fetched from consul.
      • 2021-01-20 02016, 2021

      • zas
        yes, makes sense since only typesense depends on this key
      • 2021-01-20 02024, 2021

      • ruaok
        k
      • 2021-01-20 02024, 2021

      • Mr_Monkey
        ruaok: about that javascript test suite, looks like all the tests pass but the linting step that runs afterwards is shitting itself and erroring. I'll look into it.
      • 2021-01-20 02054, 2021

      • ruaok
        thanks, Mr_Monkey
      • 2021-01-20 02022, 2021

      • zas
        bitmap: ping me when you're around, I need a second sight on serviceregistrator stuff
      • 2021-01-20 02021, 2021

      • ruaok
        wow, its been over 4 years since we moved to hetzner. I'm happy with our decisions.
      • 2021-01-20 02051, 2021

      • ruaok
        pristine___: Mr_Monkey : alastairp : the release is live on beta.listenbrainz.org
      • 2021-01-20 02010, 2021

      • Mr_Monkey checks it out
      • 2021-01-20 02002, 2021

      • ruaok
        I guess that answers if there is a SQL script that needs to be run.
      • 2021-01-20 02010, 2021

      • Mr_Monkey
        Hm, the submit endpoint is returning 500 when I try
      • 2021-01-20 02021, 2021

      • ruaok
        submit rec feedback?
      • 2021-01-20 02025, 2021

      • Mr_Monkey
        Correct
      • 2021-01-20 02033, 2021

      • ruaok
        I saw that, and I think that is the missing SQL script that I was asking pristine___ about.
      • 2021-01-20 02040, 2021

      • Mr_Monkey
        `beta-api.listenbrainz.org/1/recommendation/feedback/submit``
      • 2021-01-20 02046, 2021

      • Mr_Monkey
        Right
      • 2021-01-20 02013, 2021

      • ruaok
        hmm. that script is buggy
      • 2021-01-20 02057, 2021

      • ruaok
        ok, run successfully.
      • 2021-01-20 02004, 2021

      • ruaok
        try entering that rec feedback again.
      • 2021-01-20 02016, 2021

      • Mr_Monkey
        Working nicely !
      • 2021-01-20 02043, 2021

      • ruaok
        I entered one, but the UI doesn't show that I did. should it?
      • 2021-01-20 02044, 2021

      • Mr_Monkey
        !m pristine___
      • 2021-01-20 02044, 2021

      • BrainzBot
        You're doing good work, pristine___!
      • 2021-01-20 02050, 2021

      • Mr_Monkey
        It should
      • 2021-01-20 02015, 2021

      • Mr_Monkey
      • 2021-01-20 02023, 2021

      • ruaok
        ok, let me clarify -- I entered it, the UI updated, but when I reload the page, the Love is gone.
      • 2021-01-20 02030, 2021

      • reosarevok
        Oh no. The love is gone :(
      • 2021-01-20 02034, 2021

      • Mr_Monkey
        I confirm that
      • 2021-01-20 02058, 2021

      • ruaok
        show stopper? proceed?
      • 2021-01-20 02028, 2021

      • Mr_Monkey
        I'm seeing this in the console: `GET https://beta-api.listenbrainz.org/1/recommendatio… net::ERR_CONNECTION_CLOSED`
      • 2021-01-20 02022, 2021

      • Mr_Monkey
        Are there any errors in the server log?
      • 2021-01-20 02033, 2021

      • ruaok
        no.
      • 2021-01-20 02047, 2021

      • ruaok
        but I see one request where it tries to fetch the data for my page.
      • 2021-01-20 02053, 2021

      • ruaok
        ok, I am abandoning the release for today.
      • 2021-01-20 02003, 2021

      • ruaok
        pristine___: ^^ can you please have a look as to why this might be failing?
      • 2021-01-20 02044, 2021

      • Mr_Monkey
        The mbids list in the request above contains 1000 mbids, which could potentially be the issue?
      • 2021-01-20 02018, 2021

      • ruaok
        possibly. but why would it do that?
      • 2021-01-20 02012, 2021

      • Mr_Monkey
        Fetching feedback once for all the recommendations I suppose
      • 2021-01-20 02038, 2021

      • Mr_Monkey
        I do get a good response testing with only three mbids: https://beta-api.listenbrainz.org/1/recommendatio…
      • 2021-01-20 02037, 2021

      • Mr_Monkey
        I left comments on the PR.
      • 2021-01-20 02020, 2021

      • shivam-kapila
        Why not mbids on a page only?
      • 2021-01-20 02034, 2021

      • bitmap
        zas: hey, I had a look at barman williams, don't think I see any issue with the backups
      • 2021-01-20 02046, 2021

      • shivam-kapila
        25. Like we do for listens
      • 2021-01-20 02003, 2021

      • bitmap
        there's one from jan 10 & one from jan 17, both take up around ~200 gb
      • 2021-01-20 02021, 2021

      • bitmap
        we could reduce the retention duration or limit it to 1 backup if you think that's fine
      • 2021-01-20 02052, 2021

      • zas
        well, I think a better approach would be to move ftp storage elsewhere as discussed previously
      • 2021-01-20 02047, 2021

      • zas
        I'll see how we can use a storage box and a mounted volume
      • 2021-01-20 02005, 2021

      • zas
        I made progress on serviceregistrator, not yet happy with code, but features are there, and everything is reading for using consul api
      • 2021-01-20 02048, 2021

      • zas
        s/reading/ready/
      • 2021-01-20 02042, 2021

      • reosarevok
        bitmap, yvanzo: anything you wanna check in an hourish?
      • 2021-01-20 02026, 2021

      • reosarevok
        We could check yvanzo's new search docs together, if you want :)
      • 2021-01-20 02054, 2021

      • Shivam joined the channel
      • 2021-01-20 02017, 2021

      • yvanzo
        +1
      • 2021-01-20 02015, 2021

      • bitmap
        sounds good, I was reading it yseterday but only got halfway
      • 2021-01-20 02026, 2021

      • bitmap
        there are probably some PRs I can look at too
      • 2021-01-20 02024, 2021

      • yvanzo
        yup, would be nice to be able to update beta after that.
      • 2021-01-20 02005, 2021

      • yvanzo
        reosarevok, bitmap: does moving /artist-credit/… to /artist/…/credit/… makes sense for you?
      • 2021-01-20 02033, 2021

      • reosarevok
        I personally don't like it because it makes it seem like the artist is more relevant to the credit than others
      • 2021-01-20 02044, 2021

      • reosarevok
        (while in reality all artists are equally important)
      • 2021-01-20 02008, 2021

      • reosarevok
        But if it's important to avoid pointing to artist-credit/rowid, then we could
      • 2021-01-20 02018, 2021

      • yvanzo
        Of course, there will be more than one URL to access an artist-credit shared by more than one artist.
      • 2021-01-20 02038, 2021

      • bitmap
        what are the … in /artist/…/credit/… ?
      • 2021-01-20 02050, 2021

      • yvanzo
        But the main issue it would address it to not create dead links.
      • 2021-01-20 02052, 2021

      • bitmap
        artist mbid and artist credit id?
      • 2021-01-20 02055, 2021

      • yvanzo
        yes
      • 2021-01-20 02035, 2021

      • yvanzo
        the new page /artist-credit/<id> is merged but still in master
      • 2021-01-20 02052, 2021

      • yvanzo
        the editing page /artist/<mbid>/credit/<id/edit already exists
      • 2021-01-20 02023, 2021

      • bitmap
        /artist-credit/ makes more sense to me but yeah, the editing page is inconsistent
      • 2021-01-20 02035, 2021

      • reosarevok
        I'm just not sure if redirecting someone to artist X if they try to reach artist credit Y is right
      • 2021-01-20 02054, 2021

      • reosarevok
        If we remove one recording for an artist, we don't redirect to the artist
      • 2021-01-20 02054, 2021

      • yvanzo
        Artist-credits are volatile, having public URLs based on their IDs will quickly create a bunch of dead links.
      • 2021-01-20 02042, 2021

      • bitmap
        I agree I wouldn't expect a dead AC link to redirect to an artist though. maybe if it was a single artist AC, but even then
      • 2021-01-20 02056, 2021

      • yvanzo
        reosarevok: If we merge the recording, it redirects to the target recording. We don’t have merge/redirect for artist credits.
      • 2021-01-20 02000, 2021

      • reosarevok
        Do we remove unused ACs from the table?
      • 2021-01-20 02022, 2021

      • reosarevok
        Or do they stay behind without uses and get picked up again if the same credits are used?
      • 2021-01-20 02027, 2021

      • yvanzo
        Good question, not sure.
      • 2021-01-20 02048, 2021

      • bitmap
        yes
      • 2021-01-20 02011, 2021

      • bitmap
        (yes they're removed)
      • 2021-01-20 02043, 2021

      • reosarevok
        Ok
      • 2021-01-20 02001, 2021

      • reosarevok
        "This artist credit no longer exists" is a perfectly legitimate answer to an old link IMO
      • 2021-01-20 02006, 2021

      • reosarevok
        But YMMV
      • 2021-01-20 02017, 2021

      • reosarevok busy for a bit, back in 30 min or so
      • 2021-01-20 02021, 2021

      • yvanzo
        Redirecting to one of the credited artists’s aliases page isn't ideal, but it's better than just not found.
      • 2021-01-20 02046, 2021

      • kepstin
        i didn't even know you could link to an artist credit
      • 2021-01-20 02057, 2021

      • yvanzo
        It's not available in beta yet.
      • 2021-01-20 02021, 2021

      • kepstin
        are artist credits getting mbids?
      • 2021-01-20 02057, 2021

      • yvanzo
        no
      • 2021-01-20 02030, 2021

      • kepstin
        in general, it seems like anything that we expect to be maintaining "permanent" links for should have mbids, and things that are more ethereal don't get them.
      • 2021-01-20 02044, 2021

      • yvanzo
        just dedicated pages so that one can see all usages about it, see MBS-4548
      • 2021-01-20 02045, 2021

      • BrainzBot
        MBS-4548: Aliases/Edit artist credit page has no link to see what uses the artist credits https://tickets.metabrainz.org/browse/MBS-4548
      • 2021-01-20 02030, 2021

      • yvanzo
        (actually, the ticket is not up-to-date and does not explain how it is implemented.
      • 2021-01-20 02007, 2021

      • yvanzo
        kepstin: yes and no, edits for example.
      • 2021-01-20 02027, 2021

      • Shivam
        Hello everyone! I am Shivam Awasthi, second year EE Undergrad at IIT BHU, India.
      • 2021-01-20 02028, 2021

      • Shivam
        I overviewed the project ideas list for BookBrainz and ‘Designing and implementing a unified creation form’ looks pretty interesting to me.
      • 2021-01-20 02028, 2021

      • Shivam
        I am familiar with React, NodeJS and am looking forward to try my hands on this project.
      • 2021-01-20 02029, 2021

      • Shivam
        I look forward to guidance on what can I potentially learn and contribute to .
      • 2021-01-20 02038, 2021

      • sumedh has quit
      • 2021-01-20 02043, 2021

      • bitmap
        kepstin: +1 though, ultimately I'd prefer adding mbids + merging to artist credits
      • 2021-01-20 02000, 2021

      • Mr_Monkey
        Welcome Shivam !
      • 2021-01-20 02028, 2021

      • yvanzo
        If I’m not missing something, here is currently no URL with non-permanent ID available from MB website.
      • 2021-01-20 02012, 2021

      • yvanzo
        bitmap: that could be interesting but it probably requires a schema change.
      • 2021-01-20 02014, 2021

      • kepstin
        it might make sense to put the artist credit viewing page under /artist/{mbid}/credit/{id} just so that it has a permanent id in the url that could be used in an error page or redirect even if the ac goes missing.
      • 2021-01-20 02043, 2021

      • kepstin
        obviously if there's multiple artists in an ac, the same ac will appear in multiple artist pages, but that might be ok?
      • 2021-01-20 02002, 2021

      • yvanzo
        kepstin: +1; that was my proposal ;)
      • 2021-01-20 02004, 2021

      • bitmap
        yes, it would require a schema change