-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): add endpoint for user's Want to Play Games list #2549
feat(api): add endpoint for user's Want to Play Games list #2549
Conversation
Helpers are being deprecated, so going to go a different route. |
My summarized feedback, just for public visibility:
|
…ub.com/ioslife/RAWeb into feature/api-get-user-want-to-play-list
api-docs PR: RetroAchievements/api-docs#52 |
the phpunit step failed for something I haven't touched and haven't seen fail before. Is this something I need to fix for this PR? |
This sounds like authorization to me, which leads me to believe it should be achieved via an ability in a
I think I'd be fine with this as long as the authorization is enforced solely by the policy mentioned above. |
I'll have to look more into policies as that is definitely out of my realm of knowledge. This puts this PR on hold along with my PR for GetComments #2552 If anyone has some recommended reading for how to go about this, or would be interested in pairing with me to walk through how these work, let me know. |
Dismissing as latest feedback is worked through
I got the policy and friend relationship working as expected. There is probably some optimization that can be done, but will get to that later. I am trying to get the tests to work as expected, but using this->actingAs($user) is not respecting using the call as $user. |
Resolved the issue with actingAs($user) by no longer using |
@Jamiras based on your feedback I have added a policy for only allowing users to see their own want to play list, with one exception. If two users are have a mutual following relationship (are friends), they are allowed to see the list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only see one other thing in the current implementation that is worth commenting on. I'll do a final round of functional testing later tonight or tomorrow evening.
Co-authored-by: Wes Copeland <wlcopeland1@gmail.com>
Trying my hand at adding an endpoint for getting a user's backlog/want to play list.
This is a draft, would like to get Wes' opinion on if I am going down the right road before I get any further into this.