#metabrainz

/

      • monkey
        TRY
      • 2021-09-28 27121, 2021

      • monkey
        Oh well.
      • 2021-09-28 27138, 2021

      • ruaok
        There is no try. There is only fuss.
      • 2021-09-28 27145, 2021

      • bitmap
        reosarevok: maybe I've forgotten what the issue is exactly, but why can't we do whatever it previously did so that's it's equally-broken as before instead of more-broken?
      • 2021-09-28 27104, 2021

      • reosarevok
        Earlier we didn't link to the reltype at all
      • 2021-09-28 27116, 2021

      • reosarevok
        It seems useful to do so for the 90%+ that are not broken
      • 2021-09-28 27141, 2021

      • reosarevok off to the shop, but biab and will look at open PRs in the milestone, change the collections stats one, then release beta tonight again for freeze
      • 2021-09-28 27101, 2021

      • yvanzo
        which milestone?
      • 2021-09-28 27118, 2021

      • yvanzo
        Oh ok, beta has not been updated. So releasing beta at night so no one will notice if it’s broken and in which way... looks like a good plan ;)
      • 2021-09-28 27115, 2021

      • yvanzo
        bitmap: It seems the special commands we have for Selenium could be implemented as plugins now, using "execute script", right?
      • 2021-09-28 27128, 2021

      • yvanzo
        Does it seem worth doing that to allow using Selenium IDE again?
      • 2021-09-28 27110, 2021

      • yvanzo
        Or evaluate moving to something else like Nightwatch.js?
      • 2021-09-28 27159, 2021

      • bitmap
        I'm not sure how you'd implement things like handleAlert or mouseOver in the browser (events in general might be iffy if the browser doesn't see them as "native")
      • 2021-09-28 27111, 2021

      • bitmap
        but some of them should be possible
      • 2021-09-28 27128, 2021

      • bitmap
        I've never heard of nightwatch so it's not clear to me how that helps
      • 2021-09-28 27114, 2021

      • bitmap
        can it run selenium IDE files directly?
      • 2021-09-28 27137, 2021

      • param
        o/
      • 2021-09-28 27142, 2021

      • param
        how goes it, friends
      • 2021-09-28 27151, 2021

      • ruaok
        hey, how are you?
      • 2021-09-28 27117, 2021

      • param
        good good, busy few months at work. :/
      • 2021-09-28 27124, 2021

      • param
        what'd i miss :D
      • 2021-09-28 27129, 2021

      • ruaok
        a lot. :)
      • 2021-09-28 27138, 2021

      • param
        as expected haha
      • 2021-09-28 27156, 2021

      • yvanzo
        hi param!
      • 2021-09-28 27117, 2021

      • param
        hey yvanzo!
      • 2021-09-28 27128, 2021

      • ruaok
        LB has had a lot of new features. brainzplayer is usable, you can play your love/hate, similar users now works well and finds users. we're really making good progress.
      • 2021-09-28 27140, 2021

      • yvanzo
        bitmap: IIUC, it is higher level than Selenium, might be able to replace some of our customizations (?).
      • 2021-09-28 27100, 2021

      • param
        i saw how good similar users has gotten!
      • 2021-09-28 27116, 2021

      • param
        it found a few friends of mine who used to listen to the same music with me in college lol
      • 2021-09-28 27129, 2021

      • param
        very impressive.
      • 2021-09-28 27154, 2021

      • ruaok
        it was instumental to have Kirsten as such a close match -- if we weren't near the best match, clearly something was off.
      • 2021-09-28 27115, 2021

      • lucifer
        hi param!
      • 2021-09-28 27103, 2021

      • yvanzo
      • 2021-09-28 27131, 2021

      • yvanzo
        seems to have been addressed :)
      • 2021-09-28 27138, 2021

      • bitmap
        it's possible to handle alerts if you're using the web driver for sure, the question is if it can be done entirely in the browser
      • 2021-09-28 27149, 2021

      • bitmap
        not 100% sure how they've implemented it there
      • 2021-09-28 27111, 2021

      • reosarevok
        yvanzo, bitmap: updated https://github.com/metabrainz/musicbrainz-server/… to have undefined descriptions, then
      • 2021-09-28 27139, 2021

      • bitmap
        thanks!
      • 2021-09-28 27123, 2021

      • bitmap
        did you want to update the query in count.collection.public to use <<~SQL too?
      • 2021-09-28 27126, 2021

      • reosarevok
        I guess that'd be consistent
      • 2021-09-28 27105, 2021

      • reosarevok
        Oh, there's also perlcritic issues, heh, will fix
      • 2021-09-28 27140, 2021

      • yvanzo
        bitmap: handleAlert is used in 5 tests, mouseOver in 1. Might it be the majority of tests can be made without customizations? Would it be useful to have a conversion script side->json5 for those? (the opposite of https://gist.github.com/y-young/b753b2d2ea1bab21d… )
      • 2021-09-28 27125, 2021

      • bitmap
        yeah, I think a conversion script would be useful
      • 2021-09-28 27109, 2021

      • bitmap
        iirc the IDE would tend to use weird or unstable xpath selectors if you clicked on something, so I would usually hand-edit some things too
      • 2021-09-28 27118, 2021

      • lucifer
        monkey: hi! thoughts on how to make UserStats component more modular? i'd like to reuse it for sitewide stats.
      • 2021-09-28 27159, 2021

      • reosarevok
        bitmap: I guess there's no way to just separate the timeout for tests and the timeout for DB clearing?
      • 2021-09-28 27144, 2021

      • bitmap
        i'd prefer that but it's a bit more complicated
      • 2021-09-28 27153, 2021

      • bitmap
        let me see again
      • 2021-09-28 27149, 2021

      • bitmap
        also, I increased the timeout on jenkins from 15 minutes to 20 minutes
      • 2021-09-28 27132, 2021

      • bitmap
        the weird thing is they'll usually take ~14 minutes but sometimes even 20 minutes isn't enough https://ci.metabrainz.org/job/musicbrainz-server/…
      • 2021-09-28 27144, 2021

      • monkey waves at param
      • 2021-09-28 27135, 2021

      • monkey
        Which component is that lucifer ?
      • 2021-09-28 27142, 2021

      • monkey
        UserEntityChart?
      • 2021-09-28 27107, 2021

      • monkey
        (I'm working on that one as we speak to make it playable)
      • 2021-09-28 27155, 2021

      • lucifer
      • 2021-09-28 27145, 2021

      • lucifer
        most of the page can be the same i think. yes UserEntityChart is a part of it.
      • 2021-09-28 27101, 2021

      • riksucks
        hey param!
      • 2021-09-28 27155, 2021

      • tandy[m]
        <param> "i saw how good similar users has..." <- it managed to spot me and my partner lol
      • 2021-09-28 27156, 2021

      • tandy[m]
        pretty good
      • 2021-09-28 27127, 2021

      • tandy[m]
        only thing that would be neat is to show user similarity when viewing another users page
      • 2021-09-28 27133, 2021

      • reosarevok
        bitmap: is it mostly because of the db clearing? Or does it just time out because of actual test stuff taking a long time?
      • 2021-09-28 27150, 2021

      • yvanzo
        bitmap, reosarevok: IIRC we used to want adding selenium tests to help with the conversion to react mainly. Now that TT is mostly gone anyway, it seems many tests could be made using enzyme ^ instead? Using Selenium just when needed to.
      • 2021-09-28 27129, 2021

      • tandy[m]
        i was wondering, is there a timeline for this issue?
      • 2021-09-28 27131, 2021

      • tandy[m]
      • 2021-09-28 27132, 2021

      • BrainzBot
        MEB-122: Prepare metabrainz.org codebase for OAuth work
      • 2021-09-28 27106, 2021

      • bitmap
        reosarevok: I'm not always sure, I'll have to add timestamps to the tap comments
      • 2021-09-28 27126, 2021

      • tandy[m]
        also are there any related good first issues to help move it along?
      • 2021-09-28 27155, 2021

      • tandy[m]
        i kinda need the brainzplayer embed for a project so im happy to help if anyone wanted to mentor
      • 2021-09-28 27150, 2021

      • lucifer
        tandy[m]: no timeline but i was working on it some time ago, hope to resume work on it soon. incomplete branch https://github.com/metabrainz/metabrainz.org/tree…
      • 2021-09-28 27116, 2021

      • bitmap
        yvanzo: they don't really test the same thing though...enzyme helps you test a component in isolation, but doesn't tell you if the actual page works. I think there's a lot of value in the selenium tests
      • 2021-09-28 27151, 2021

      • lucifer
        its mostly a rewrite using a authlib, so that we can get rid of our own impl.
      • 2021-09-28 27138, 2021

      • yvanzo
        bitmap: That's the point, we don't have any test for component in isolation. Thinking about it as complementary, not a full replacement.
      • 2021-09-28 27139, 2021

      • lucifer
        regarding BP embed, monkey might be able to help you. there were explorations into it earlier in the year but we hit some issues. (do not recall exactly what)
      • 2021-09-28 27152, 2021

      • lucifer
        the similarity to other user thing sounds good. we should probably add it.
      • 2021-09-28 27135, 2021

      • lucifer
        ruaok: thoughts? displaying how similar another user is to you when you visit their page?
      • 2021-09-28 27131, 2021

      • lucifer
        i had thought of displaying that in the search user name results as well but figured our way to store similarity might not be performant for those queries.
      • 2021-09-28 27135, 2021

      • bitmap
        yvanzo: sure, if by "it seems many tests could be made using enzyme ^ instead" you meant adding new tests instead of converting existing ones
      • 2021-09-28 27128, 2021

      • bitmap
        enzyme seems useful for smaller components used on tons of pages, like EntityLink
      • 2021-09-28 27141, 2021

      • yvanzo
        bitmap: yes, for example merge redirect cannot be tested using enzyme.
      • 2021-09-28 27128, 2021

      • yyoung[m]
        IIRC some commands in IDE are not supported in our tests
      • 2021-09-28 27132, 2021

      • bitmap
        anything that submits data, really :)
      • 2021-09-28 27111, 2021

      • reosarevok
        bitmap: huh, why do we have sir for our selenium tests?
      • 2021-09-28 27127, 2021

      • yyoung[m]
        And yes the selectors generated by recording the actions are not reliable
      • 2021-09-28 27155, 2021

      • bitmap
        reosarevok: because it's testing the entire UI and makes use of indexed search in some places
      • 2021-09-28 27106, 2021

      • yvanzo
        (to fill the search indexes)
      • 2021-09-28 27121, 2021

      • reosarevok
        I would have expected us to just mock that since it's not really MB related at ll
      • 2021-09-28 27121, 2021

      • reosarevok
        But ok
      • 2021-09-28 27128, 2021

      • reosarevok
        well, MB*S* related :)
      • 2021-09-28 27109, 2021

      • yvanzo
        From mock tests in sir, I guess you don't want that for MBS ;)
      • 2021-09-28 27154, 2021

      • reosarevok
        Well, I don't want to mock MBS workings in MBS
      • 2021-09-28 27113, 2021

      • reosarevok
        But it seems fine to test sir inside sir, and just mock what it should respond with for MBS
      • 2021-09-28 27136, 2021

      • bitmap
        it's an integration test
      • 2021-09-28 27119, 2021

      • bitmap
        (testing whether all the components work when combined together)
      • 2021-09-28 27147, 2021

      • reosarevok
        Well, if it doesn't make things a lot slower, I guess it doesn't matter - just wondering whether this is something we could break by changing MBS (because if it is slow and runs for every testing run, that's annoying)
      • 2021-09-28 27158, 2021

      • reosarevok
        (if it's something that doesn't depend on our changes, I mean)
      • 2021-09-28 27125, 2021

      • reosarevok
        (I'm not trying to be annoying, maybe I'm just slow :) )
      • 2021-09-28 27109, 2021

      • yvanzo
        Mocks might be useful, but integration tests are needed too.
      • 2021-09-28 27127, 2021

      • bitmap
        well the point is just that mocking sir doesn't test the same thing
      • 2021-09-28 27126, 2021

      • bitmap
        so if it makes the tests slower I'd rather focus on making them faster than removing the tests :)
      • 2021-09-28 27119, 2021

      • reosarevok
        Sure, I'm just trying to understand whether this sort of thing should be tested every time we do an MBS PR, or if it should be tested as a separate thing because it's about how sir answers to a specific MBS call. But I guess the point is that it will tell us if something has changed in sir that breaks our stuff?
      • 2021-09-28 27125, 2021

      • reosarevok
        Anyway, if it's useful it's useful :)
      • 2021-09-28 27130, 2021

      • monkey
        lucifer: please remind me tomorrow about the charts component, can't think right now :)
      • 2021-09-28 27136, 2021

      • lucifer
        sure
      • 2021-09-28 27108, 2021

      • yvanzo
        reosarevok: It can break in so many ways, depending how mbs/sir/mbsssss/mbdata/mb-rng/mb-solr are combined, it is worth having this integration test. :)
      • 2021-09-28 27135, 2021

      • reosarevok
        yvanzo: you were happy with https://github.com/metabrainz/musicbrainz-server/… AFAICT, so should I merge or do you want to take a second look? :)
      • 2021-09-28 27129, 2021

      • reosarevok
        Maybe bitmap and you can also check https://github.com/metabrainz/musicbrainz-server/…
      • 2021-09-28 27142, 2021

      • reosarevok
        Everything else on https://github.com/metabrainz/musicbrainz-server/… can wait for milestone 19 :)
      • 2021-09-28 27149, 2021

      • reosarevok
        Since it seems bigger
      • 2021-09-28 27102, 2021

      • bitmap
        sure
      • 2021-09-28 27138, 2021

      • bitmap
        for the edit rel type one, I've dumped old link types from the classic db and will check those today
      • 2021-09-28 27157, 2021

      • tandy[m]
        <lucifer> "its mostly a rewrite using a..." <- i see, so we dont need a review anymore?
      • 2021-09-28 27122, 2021

      • reosarevok
        bitmap: I guess we should still wait for next release with it anyway :)
      • 2021-09-28 27133, 2021

      • bitmap
        yeah
      • 2021-09-28 27144, 2021

      • reosarevok
        (then we can also hopefully make the code changes to get rid of the TT edit things, if that's the last one as I seem to remembeR)
      • 2021-09-28 27113, 2021

      • bitmap
        I'd like to test adding one of these old link types back and seeing if it doesn't break anything
      • 2021-09-28 27147, 2021

      • reosarevok
        Well, happy to see what happens
      • 2021-09-28 27158, 2021

      • bitmap
        if it doesn't, we can just fix the type IDs in these old edits
      • 2021-09-28 27145, 2021

      • bitmap
        maybe copy them to original_type_id in the edit data just for historical purposes
      • 2021-09-28 27100, 2021

      • lucifer
        tandy[m]: we do. but the implementation needs to be completed first.
      • 2021-09-28 27139, 2021

      • bitmap
        I wonder if we need an "Edit Edit" edit type to show changes we make to edit data :P
      • 2021-09-28 27143, 2021

      • yvanzo
        reosarevok: I was approving #2198 as you mentioned it.
      • 2021-09-28 27149, 2021

      • reosarevok
        haha
      • 2021-09-28 27114, 2021

      • BrainzGit
        [musicbrainz-server] 14reosarevok merged pull request #2198 (03master…MBS-11830): MBS-11830: Add more collection statistics https://github.com/metabrainz/musicbrainz-server/…
      • 2021-09-28 27107, 2021

      • reosarevok
        yvanzo: oh, target, yeah. I guess for that one it should be target URL?
      • 2021-09-28 27126, 2021

      • reosarevok
        (re: the other PR)
      • 2021-09-28 27147, 2021

      • bitmap
        it looks fine to me other than the target issue anyway
      • 2021-09-28 27135, 2021

      • yvanzo
        reosarevok: I would prefer not systematically moving the leftovers of a milestone to the next one but rather reevaluate PRs for each new milestone; What do you think?
      • 2021-09-28 27142, 2021

      • reosarevok
        I'm still not 100% on what each target type is for (when to use RELATIONSHIP for example, and NONE)
      • 2021-09-28 27153, 2021

      • reosarevok
        Sure, I guess, if you feel some of the bits just aren't ready for next week
      • 2021-09-28 27100, 2021

      • reosarevok
        re: reevaluating :)
      • 2021-09-28 27119, 2021

      • piwu has quit
      • 2021-09-28 27138, 2021

      • yvanzo
        reosarevok: about the error target, I’m not sure if your code allows for a specific target actually, might need to be split otherwise.
      • 2021-09-28 27156, 2021

      • yvanzo
        and yes the PR looks fine otherwise
      • 2021-09-28 27114, 2021

      • reosarevok
        So, ENTITY seems to be "this is fine, but not for this entity"
      • 2021-09-28 27124, 2021

      • reosarevok
        URL is I guess "this would be fine but the URL is borked"?
      • 2021-09-28 27130, 2021

      • reosarevok
        What about RELATIONSHIP and NONE?
      • 2021-09-28 27146, 2021

      • yvanzo
        +1
      • 2021-09-28 27153, 2021

      • yvanzo
        It seems it should be RELATIONSHIP if the type id doesn’t match (switch cases), probably URL otherwise?
      • 2021-09-28 27101, 2021

      • piwu joined the channel
      • 2021-09-28 27104, 2021

      • reosarevok
        Not ENTITY? Since the URL is probably valid if you were just adding it to a recording or release?
      • 2021-09-28 27139, 2021

      • BrainzGit
        [listenbrainz-server] 14MonkeyDo opened pull request #1630 (03master…monkey-mini-listen-card): Make user charts playable https://github.com/metabrainz/listenbrainz-server…
      • 2021-09-28 27133, 2021

      • yvanzo
        reosarevok: Yes, that :)
      • 2021-09-28 27103, 2021

      • tandy[m]
        <lucifer> "regarding BP embed, monkey might..." <- yeah, im subscribed to the issue
      • 2021-09-28 27147, 2021

      • tandy[m]
        <lucifer> "tandy: we do. but the implementa..." <- oh i see
      • 2021-09-28 27128, 2021

      • tandy[m]
        il keep a close eye then for now, if thats okay with monkey i can pm at some point?
      • 2021-09-28 27103, 2021

      • reosarevok
        yvanzo: added target then
      • 2021-09-28 27109, 2021

      • v6lur joined the channel
      • 2021-09-28 27147, 2021

      • BrainzGit
        [musicbrainz-server] 14reosarevok merged pull request #2262 (03master…MBS-11952): MBS-11952: Autoselect Vimeo On Demand URLs correctly https://github.com/metabrainz/musicbrainz-server/…
      • 2021-09-28 27115, 2021

      • BrainzGit
        [musicbrainz-server] 14reosarevok opened pull request #2291 (03master…MBS-11998): MBS-11998: Also include places on rating stats sum https://github.com/metabrainz/musicbrainz-server/…
      • 2021-09-28 27135, 2021

      • reosarevok
        bitmap, yvanzo: actually, found this dumb issue ^ maybe we can release that today too