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.
Gazooo79494 has quit
Gazooo79494 joined the channel
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
I'm just fixing one last bug then I can look at that if you want
should we coordinate a release today?
ruaok
+1 to both.
I'm available until about 3pm today.
alastairp
cool
let me finish morning stuff, and then I'll do one final run through that PR
ruaok
I've got both types of playlists generating, now I need to test the created-for subission.
And there's html tags on the descriptions but you probably noticed that bit :D
The previous one I can't access
ruaok
look at the last link I posted.
I keep deleting old ones as I improve the text.
alastairp
yeah, once I add in html filtering we'll be able to treat the html as trustworthy and render it on the page
ruaok
and yes, tags and spaces are what alastairp is working on now.
reosarevok
"apoligize"
"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. "
Maybe two sentences? "to play. If you have"
?
ruaok
my spelling abilities seem to have suffered recently. was that my covid present?
reosarevok
And I guess e.g. Some should be e.g. some, lowercased?
ruaok: oh, did you fix the descriptions in creating playlists by changing description -> annottion?
that's a yes, just pulled your changes. thanks
ruaok
I hope that `annottion` is an unintentional spelling mistake.
but yes, that was it.
alastairp
yes, you spelled it correctly this time
ruaok
never had problems with annotation, but collbartors? sheesh.
alastairp
> but subitting user is not an approved playlist bot
alastairp quietly fixes
ruaok
how exactly is the "quiet"? (asking for a friend)
alastairp
yeah, I realised that showing of my spelling prowess publicly isn't very quiet...
mmm
if someone wants to set the description to empty, they should submit an edit with annotation: ""
or should it be set to null?
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.
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
thanks for the ideas
MajorLurker has quit
sumedh joined the channel
ruaok returns with a giant salad in hand
ruaok
still need feedback, alastairp ?
alastairp
just read what I said and tell me if you agree
at least there's not a giant hand in your salad
ruaok
I like the idea of no desc vs empty desc. follows DB patterns nicely.
alastairp
> # If the annotation key exists, but the value is empty ("" or None), unset the description
OK, going with that in the edit endpoint then
ruaok: Mr_Monkey: pushed fixes to allow unsetting of collaborators and descriptions, descriptions are now html-filtered to only approved tags
just updating checks now to make the public field optional when editing a playlist
new dependency, ./develop.sh build required
ruaok
ok
pushing to test
now just need to allow html in our playlist descriptions. do you know how to make that happen?
[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-serv...
alastairp
wow, this is a big release notes. we should definitely have released more often :)
ruaok misses iliekcomputers
yeah, absolutely
ruaok
shit.
consul changes.
let me make a PR to undo those.
alastairp
I thought we undid them before we updated the last time?
or did you make more again?
ruaok
I had to redo to push to test.
alastairp
right, it passed my mind but I didn't think that we made them again
ruaok
I didn't communicate that, sorry.
pushed to master, can you please careully review, alastairp ?
let me do the docker configs.
alastairp
looking now
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?
ruaok
we could also run the ts update script by hand to create the table/schemas.