Skip to content

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 a review from Copilot July 21, 2025 21:24
Copy link

trunk-io bot commented Jul 21, 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 refactors the platform generation logic to use slugs as dictionary keys instead of platform names, ensuring consistent platform identification and deduplication across different metadata sources.

  • Changes the primary key for supported_platforms dictionary from platform names to lowercase slugs
  • Simplifies conditional logic by removing duplicate name-based checks
  • Updates sorting to use the platform's name field instead of the dictionary key
  • Corrects platform names for better consistency ("Adam" → "Coleco Adam", "64DD" → "Nintendo 64DD")

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
backend/utils/generate_supported_platforms.py Refactors platform grouping to use slugs as keys and updates sorting logic
backend/handler/metadata/ss_handler.py Updates platform name from "Adam" to "Coleco Adam"
backend/handler/metadata/igdb_handler.py Updates platform name from "64DD" to "Nintendo 64DD"

Copy link

github-actions bot commented Jul 21, 2025

Test Results

318 tests  ±0   318 ✅ ±0   43s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 6ad0b3f. ± Comparison against base commit f3c0e48.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 21, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8006 5242 65% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
backend/handler/metadata/igdb_handler.py 69% 🟢
backend/handler/metadata/ss_handler.py 31% 🟢
TOTAL 50% 🟢

updated for commit: 6ad0b3f by action🐍

@gantoine gantoine merged commit d572a2e into master Jul 21, 2025
9 checks passed
@gantoine gantoine deleted the generate-platforms-fix branch July 21, 2025 21:31
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.

1 participant