#metabrainz

/

      • monkey
        File it under not-ideal-for-now-but-has-a-clear-improvement-path
      • 2022-04-06 09602, 2022

      • akshaaatt
        Well well well it works fine now monkey
      • 2022-04-06 09604, 2022

      • akshaaatt
        Thanks!
      • 2022-04-06 09613, 2022

      • wargreen joined the channel
      • 2022-04-06 09636, 2022

      • BrainzGit
        [critiquebrainz] 14alastair merged pull request #332 (03master…search): CB-375: What's the difference between search and search selector? https://github.com/metabrainz/critiquebrainz/pull…
      • 2022-04-06 09636, 2022

      • BrainzGit
        [critiquebrainz] 14alastair merged pull request #320 (03master…moderator): CB-330 Removed duplicate flash messages https://github.com/metabrainz/critiquebrainz/pull…
      • 2022-04-06 09610, 2022

      • monkey
        Pleasure.
      • 2022-04-06 09644, 2022

      • odnes joined the channel
      • 2022-04-06 09640, 2022

      • akshaaatt
        monkey might be of interest to review https://github.com/metabrainz/listenbrainz-server… since it correlates to the discussion we just had. But surely, take your time :)
      • 2022-04-06 09658, 2022

      • BrainzGit
        [bookbrainz-site] 14MonkeyDo merged pull request #832 (03master…identifier-editor): Fix(Identifier-Editor): Improve identifier editor behavior for ISBNs https://github.com/metabrainz/bookbrainz-site/pul…
      • 2022-04-06 09613, 2022

      • alastairp
        lucifer: can you re-open PR 327? I want to review it, but if I do the notifications won't go to you :)
      • 2022-04-06 09619, 2022

      • BrainzGit
        [bookbrainz-site] 14MonkeyDo merged pull request #833 (03master…sort-options): Fix(languages): Sort language options after fast filter https://github.com/metabrainz/bookbrainz-site/pul…
      • 2022-04-06 09620, 2022

      • alastairp
        ON DELETE SET NULL; + the check on the review table means that if we delete a license (for whatever reason?!) the check constraint is going to fail on all of the reviews with that license. is that right?
      • 2022-04-06 09621, 2022

      • lucifer
        alastairp: just close and reopen or create a new branch and new PR?
      • 2022-04-06 09632, 2022

      • alastairp
        new branch + new pr
      • 2022-04-06 09652, 2022

      • lucifer
        will do.
      • 2022-04-06 09605, 2022

      • lucifer
        hmm yes i think so, change to DO NOTHING?
      • 2022-04-06 09612, 2022

      • BrainzGit
        [critiquebrainz] 14amCap1712 closed pull request #327 (03master…optional_license): CB-390 Shouldn't have to chose a license just to save drafts https://github.com/metabrainz/critiquebrainz/pull…
      • 2022-04-06 09639, 2022

      • alastairp
        does do-nothing make sense? because then the check constraint to the license table will fail?
      • 2022-04-06 09629, 2022

      • lucifer
        no iirc check constraint is only checked at insert/update time. so if you change something on the other side of fk with do nothing it should be fine.
      • 2022-04-06 09642, 2022

      • alastairp
        oh interesting. thanks for teaching me that
      • 2022-04-06 09656, 2022

      • alastairp
        let me play around with the database and try changing a few things
      • 2022-04-06 09614, 2022

      • alastairp
        but yeah, this isn't really a thing that we expect to run into I suspect
      • 2022-04-06 09635, 2022

      • Sophist-UK has quit
      • 2022-04-06 09643, 2022

      • Sophist_UK joined the channel
      • 2022-04-06 09657, 2022

      • lucifer
        fwiw i need to confirm it. my memory is a bit hazy on this :D. will play around in psql as well.
      • 2022-04-06 09617, 2022

      • lucifer
        we do have one case planned though of removing a license.
      • 2022-04-06 09639, 2022

      • lucifer
        let me check JIRA for the ticket
      • 2022-04-06 09623, 2022

      • lucifer
        CB-394
      • 2022-04-06 09623, 2022

      • BrainzBot
        CB-394: Do not allow CC BY-NC-SA license for future reviews https://tickets.metabrainz.org/browse/CB-394
      • 2022-04-06 09643, 2022

      • lucifer
        ah well but we'd keep existing reviews of that license so not deleting it from table.
      • 2022-04-06 09659, 2022

      • alastairp
        yeah right, and we should consider upgrading to CC4.0 licenses anyway - which means that we should mark all of the other ones as "hidden" or something anyway
      • 2022-04-06 09613, 2022

      • lucifer
        there's probably another detailed ticket around which i forgot to link to this.
      • 2022-04-06 09617, 2022

      • lucifer
        yes makes sense
      • 2022-04-06 09625, 2022

      • alastairp
        it'd be nice to have some further explanation/motivation for that ticket :)
      • 2022-04-06 09624, 2022

      • yellowhatpro
        Hello akshaaatt , for the BP implementation what are your views on the Media3 libraries??
      • 2022-04-06 09624, 2022

      • yellowhatpro
        It includes Exoplayer media player that seems to be useful for our purpose
      • 2022-04-06 09624, 2022

      • yellowhatpro
      • 2022-04-06 09639, 2022

      • mayhem
      • 2022-04-06 09630, 2022

      • mayhem
        maybe 1 minute faster? but with just one run, not enough data to reach a conclusion.
      • 2022-04-06 09643, 2022

      • lucifer
        not much benefit for full case i see.
      • 2022-04-06 09636, 2022

      • lucifer
        for the incremental case, amount of data needed at the end is limited so order of joins probably matters more. in full case, almost everything is going to be pulled so probably not much difference anyway.
      • 2022-04-06 09647, 2022

      • alastairp
      • 2022-04-06 09607, 2022

      • mayhem
        I'll have the call in for even the full DB case, just in case.
      • 2022-04-06 09612, 2022

      • mayhem
        I'll push that commit and then merge.
      • 2022-04-06 09615, 2022

      • lucifer
        👍
      • 2022-04-06 09622, 2022

      • alastairp
        any idea why this manually sets form.errors instead of using the form validation (this code predates your update, so it's a general question)
      • 2022-04-06 09641, 2022

      • alastairp
        I guess we need both the form and the review which we migt not have in the form instance?
      • 2022-04-06 09617, 2022

      • lucifer
        i think because we want to only enforce this conditionally. and the review and current_user maybe unavailble in form validator.
      • 2022-04-06 09635, 2022

      • alastairp
        yeah. I see that we could pass in the review to the form constructor, save it in self, then pop it off of kwargs before calling super.init
      • 2022-04-06 09654, 2022

      • alastairp
        but that much work for simply moving a check from one file to another, not sure that's useful
      • 2022-04-06 09620, 2022

      • lucifer
        i'd leave it as is for now, we can improve that in future.
      • 2022-04-06 09641, 2022

      • alastairp
        yeah
      • 2022-04-06 09627, 2022

      • lucifer
        i have been having hard time with #327 with this similar issue actually, the validator doesn't add error to form due to some reason. i had to update to latest wtforms as well to fix other issues.
      • 2022-04-06 09642, 2022

      • lucifer
        once, these PRs are merged i'll rebase and try again.
      • 2022-04-06 09653, 2022

      • odnes has quit
      • 2022-04-06 09658, 2022

      • BrainzGit
        [listenbrainz-server] 14mayhem merged pull request #1943 (03master…migrate-mb-cache-to-bulk-table): Migrate MB metadata cache to bulk table https://github.com/metabrainz/listenbrainz-server…
      • 2022-04-06 09652, 2022

      • BrainzGit
        [critiquebrainz] 14amCap1712 opened pull request #417 (03master…optional_license): CB-390: Shouldn't have to choose a license just to save drafts https://github.com/metabrainz/critiquebrainz/pull…
      • 2022-04-06 09615, 2022

      • BrainzGit
        [critiquebrainz] 14alastair merged pull request #328 (03master…change_draft): CB-392-After Saving draft, cannot publish without making some change. https://github.com/metabrainz/critiquebrainz/pull…
      • 2022-04-06 09620, 2022

      • alastairp
        🎉
      • 2022-04-06 09648, 2022

      • alastairp
      • 2022-04-06 09658, 2022

      • alastairp
        is it even allowed to have this few PRs?
      • 2022-04-06 09626, 2022

      • BrainzGit
        [critiquebrainz] release 03v-2022-04-06.0 has been published by 14github-actions[bot]: https://github.com/metabrainz/critiquebrainz/rele…
      • 2022-04-06 09617, 2022

      • lucifer
        🎉🎉
      • 2022-04-06 09642, 2022

      • mayhem
        alastairp: 6 chararacters of the MBID are not enough to be unique.
      • 2022-04-06 09646, 2022

      • mayhem
        trying 7 now.
      • 2022-04-06 09656, 2022

      • alastairp
        all entities in MB, or just recordings?
      • 2022-04-06 09602, 2022

      • mayhem
        recordings only.
      • 2022-04-06 09638, 2022

      • mayhem
        not 7 either.
      • 2022-04-06 09655, 2022

      • lucifer
        mbids are v4 so the starting characters could clash randomly? if they were v1 or v3 then it'd be similar to git sha case.
      • 2022-04-06 09601, 2022

      • lucifer
        *uuid v4
      • 2022-04-06 09604, 2022

      • alastairp
        but a v4 is random, right?
      • 2022-04-06 09632, 2022

      • alastairp
        so you should expect a uniform distribution of characters?
      • 2022-04-06 09648, 2022

      • mayhem
        not even at 11 characters.
      • 2022-04-06 09651, 2022

      • mayhem gives up
      • 2022-04-06 09647, 2022

      • alastairp
        new CB released, using up-to-date BU + merging the last 2 years of pending PRs!
      • 2022-04-06 09654, 2022

      • alastairp
        thanks lucifer for helping get that across the line
      • 2022-04-06 09620, 2022

      • alastairp
        Ansh: thanks for your patience, now that we have these out of the way I'll start merging your recent work
      • 2022-04-06 09649, 2022

      • alastairp
        lucifer: do you think there's a possibility that we could merge https://github.com/metabrainz/listenbrainz-server… tomorrow?!
      • 2022-04-06 09604, 2022

      • lucifer
        alastairp: yes assuming random distribution of characters, we could model this as probability of collision of uuids of say length 12. i'll need to look up how to calculate it exactly but knowing about the birthday problem my guess is its likely the number would be lower than one would expect.
      • 2022-04-06 09626, 2022

      • lucifer
        thanks you too for doing the much needed CB work! :D
      • 2022-04-06 09610, 2022

      • lucifer
        the LB PR, i am unsure if we can finish it tomorrow. my vague recollection is that only tests are needed but could be wrong.
      • 2022-04-06 09655, 2022

      • monkey
        Happy to help with the merge conflicts on #1605 if it's needed
      • 2022-04-06 09634, 2022

      • bitmap
        reosarevok: yes MBS-11755 should be solved too, I'll link the tickets
      • 2022-04-06 09635, 2022

      • BrainzBot
      • 2022-04-06 09638, 2022

      • lucifer
        alastairp: ah i found someone who did the calculation, https://en.wikipedia.org/wiki/Birthday_problem (Probability section) so for length 12 theres 75% chance of collision in 2.8 * 10 ^ 7 elements which is also approximately the number of recording mbids we have.
      • 2022-04-06 09608, 2022

      • bitmap
        reosarevok: re: "I guess that updating of the dodgy existing data will actually have some effect on mirrors?" the upgrade script runs on mirrors, so they will get fixed tag counts too, if that's what you mean. I'm pretty sure we specified that in the blog
      • 2022-04-06 09635, 2022

      • bitmap
        reosarevok: should we/is there a way to mark MBS-12141 as "release pending"? I remember seeing that option...
      • 2022-04-06 09636, 2022

      • BrainzBot
        MBS-12141: Block tag names that are empty or have uncontrolled whitespace with database constraints https://tickets.metabrainz.org/browse/MBS-12141
      • 2022-04-06 09652, 2022

      • antlarr has quit
      • 2022-04-06 09617, 2022

      • antlarr joined the channel
      • 2022-04-06 09648, 2022

      • alastairp
        lucifer: another time-related article: https://news.ycombinator.com/item?id=30659164
      • 2022-04-06 09648, 2022

      • lucifer
        alastairp: interesting read. it goes upto even storing the TZDB version in each entry!
      • 2022-04-06 09611, 2022

      • lucifer
        but those challenges have to deal with future times so thankfully one we can do without.
      • 2022-04-06 09619, 2022

      • reosarevok
        bitmap: why not just "in development branch" if it has been merged to a development branch?
      • 2022-04-06 09632, 2022

      • reosarevok
        Oh, I guess it might accidentally be moved when releasing or something
      • 2022-04-06 09610, 2022

      • yvanzo
        zas: For some reason /var/opt/solrcloud-collections-backup belongs to zookeeper on mb-solr-7. It should belong to solr instead, as on other Solr hosts. Changing its ownership as root failed with: Permission denied. Opening a shell as zookeeper failed too. Any way out?
      • 2022-04-06 09653, 2022

      • zas
        let me check
      • 2022-04-06 09600, 2022

      • zas
        weird, cannot cd as root...
      • 2022-04-06 09635, 2022

      • mayhem
        uh oh
      • 2022-04-06 09654, 2022

      • BrainzGit
        [musicbrainz-server] 14reosarevok opened pull request #2478 (03schema-change-2022-q2…mbs-11760-delete-triggers-before-creating): Delete new triggers if exist before creating https://github.com/metabrainz/musicbrainz-server/…
      • 2022-04-06 09621, 2022

      • reosarevok
        yvanzo, bitmap ^ I think we need that actually, my bad
      • 2022-04-06 09603, 2022

      • zas
        yvanzo: that's because those are nfs mounts, and uid/gid aren't the same on all machines
      • 2022-04-06 09604, 2022

      • PrathameshG[m]
        Hey mayhem
      • 2022-04-06 09635, 2022

      • PrathameshG[m]
        CC alastairp lucifer
      • 2022-04-06 09643, 2022

      • PrathameshG[m]
        You've Gotta be very busy with the high influx of GSoC proposals & candidates incoming your way, but if you could find some time, could you give some feedback on my proposal?
      • 2022-04-06 09643, 2022

      • PrathameshG[m]
        I think there's still a lot that I could improve upon. Just need your specific criticism to address the most important issues first
      • 2022-04-06 09656, 2022

      • yvanzo
        zas: So we should have the install scripts to specify uid/gid when creating solr/zookeeper users?
      • 2022-04-06 09622, 2022

      • zas
        usually this is handled by id mapping
      • 2022-04-06 09642, 2022

      • zas
        but for some reason it doesn't work right now, not sure why
      • 2022-04-06 09651, 2022

      • zas
        ok, it will need few more steps to work properly
      • 2022-04-06 09625, 2022

      • yvanzo
        There is no hurry, it won’t run again before Sat at best.
      • 2022-04-06 09633, 2022

      • zas
        we need to set a domain in /etc/idmapd.conf
      • 2022-04-06 09601, 2022

      • zas
        add NEED_IDMAPD=yes in /etc/default/nfs-common
      • 2022-04-06 09616, 2022

      • lucifer
        PrathameshG[m]: we had discussed the proposal in the morning https://chatlogs.metabrainz.org/libera/metabrainz… (you'll probably need to scroll up a bit).
      • 2022-04-06 09625, 2022

      • lucifer
        tl,dr; we think the project's goals (not just the proposal) need to redefined, it probably won't be possible to get a production ready app by the end of summer. we want to lay more emphasis on experimenting and finding flaws or lack threrof in the data.
      • 2022-04-06 09657, 2022

      • lucifer
      • 2022-04-06 09641, 2022

      • zas
        yvanzo: and apparently we need https://unix.stackexchange.com/a/464950
      • 2022-04-06 09637, 2022

      • zas
        check on solr 7, it has correct user now
      • 2022-04-06 09645, 2022

      • lucifer
        it was a long discussion and we agreed on some issues but not on all. we can probably discuss it again tomorrow and then either me, mayhem or alastairp can post a coherent comment on how the proposal/project should be redefined.
      • 2022-04-06 09655, 2022

      • zas
        but apparently there's another issue, still get perm denied
      • 2022-04-06 09654, 2022

      • yvanzo
        yes, even as solr
      • 2022-04-06 09659, 2022

      • zas
        when those shares were set up ? did they work before?
      • 2022-04-06 09624, 2022

      • zas
        or you were trying to set those up right now?
      • 2022-04-06 09625, 2022

      • Sophist_UK has quit
      • 2022-04-06 09608, 2022

      • Sophist-UK joined the channel
      • 2022-04-06 09643, 2022

      • yvanzo
        zas: It did work on March 26th at least.
      • 2022-04-06 09625, 2022

      • yvanzo
        zas: It has been set up one year ago and it was working until then.
      • 2022-04-06 09645, 2022

      • zas
        very weird then
      • 2022-04-06 09656, 2022

      • yvanzo
        Backup did fail for some reason (might be unrelated) on March 30th.
      • 2022-04-06 09620, 2022

      • agatzk has quit
      • 2022-04-06 09623, 2022

      • yvanzo
        This share is used twice a week: backup is written, then downloaded and removed. the whole operation takes a few hours at most.
      • 2022-04-06 09602, 2022

      • aerozol
        moin!
      • 2022-04-06 09612, 2022

      • yvanzo
        hi aerozol!
      • 2022-04-06 09656, 2022

      • akshaaatt
        Kia ora aerozol!
      • 2022-04-06 09619, 2022

      • aerozol
        :D
      • 2022-04-06 09634, 2022

      • zas
        yvanzo: I'll have a look tomorrow morning, at this point no idea. nfs is an heavy source of headaches...
      • 2022-04-06 09602, 2022

      • yvanzo
        zas: no problem :)
      • 2022-04-06 09611, 2022

      • BrainzGit
        [critiquebrainz] 14anshg1214 closed pull request #403 (03master…CB-416): CB-416: Identify users by musicbrainz username, not uuid https://github.com/metabrainz/critiquebrainz/pull…
      • 2022-04-06 09613, 2022

      • candybrain joined the channel
      • 2022-04-06 09634, 2022

      • PrathameshG[m]
        <lucifer> "it was a long discussion and..." <- Thanks, I took a look at the discussion you guys had earlier tomorrow, and it was really helpful. Looking forward to your comments tomorrow on the updated proposal. :))
      • 2022-04-06 09606, 2022

      • BrainzGit
        [musicbrainz-server] 14reosarevok opened pull request #2479 (03master…MBS-12298): MBS-12298: Update to new triplejunearthed domain https://github.com/metabrainz/musicbrainz-server/…
      • 2022-04-06 09614, 2022

      • yellowhatpro
        > <@ashutosh3119:matrix.org> Hello akshaaatt , for the BP implementation what are your views on the Media3 libraries??
      • 2022-04-06 09614, 2022

      • yellowhatpro
        > It includes Exoplayer media player that seems to be useful for our purpose
      • 2022-04-06 09614, 2022

      • yellowhatpro
      • 2022-04-06 09614, 2022

      • yellowhatpro
        akshaaatt: Thoughts??
      • 2022-04-06 09614, 2022

      • candybrain has left the channel
      • 2022-04-06 09634, 2022

      • v6lur joined the channel
      • 2022-04-06 09608, 2022

      • BrainzGit
        [critiquebrainz] 14anshg1214 reopened pull request #403 (03master…CB-416): CB-416: Identify users by musicbrainz username, not uuid https://github.com/metabrainz/critiquebrainz/pull…
      • 2022-04-06 09642, 2022

      • akshaaatt
        Hi yellowhatpro! I'm not sure whether this media player is a good choice for an audio player like the one we want to have.