achievements-app / psn-api

A JavaScript library that lets you get trophy, user, and game data from the PlayStation Network.
https://psn-api.achievements.app
MIT License
268 stars 32 forks source link

feat: retrieving user's purchased games #136

Closed alekpentchev closed 1 year ago

alekpentchev commented 1 year ago

I think I'm ready to submit my first PR to this repo. And because of that I'm quite sure there might be some things worth changing. So here I'm counting on your support :) Few notes I want to make:

Feel free to comment everything. I'm open for every discussion and recommendation.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
psn-api ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 29, 2023 at 9:53AM (UTC)
wescopeland commented 1 year ago

Thank you for submitting a PR! I will not have time to do a comprehensive review until Monday, but rest assured this will not get buried.

Just skimming over the PR, we will also need:

cd website
yarn
yarn serve

I haven't dug in to why CI is not properly running on GitHub Actions. Before I review on Monday, be sure to double check that yarn verify succeeds.

wescopeland commented 1 year ago

Hi @alekpentchev ! Before I continue with a review, I want to double check that this work is not a duplicate of https://github.com/achievements-app/psn-api/pull/134

At first glance, this seems very similar.

alekpentchev commented 1 year ago

Hi @alekpentchev ! Before I continue with a review, I want to double check that this work is not a duplicate of #134

At first glance, this seems very similar.

Yeah, it looks similar. But both these operations serve a bit different purpose. The getUserGameList query shows all games the user has interacted with (not necessarily purchased), while getPurchasedGameList shows only games the user has actually bought or downloaded.

I wasn't aware that the library has this getUserGameList query being used. So probably I should rename my request to not confuse the users.

alekpentchev commented 1 year ago

Added one more commit that changes the naming of my vars, objects etc. to avoid further confusion. Earlier I didn't notice that there's a similar looking function for getting recently played games.

One more difference I noticed is that for the getPurchasedGameList operation there's a bit more we get as a response than in the getUserGameList (used to fetch recently played games).

Please let me know if we're ok with it and if so I'll adjust the docs for this feature.

wescopeland commented 1 year ago

Added one more commit that changes the naming of my vars, objects etc. to avoid further confusion. Earlier I didn't notice that there's a similar looking function for getting recently played games.

One more difference I noticed is that for the getPurchasedGameList operation there's a bit more we get as a response than in the getUserGameList (used to fetch recently played games).

Please let me know if we're ok with it and if so I'll adjust the docs for this feature.

No problem, we will work together to make this the best it can be. I've left some initial feedback and we'll iterate further.

alekpentchev commented 1 year ago

Added some changes based on the comments:

wescopeland commented 1 year ago

Hi! This PR has exceeded 30 days of inactivity. I will be closing it as a courtesy. Please feel free to re-open it at any time you would like to revisit this work.