Skip to content
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

Don't fetch unneeded pages (v8) #2723

Merged
merged 1 commit into from Jan 17, 2024

Conversation

philippthun
Copy link
Member

  • introduce Page query key
  • when set, stop automatic pagination
  • add PerPage and Page query keys to all list endpoints where only a single item from the returned list is used
  • use MakeListRequest function in GetEvents and set Page query key in caller
  • adapt StagePackage function to include GUIDFilter instead of iterating over the returned package list and comparing guids

Fixes #2599

- introduce 'Page' query key
- when set, stop automatic pagination
- add 'PerPage' and 'Page' query keys to all list endpoints where only a
  single item from the returned list is used
- use 'MakeListRequest' function in 'GetEvents' and set 'Page' query key
  in caller
- adapt 'StagePackage' function to include 'GUIDFilter' instead of
  iterating over the returned package list and comparing guids
Copy link
Member

@a-b a-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dalvarado and I reviewed this proposal and it looks good to us.

@a-b a-b merged commit 3f361ac into cloudfoundry:v8 Jan 17, 2024
13 checks passed
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.

None yet

3 participants