#metabrainz

/

      • D4RK-PH0_ has quit
      • 2020-12-23 35813, 2020

      • D4RK-PH0ENiX joined the channel
      • 2020-12-23 35806, 2020

      • Zialus has quit
      • 2020-12-23 35838, 2020

      • ballin has quit
      • 2020-12-23 35823, 2020

      • sumedh joined the channel
      • 2020-12-23 35829, 2020

      • v6lur joined the channel
      • 2020-12-23 35834, 2020

      • ruaok
        moin!
      • 2020-12-23 35845, 2020

      • v6lur has quit
      • 2020-12-23 35811, 2020

      • ruaok
        Mr_Monkey: moin! can a playlist description contain HTML elements? If not, can we make that happen without a lot of drama? I'd like links within the meb domain, <p>, <div> and maybe <ul> if we're feeling sassy.
      • 2020-12-23 35801, 2020

      • Gazooo79494 has quit
      • 2020-12-23 35847, 2020

      • Gazooo79494 joined the channel
      • 2020-12-23 35800, 2020

      • alastairp
        ruaok: maybe it's worth filtering those at the webserver side. I've had success with https://github.com/mozilla/bleach doing exactly this
      • 2020-12-23 35811, 2020

      • alastairp
        I'm just fixing one last bug then I can look at that if you want
      • 2020-12-23 35817, 2020

      • alastairp
        should we coordinate a release today?
      • 2020-12-23 35825, 2020

      • ruaok
        +1 to both.
      • 2020-12-23 35838, 2020

      • ruaok
        I'm available until about 3pm today.
      • 2020-12-23 35850, 2020

      • alastairp
        cool
      • 2020-12-23 35805, 2020

      • alastairp
        let me finish morning stuff, and then I'll do one final run through that PR
      • 2020-12-23 35819, 2020

      • ruaok
        I've got both types of playlists generating, now I need to test the created-for subission.
      • 2020-12-23 35836, 2020

      • ruaok
      • 2020-12-23 35854, 2020

      • ruaok
        new endpoint based on mbid typesense stuff, complete with troi plugin.
      • 2020-12-23 35802, 2020

      • ruaok
        the stats needed translating as wel..
      • 2020-12-23 35822, 2020

      • ruaok
      • 2020-12-23 35824, 2020

      • ruaok
        :D
      • 2020-12-23 35810, 2020

      • MajorLurker joined the channel
      • 2020-12-23 35844, 2020

      • ruaok
        Mr_Monkey: are you displaying playlist descriptions?
      • 2020-12-23 35828, 2020

      • D4RK-PH0_ joined the channel
      • 2020-12-23 35838, 2020

      • ruaok
        hmm, doesn't look like they are being ingested properly.
      • 2020-12-23 35817, 2020

      • Nyanko-sensei has quit
      • 2020-12-23 35805, 2020

      • alastairp
        oops. is that me again?
      • 2020-12-23 35810, 2020

      • ruaok
        no, me.
      • 2020-12-23 35812, 2020

      • ruaok
        fixing.
      • 2020-12-23 35852, 2020

      • ruaok
      • 2020-12-23 35808, 2020

      • ruaok
        reosarevok: if you're around, care to review that english?
      • 2020-12-23 35803, 2020

      • alastairp
        ruaok: br, p, div, ul, li, a href="any metabrainz domain" ?
      • 2020-12-23 35824, 2020

      • ruaok
        👍
      • 2020-12-23 35839, 2020

      • ruaok
      • 2020-12-23 35830, 2020

      • reosarevok
        That last link has an unneeded space before !
      • 2020-12-23 35850, 2020

      • reosarevok
        And there's html tags on the descriptions but you probably noticed that bit :D
      • 2020-12-23 35802, 2020

      • reosarevok
        The previous one I can't access
      • 2020-12-23 35815, 2020

      • ruaok
        look at the last link I posted.
      • 2020-12-23 35825, 2020

      • ruaok
        I keep deleting old ones as I improve the text.
      • 2020-12-23 35836, 2020

      • alastairp
        yeah, once I add in html filtering we'll be able to treat the html as trustworthy and render it on the page
      • 2020-12-23 35838, 2020

      • ruaok
        and yes, tags and spaces are what alastairp is working on now.
      • 2020-12-23 35834, 2020

      • reosarevok
        "apoligize"
      • 2020-12-23 35846, 2020

      • reosarevok
        "Double click on any recording to start playing it -- we'll do our best to find a matching recording to play -- if you have Spotify we recommend connecting your account for a better playback experience. "
      • 2020-12-23 35808, 2020

      • reosarevok
        Maybe two sentences? "to play. If you have"
      • 2020-12-23 35809, 2020

      • reosarevok
        ?
      • 2020-12-23 35824, 2020

      • ruaok
        my spelling abilities seem to have suffered recently. was that my covid present?
      • 2020-12-23 35859, 2020

      • reosarevok
        And I guess e.g. Some should be e.g. some, lowercased?
      • 2020-12-23 35809, 2020

      • reosarevok
        The rest seems good
      • 2020-12-23 35813, 2020

      • reosarevok
        Let's see the other one
      • 2020-12-23 35836, 2020

      • sumedh has quit
      • 2020-12-23 35840, 2020

      • reosarevok
        Same comments, nothing else that seems a problem
      • 2020-12-23 35831, 2020

      • ruaok
      • 2020-12-23 35836, 2020

      • ruaok
        ok, should all be fixed now.
      • 2020-12-23 35839, 2020

      • ruaok
        thanks reosarevok
      • 2020-12-23 35819, 2020

      • alastairp
        ruaok: oh, did you fix the descriptions in creating playlists by changing description -> annottion?
      • 2020-12-23 35845, 2020

      • alastairp
        that's a yes, just pulled your changes. thanks
      • 2020-12-23 35829, 2020

      • ruaok
        I hope that `annottion` is an unintentional spelling mistake.
      • 2020-12-23 35831, 2020

      • ruaok
        but yes, that was it.
      • 2020-12-23 35805, 2020

      • alastairp
        yes, you spelled it correctly this time
      • 2020-12-23 35822, 2020

      • ruaok
        never had problems with annotation, but collbartors? sheesh.
      • 2020-12-23 35850, 2020

      • alastairp
        > but subitting user is not an approved playlist bot
      • 2020-12-23 35854, 2020

      • alastairp quietly fixes
      • 2020-12-23 35803, 2020

      • ruaok
        how exactly is the "quiet"? (asking for a friend)
      • 2020-12-23 35826, 2020

      • alastairp
        yeah, I realised that showing of my spelling prowess publicly isn't very quiet...
      • 2020-12-23 35832, 2020

      • alastairp
        mmm
      • 2020-12-23 35859, 2020

      • alastairp
        if someone wants to set the description to empty, they should submit an edit with annotation: ""
      • 2020-12-23 35817, 2020

      • alastairp
        or should it be set to null?
      • 2020-12-23 35848, 2020

      • alastairp
        because if there is no description, we omit the annotation key in the returned json. if a PL has a description and then it's edited to set it to "", we'll return the key with an empty value.
      • 2020-12-23 35816, 2020

      • alastairp
        I think if there is a presence of the key, but its value is empty (null or ""), we should set the value in the database to NULL
      • 2020-12-23 35821, 2020

      • alastairp
        thanks for the ideas
      • 2020-12-23 35826, 2020

      • MajorLurker has quit
      • 2020-12-23 35823, 2020

      • sumedh joined the channel
      • 2020-12-23 35848, 2020

      • ruaok returns with a giant salad in hand
      • 2020-12-23 35855, 2020

      • ruaok
        still need feedback, alastairp ?
      • 2020-12-23 35815, 2020

      • alastairp
        just read what I said and tell me if you agree
      • 2020-12-23 35823, 2020

      • alastairp
        at least there's not a giant hand in your salad
      • 2020-12-23 35855, 2020

      • ruaok
        I like the idea of no desc vs empty desc. follows DB patterns nicely.
      • 2020-12-23 35812, 2020

      • alastairp
        > # If the annotation key exists, but the value is empty ("" or None), unset the description
      • 2020-12-23 35818, 2020

      • alastairp
        OK, going with that in the edit endpoint then
      • 2020-12-23 35817, 2020

      • alastairp
        ruaok: Mr_Monkey: pushed fixes to allow unsetting of collaborators and descriptions, descriptions are now html-filtered to only approved tags
      • 2020-12-23 35856, 2020

      • alastairp
        just updating checks now to make the public field optional when editing a playlist
      • 2020-12-23 35813, 2020

      • alastairp
        new dependency, ./develop.sh build required
      • 2020-12-23 35833, 2020

      • ruaok
        ok
      • 2020-12-23 35804, 2020

      • ruaok
        pushing to test
      • 2020-12-23 35853, 2020

      • ruaok
        now just need to allow html in our playlist descriptions. do you know how to make that happen?
      • 2020-12-23 35812, 2020

      • ruaok
        someone is beating us to our own game! https://twitter.com/netwt187g/status/134167773508…
      • 2020-12-23 35813, 2020

      • alastairp
        Mr_Monkey: needs to tell the frontend that the html is safe and that it doesn't need to be escaped
      • 2020-12-23 35829, 2020

      • alastairp
        maybe he's preparing christmas dinner
      • 2020-12-23 35836, 2020

      • alastairp
        let me look at the frontend
      • 2020-12-23 35838, 2020

      • alastairp breaks out dangerouslySetInnerHTML
      • 2020-12-23 35823, 2020

      • ruaok
        test updated.
      • 2020-12-23 35834, 2020

      • reosarevok
        Oh no.
      • 2020-12-23 35815, 2020

      • reosarevok
        Well, the code is all your own, so dangerouslySetInnerHTML should be fine
      • 2020-12-23 35837, 2020

      • ruaok
        the HTML gets sanitized on the server side.
      • 2020-12-23 35813, 2020

      • alastairp
      • 2020-12-23 35847, 2020

      • alastairp
        pushed
      • 2020-12-23 35823, 2020

      • ruaok
        pushing to test
      • 2020-12-23 35812, 2020

      • ruaok
      • 2020-12-23 35820, 2020

      • ruaok
        looks good. thanks for taking care of the last bit, alastairp.
      • 2020-12-23 35823, 2020

      • ruaok
        what's next?
      • 2020-12-23 35818, 2020

      • sumedh has quit
      • 2020-12-23 35812, 2020

      • alastairp
        I think that's it from me
      • 2020-12-23 35805, 2020

      • ruaok
        ok, then merge into master, then master into production. then see that all tests pass and we can proceed.
      • 2020-12-23 35841, 2020

      • alastairp
        🎉
      • 2020-12-23 35849, 2020

      • ruaok
        I'll go massage some salsas and pack my stuff. that should let me stay a bit longer than 15h.
      • 2020-12-23 35853, 2020

      • ruaok
        which is coming super fast.
      • 2020-12-23 35854, 2020

      • alastairp
        what's your availability look like this afternoon?
      • 2020-12-23 35800, 2020

      • alastairp
        right
      • 2020-12-23 35807, 2020

      • alastairp
        do you want me to take care of the merges?
      • 2020-12-23 35821, 2020

      • alastairp
        master -> production via a PR?
      • 2020-12-23 35841, 2020

      • alastairp
        one thing that I noticed when loading playlists locally. Is there a link "my playlists" somewhere easily accessible? I Don't see anything in the menu
      • 2020-12-23 35820, 2020

      • ruaok
        yes, please on the merges.
      • 2020-12-23 35831, 2020

      • ruaok
        no the links are pretty slim.
      • 2020-12-23 35815, 2020

      • alastairp
        I guess the easiest is to add a user menu -> My playlists
      • 2020-12-23 35823, 2020

      • alastairp
        like we have My listens already
      • 2020-12-23 35800, 2020

      • ruaok
        yeah.
      • 2020-12-23 35806, 2020

      • BrainzGit
        [listenbrainz-server] alastair merged pull request #1206 (master…playlist-feature-cacapoopoo): Playlist feature PR for beta release (on production) https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-23 35825, 2020

      • BrainzGit
        [listenbrainz-server] alastair opened pull request #1207 (production…master): Merge to production for playlists release (2020-12-23) https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-23 35849, 2020

      • BrainzGit
        [listenbrainz-server] dependabot-preview[bot] closed pull request #1205 (master…dependabot/npm_and_yarn/ini-1.3.8): [Security] Bump ini from 1.3.5 to 1.3.8 https://github.com/metabrainz/listenbrainz-server…
      • 2020-12-23 35824, 2020

      • alastairp
        wow, this is a big release notes. we should definitely have released more often :)
      • 2020-12-23 35815, 2020

      • ruaok misses iliekcomputers
      • 2020-12-23 35820, 2020

      • alastairp
        yeah, absolutely
      • 2020-12-23 35821, 2020

      • ruaok
        shit.
      • 2020-12-23 35828, 2020

      • ruaok
        consul changes.
      • 2020-12-23 35835, 2020

      • ruaok
        let me make a PR to undo those.
      • 2020-12-23 35851, 2020

      • alastairp
        I thought we undid them before we updated the last time?
      • 2020-12-23 35856, 2020

      • alastairp
        or did you make more again?
      • 2020-12-23 35803, 2020

      • ruaok
        I had to redo to push to test.
      • 2020-12-23 35835, 2020

      • alastairp
        right, it passed my mind but I didn't think that we made them again
      • 2020-12-23 35849, 2020

      • ruaok
        I didn't communicate that, sorry.
      • 2020-12-23 35846, 2020

      • ruaok
        pushed to master, can you please careully review, alastairp ?
      • 2020-12-23 35852, 2020

      • ruaok
        let me do the docker configs.
      • 2020-12-23 35856, 2020

      • alastairp
        looking now
      • 2020-12-23 35835, 2020

      • alastairp
        I was thinking - should we release with the feature flag set to false, then make the tables in timescale, then update the feature flag and reset?
      • 2020-12-23 35843, 2020

      • ruaok
        we could also run the ts update script by hand to create the table/schemas.
      • 2020-12-23 35825, 2020

      • alastairp
        git diff v-2020-11-03.0..master consul_config.py.ctmpl
      • 2020-12-23 35839, 2020

      • alastairp
        this shows some removals in addition to the 2 new config options that you added
      • 2020-12-23 35811, 2020

      • alastairp
        oh, I guess we can even run the db scripts before we do the release, it'll be completely isolated
      • 2020-12-23 35815, 2020

      • alastairp
        good point
      • 2020-12-23 35803, 2020

      • ruaok
        the two commented out lines where already commented out before we started.
      • 2020-12-23 35828, 2020

      • ruaok
        why were we setting POSTGRES_ADMIN_URI in the TIMESCALE section?
      • 2020-12-23 35834, 2020

      • ruaok
        that makes no sense to me.
      • 2020-12-23 35841, 2020

      • alastairp
        I bet it was copy/paste
      • 2020-12-23 35818, 2020

      • Mr_Monkey
        Thanks for taking over! In thralls of dinner prep.
      • 2020-12-23 35839, 2020

      • ruaok is packed and ready to rumble
      • 2020-12-23 35839, 2020

      • alastairp
        ah, I see. so there is POSTGRES_ADMIN_URI in the pgbouncer-master service, and TIMESCALE_ADMIN_URI in the timescale-listenbrainz section
      • 2020-12-23 35848, 2020

      • alastairp
        makes sense to remove the duplicate one