Skip to content

misc: Create RetroAchievements service adapter #1951

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

adamantike
Copy link
Contributor

Description
Add a new service adapter for the RetroAchievements API, to separate concerns with RomM's handler for metadata. This adapter is agnostic to the handler and only provides methods to interact with the API, and correctly return typed responses.

The API authorization was also improved to be handled by a specific httpx.Auth class that sets the y parameter for each request.

Checklist

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

@adamantike adamantike requested review from gantoine and zurdi15 June 8, 2025 17:33
Copy link

trunk-io bot commented Jun 8, 2025

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

Copy link

github-actions bot commented Jun 8, 2025

Test Results

92 tests   92 ✅  28s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit e885586.

♻️ This comment has been updated with latest results.

@adamantike adamantike force-pushed the misc/retroachievements-service-adapter branch from 4fcdcff to 67a790f Compare June 8, 2025 19:55
Copy link
Member

@gantoine gantoine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sexy af

Add a new service adapter for the RetroAchievements API, to separate
concerns with RomM's handler for metadata. This adapter is agnostic
to the handler and only provides methods to interact with the
API, and correctly return typed responses.

The API authorization was also improved to be handled by a specific
`httpx.Auth` class that sets the `y` parameter for each request.
@adamantike adamantike force-pushed the misc/retroachievements-service-adapter branch from 67a790f to e885586 Compare June 9, 2025 03:47
@adamantike adamantike merged commit dddea58 into master Jun 9, 2025
9 checks passed
@adamantike adamantike deleted the misc/retroachievements-service-adapter branch June 9, 2025 11:04
adamantike added a commit that referenced this pull request Jun 20, 2025
This logic was moved to the RetroAchievements service in #1951.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants