Skip to content

fix(list): load only the first page on open and drop it after a project switch - #357

Merged
theEvilReaper merged 2 commits into
developfrom
fix/listLoadingRaces
Nov 28, 2026
Merged

theEvilReaper merged 2 commits into
developfrom
fix/listLoadingRaces

Conversation

@theEvilReaper

@theEvilReaper theEvilReaper commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Proposed changes

Opening a model overview loaded another page every time a list already had one, which was a leftover from when the init action also handled infinite scrolling. Now it only fetches the first page while the list is empty, and further pages come solely from scrolling through the load-more actions.

Init and refresh also wrote their response into the list even if another project had been opened while the request was in flight, so items of the old project could show up under the new one. Both now remember the open project before the request and drop the page when it changed, matching what load-more already did.

Tests for the shared list actions cover both cases for every model kind, and the tests that relied on init loading the next page now exercise the load-more actions directly.

Types of changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

  • I have read the CONTRIBUTING.md
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@github-actions github-actions Bot added bug Something isn't working area: tests area: api labels Nov 28, 2026
@theEvilReaper
theEvilReaper merged commit b034afd into develop Nov 28, 2026
20 checks passed
@theEvilReaper
theEvilReaper deleted the fix/listLoadingRaces branch November 28, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: api area: tests bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant