Skip to content

[ROMM-1868] Fix grouping by metadata rows #2203

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 3 commits into from
Aug 6, 2025
Merged

[ROMM-1868] Fix grouping by metadata rows #2203

merged 3 commits into from
Aug 6, 2025

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Aug 4, 2025

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

This PR adds more metadata providers to sibling ROM grouping, and fixes(?) missing ROMs from collections (somehow...).

Fixes #1868

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

Copilot

This comment was marked as outdated.

Copy link

trunk-io bot commented Aug 4, 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 Aug 4, 2025

Test Results

543 tests   542 ✅  59s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit cf28e4f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Aug 4, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8709 6135 70% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
backend/handler/database/roms_handler.py 51% 🟢
TOTAL 51% 🟢

updated for commit: cf28e4f by action🐍

@gantoine gantoine requested review from adamantike and Copilot August 5, 2025 00:56
Copilot

This comment was marked as outdated.

@gantoine gantoine requested a review from Copilot August 5, 2025 01:06
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 enhances the ROM sibling grouping functionality by adding support for additional metadata providers (ra_id, hasheous_id, tgdb_id) and modifies the grouping logic to fix missing ROMs from collections. The changes improve the metadata-based grouping system for better ROM organization.

  • Adds support for RetroAchievements, Hasheous, and TheGamesDB metadata providers in ROM grouping
  • Updates sibling ROM view to include the new metadata ID fields
  • Modifies grouping prioritization order and removes platform_id from group concatenation

Reviewed Changes

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

File Description
backend/handler/database/roms_handler.py Updates ROM grouping logic to include new metadata providers and modifies group ID generation
backend/alembic/versions/0048_sibling_roms_more_ids.py Database migration to update sibling_roms view with additional metadata ID fields

@gantoine gantoine merged commit 7d873dc into master Aug 6, 2025
9 checks passed
@gantoine gantoine deleted the romm-1868 branch August 6, 2025 13:13
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.

[Bug] Collection items missing from UI, still in database.
2 participants