Skip to content

Fetch games in pagniated chunks #55

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 4 commits into from
Jun 5, 2025
Merged

Fetch games in pagniated chunks #55

merged 4 commits into from
Jun 5, 2025

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Jun 3, 2025

This PR fetches the roms for each platform in batches of 72, so we're no longer limited to pulling 2500 roms/platform.

Fixed #52

@gantoine gantoine requested a review from Copilot June 5, 2025 16:27
Copy link

@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 implements paginated fetching of game metadata and adds a GitHub Actions workflow for building and packaging the extension.

  • Replace single large request with batched requests (limit = 72) and offset loop
  • Improved logging per batch and aggregated results
  • Added .github/workflows/build.yml to automate build, package, and artifact upload on version tags

Reviewed Changes

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

File Description
RomM.cs Introduced pageSize, offset, batching loop, and accumulated allRoms list
.github/workflows/build.yml New CI workflow for building, packaging, and uploading the extension on tag pushes
Comments suppressed due to low confidence (1)

RomM.cs:263

  • The new pagination loop isn’t covered by existing tests. Add unit or integration tests to verify multi-page behavior, cancellation, and error handling.
while (hasMoreData)

@gantoine gantoine merged commit c9177b0 into main Jun 5, 2025
@gantoine gantoine deleted the romm-52 branch June 5, 2025 16:32
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.

Latest release 2500 limit
1 participant