Closed quentinguidee closed 7 months ago
I don't know what you think about the userMetric thing in the app. I think it's not available anymore but it used to allow people to choose between choosing from "Count" or "Duration". It makes frontend more complex and requests more complex too so maybe we should stick to one or always do both. I'd be curious to know what you think :)
Actually in my opinion that's something to consider and to keep since both are useful and different statistics. For now for this PR I'll keep the requests as they are, because each deep modifications of the requests should probably have their own PR and discussions. I'll dedicate this PR to late $lookup
first!
Also, I think that this filter can be more pertinent in places like /top/tracks
.
Ultimately, the /top/tracks
route might also be better as just /tracks
with filters/sort capabilities:
/tracks
Get the tracks, probably with a default sort of last listening date/tracks?sort=listening_count
Get the top tracks/tracks?sort=listening_count&desc=1
Get least listened tracks/tracks?genre=abc&sort=listening_count
etc...I think this approach might be is more RESTful
Yeah I agree with you but in the end they define a use case that has to be present in the app. I feel like query flexibility should be linked to frontend graph flexibility. As of today you cannot customize graphs much so there's not real need for that.
For this specific frontend yep, but anyone that want to use the API for its own frontend can't really use it except if it reproduces the exact same views. If I want to make a small utility or script that uses my stored listening history, I cannot do that without editing the server (except if the queries are used by the yourspotify frontent).
Ok yeah I can understand, I just feel like we should put minimal effort on this on our way to performances.
Artists/Albums/Tracks pages and ranking are instantaneous now 🚀 That's really cool to navigate
Hey, really nice work! However I can't seem to find the functions getRank, getBest and the itemTypes enum? Is there anything I'm missing?
I added this hidden page so we can benchmark more easily requests separately. So that's the current state:
Also, requests for artists/tracks/albums are not shown yet
Looks awesome, I love stats and numbers haha! Do the requests follow the interval given on top? Are you ready for a merge?
Yeah the intervals are from the header!
Yep it's ready. There are still improvements that we can do but that'll be enough for this one!
Hahaha
I'm fixing that dont worry
Are you working on anything specific right now? I feel like I could give some requests a try too.
No, everything for now was in this pr 👍
Also after this I think you can mark #162, #232 and #323 as resolved. There are also a lot of issues that could be closed
You inspired me #355 haha
Benchmarks: https://github.com/Yooooomi/your_spotify/pull/354#issuecomment-1973566720