Closed ritiek closed 3 years ago
Hello @ritiek I won't have time to review this before next week.
Also I had a message from Yvan telling me that we need to give sign of life if we want to continue in the gsoc program.
I will contact you next week.
Hello @ritiek I won't have time to review this before next week.
I see. Hope you're doing fine. Is there anything else you'd specifically want to me to work on until then? Otherwise I plan on implementing auto-retries for now as this feels something I wouldn't require much consulting on.
Also I had a message from Yvan telling me that we need to give sign of life if we want to continue in the gsoc program.
Totally understandable where this is coming from.
Everything is fine, I am just super busy these days. Go for auto-retries !
Good to know! Alright.
An alternative is to push the parameters (front, back and res) as some enum variant and check just before sending the request if all params are compatible.
Sounds good. How should I validate the request before sending it? Should I create another method (validate()
?) that gets called as a part of execute()
and checks whether the parameters are ordered correctly and are without repetition?
Calling a validate() function as part of execute would do it, I don't think you need to check how method call are ordered since we can reorder everything when building the request. You only need to check for repetition.
Alright. I've pushed new changes. What do you think?
Also we need to update the readme.
Also we need to update the readme.
Ok. Should I mention about the coverart feature in the features section in readme? And is it okay if I do this in a later PR? I'll also cover about get_coverart
method and anything else worth mentioning about (retries?) in a later dedicated PR, if it's alright to you.
Is there anything else that needs to be addressed? Otherwise, this should be good to merge!
Ideally this will allow us to make specific calls to the coverart api. Such as to fetch front coverart for some release in 500px:
I'm not sure what the return type in our library should be here. The coverart api simply returns an image for this query.
Should we also return an image (maybe through the
image
crate), or maybe just return the redirect url from the original query (which looks likehttps://ia802607.us.archive.org/32/items/mbid-76df3287-6cda-33eb-8e9a-044b5e15ffdd/mbid-76df3287-6cda-33eb-8e9a-044b5e15ffdd-829521842_thumb500.jpg
)?Also, currently
FetchCoverartQuery::execute()
expects response content to be in json, but making these specific coverart calls does not return json. Not sure what the best way to deal with this in our library is.