I think I'd enjoy working on this project as a whole a lot :)
lucifer
JadedBlueEyes: from a first look, it seems too much work for us to do.
>This means that it doesn't quite have the stability guarantees a library might have (when you call data.sort() you don't think about "what if it fails?"), nor does it have the surrounding infrastructure of a DryadLINQ or Spark style of experience. Part of this burden is simply passed to you, and this may be intolerable depending on your goals for your program.
monkey
rimskii[m]: Interesting, wet to check out that SpotifyAPIService. Indeed we used these in the past to create playlists from the front-end but we have since moved it to the back-end. Might be worth doing a cleanup in a follow-up to your PR if you're interested
lucifer
maybe a year or two later, it matures enough to become usable for us.
but at the moment, i don't think it worth it.
Spark supports streaming too and we could look into utilising that if it helps improve performance.
JadedBlueEyes
Where's that quote from?
rimskii[m]
monkey (IRC): sure ! will try to move other other functions to back-end then
rimskii[m]: I guess you can probably move getAlbumArtFromSpotifyTrackID somewhere else (probably in frontend/js/src/utils/utils.tsx which uses it) and remove the SpotifyAPIService class entirely.
I don't think there's much else that needs moving
rimskii[m]
good idea! will do it
oh I used one function from there to fetch the playlists
might leave it as well
or is it better to do it in backend?
lucifer
the more code in the backend the better
ideally the import code will go in troi library and then that will be used by LB backend.
the frontned should only need to display a list of playlists to the user or let them copy paste a link.
rimskii[m]
okay!
JadedBlueEyes
lucifer that chapter was last updated 6 years ago from what I can see
so basically I need to create a new api endpoint for LB to import from spotify?lucifer (IRC)
lucifer
rimskii[m]: yup
pranav[m] joined the channel
pranav[m]
Hey akshaaatt (IRC) , after going thru all the Gsoc ideas for LB Android, I would like to work on the Artist, album and user pages in the LB App. Hope that’s fine. I have read the scrobble service’s code for the listens.. will try to sort that out asap..
JadedBlueEyes
lucifer I imagine a part of it still holds true - Rust being Rust - but the library has probably moved on a bit from then xD
lucifer
JadedBlueEyes: i see, makes sense.
yeah true. and the bar for replacing spark would be high. there's a lot of exist code and it performs reasonably well at what it does.
i have a feeling there are more gains to be had from using spark streams or reorganising our data.
akshaaatt
pranav[m]: Sounds good to me! You can apply for gsoc and we will see accordingly. Cannot commit to anything. Also, jasje has a PR open for fixing the listens submission and looks good to me almost. Can you base your work on top of it?
JadedBlueEyes
Yeah, it'd definately be a large project, although I don't think it needs to be replaced wholesale
pranav[m]
Sure will do..
JadedBlueEyes
Using spark sreams is something I will have to evaluate though
But I'm guessing that I have the go-ahead to at least scope out the project?
lucifer
yeah sure, assuming you mean improving the performance of our spark cluster.
JadedBlueEyes
Yep!
lucifer
awesome, i would suggest first set it up locally and play with the data yourself.
yvanzo
It might also be easier to start some Rust development for something new that doesn’t exist yet.
lucifer
also if its worth it. unless its performance critical, its pain for no reason.
JadedBlueEyes
Do you have any ideas for what people would like to see re new development yvanzo?
yvanzo
I mean having more than one string at your bow :)
Not that you shouldn’t follow the idea you have at the moment :)
JadedBlueEyes
Oh yeah, I've also had a look at the Mailer idea, which could be interesting
I'm not sure with that whether generating the text email from the HTML is the best method, at least for the quality of the output
And potentially enabling translations could be a good feature for that
yvanzo
That’s one indeed.
Given that you will know the HTML code that is generated, you will just need html2text to support this subset of HTML.
Unless you implement a parallel plain text rendering in MRML directly.
JadedBlueEyes
I guess it depends how you're writing the email templates - if you're effectively taking the existing templates and giving them nice formatting, html2text should work perfectly fine, but if you make your HTML templates more visual, like what is common from more commercial senders, the plain text of the html wouldn't really make sense
So it depends on the template I guess
yvanzo
That’s it, the thing is that you are also writing the templates, so you control everything.
JadedBlueEyes
It shouldn't necesarly be hard to make a seperate plain text template either though
Especially if the strings are seperated out for i18n
But yeah, that's definately a project I could do - I'd have to learn a bit of perl though xD
yvanzo
Some ideas from previous years could also be implemented in Rust: “Integrate Internet Archive in MusicBrainz” for example.
JadedBlueEyes
yeah, for sure
yvanzo
No Perl involved, it would be a separate codebase.
JadedBlueEyes
I'd need to be able to integrate whatever I do into the main codebase somehow, right?
For example adding the triggers for the email
Even if it's in a seperate repo & deployed seperately
yvanzo
The current templates are useful but it’s better to start with a clean slate.
In any case, the amount of needed Perl code is very small and we can handle that part.
JadedBlueEyes
Well thank you :)
yvanzo
You’re welcome!
bttf joined the channel
relaxoMob has quit
minimal joined the channel
fletchto99 has quit
lucifer
diptanil: next step would be finding a ticket on the issue tracker to work on and submit a PR.
diptanil has quit
diptanil joined the channel
diptanil
working on it.
fletchto99 joined the channel
relaxoMob joined the channel
texke` joined the channel
texke has quit
minimal has quit
bitmap
the incremental JSON dumps are paused for now, there are some replication issues (due to the presence of foreign keys in the databases). I may need to re-import the database, but it will take a few hours
[bookbrainz-site] 14dependabot[bot] opened pull request #1068 (03master…dependabot/npm_and_yarn/nodemailer-6.9.9): chore(deps): bump nodemailer from 6.7.2 to 6.9.9 https://github.com/metabrainz/bookbrainz-site/p...
can someone help me? I created a new endpoint, but cant access it :(
Access to fetch at 'https://api.listenbrainz.org/1/playlist/import/spotify' from origin 'http://localhost:8100' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
lucifer
rimskii[m]: you need to set API_URL to `http://localhost:8100`
in config.py
Sophist-UK has quit
BrainzGit
[bookbrainz-site] 14MonkeyDo opened pull request #1069 (03master…override-dep): chore(deps): Override dependency for react-select-fast-filter-options https://github.com/metabrainz/bookbrainz-site/p...
[bookbrainz-site] 14MonkeyDo merged pull request #1068 (03master…dependabot/npm_and_yarn/nodemailer-6.9.9): chore(deps): bump nodemailer from 6.7.2 to 6.9.9 https://github.com/metabrainz/bookbrainz-site/p...
relaxoMob has quit
relaxoMob joined the channel
diptanil joined the channel
rimskii[m]
<lucifer> "rimskii: you need to set API_URL..." <- ah, i see. TYSM
minimal joined the channel
diptanil
is LB-1502 fixed? i tried to run 'troi list' command but i didn't get any error.