Skip to content

Fetch games in pagniated chunks#55

Merged
gantoine merged 4 commits intomainfrom
romm-52
Jun 5, 2025
Merged

Fetch games in pagniated chunks#55
gantoine merged 4 commits intomainfrom
romm-52

Conversation

@gantoine
Copy link
Copy Markdown
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
Copy Markdown

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

2 participants