Skip to content

Fix RA platform IDs for matching #1973

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 11, 2025
Merged

Fix RA platform IDs for matching #1973

merged 1 commit into from
Jun 11, 2025

Conversation

gantoine
Copy link
Member

Description
Explain the changes or enhancements you are proposing with this pull request.

Checklist
Please check all that apply.

  • 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

Screenshots

@gantoine gantoine requested review from adamantike and Copilot June 11, 2025 12:53
Copy link

trunk-io bot commented Jun 11, 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
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR corrects and expands platform slug-to-ID mappings for RA and MOBY backends, and adjusts the RA hashing service to reflect some of those changes.

  • Fix IDs for existing RA slugs (ngc, genesis-slash-megadrive, vectrex)
  • Add new RA slugs (elektor, fairchild-channel-f, interton-vc-4000, uzebox, wasm-4, win)
  • Update MOBY handler names for famicom and sfam

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
backend/handler/metadata/ra_handler.py Updated several existing IDs, added new slug-to-ID entries
backend/handler/metadata/moby_handler.py Renamed two platform names for better accuracy
backend/adapters/services/rahasher.py Reordered mappings and migrated "win", but new slugs are missing
Comments suppressed due to low confidence (3)

backend/adapters/services/rahasher.py:56

  • The RAHasher mapping is missing several newly introduced slugs (elektor, fairchild-channel-f, interton-vc-4000, uzebox, vectrex). Add them here to keep hashing consistent with ra_handler.
    "nds": 18,

backend/handler/metadata/ra_handler.py:336

  • Consider adding unit tests for the newly introduced slug-to-ID mappings (e.g., elektor, uzebox, win) to verify they resolve correctly during lookup.
+    "elektor": {"id": 75, "name": "Elektor"},

backend/adapters/services/rahasher.py:87

  • [nitpick] The slug-to-ID dictionary isn’t sorted alphabetically, which can make future updates harder to locate. Consider sorting keys (or grouping by category) for readability.
    "win": 102,

Copy link

Test Results

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

Results for commit 5e6229a. ± Comparison against base commit c113fa2.

@gantoine gantoine merged commit 146992d into master Jun 11, 2025
9 checks passed
@gantoine gantoine deleted the fix-ra-platform-ids branch June 11, 2025 12:59
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.

2 participants