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

Bidirectional cursor pagination #846

Merged
merged 27 commits into from
Jan 25, 2023
Merged

Bidirectional cursor pagination #846

merged 27 commits into from
Jan 25, 2023

Conversation

AlecAivazis
Copy link
Collaborator

Fixes #670

This PR implements bidirectional cursor-based pagination. There's no real change for pretty much anyone except those who have provided custom stores (there's no more distinction between forward and backward stores). However, since this is a breaking change technically, I wanted to get it out for 1.0

To help everyone out, please make sure your PR does the following:

  • Update the first line to point to the ticket that this PR fixes
  • Add a message that clearly describes the fix
  • If applicable, add a test that would fail without this fix
  • Make sure the unit and integration tests pass locally with pnpm run tests and cd integration && pnpm run tests
  • Includes a changeset if your fix affects the user with pnpm changeset

@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2023

🦋 Changeset detected

Latest commit: 7dfd768

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
houdini-svelte Major
houdini Major
houdini-plugin-svelte-global-stores Major
houdini-react Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jan 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 25, 2023 at 9:12PM (UTC)
docs-next ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 25, 2023 at 9:12PM (UTC)

@AlecAivazis AlecAivazis changed the base branch from main to next January 25, 2023 07:52
@AlecAivazis AlecAivazis merged commit 3245233 into next Jan 25, 2023
@AlecAivazis AlecAivazis deleted the bidirectional-cursors branch January 25, 2023 21:39
AlecAivazis added a commit that referenced this pull request Feb 10, 2023
* remove direction from refetch object

* more store definitions

* fix build errors

* add missing methods to query store

* add e2e test

* fix initial args in bidirectional pagination test

* add previous button

* fix connection implementation on server

* tidy up docs

* treat updates as a list of strings to match against

* start on query modification

* only generate pagination queries that match the api

* fix query arguments when loading pages

* cache respects page info when handling cursor updates

* bidirectional e2e query tests pass 🎉

* add tests for bidirectional fragments

* tests pass

* changesets

* check pagination direction

* linter

* update snapshots

* tidy up docs

* release notes

* remove logs

* tidy up release notes

* add license
AlecAivazis added a commit that referenced this pull request Feb 10, 2023
* remove direction from refetch object

* more store definitions

* fix build errors

* add missing methods to query store

* add e2e test

* fix initial args in bidirectional pagination test

* add previous button

* fix connection implementation on server

* tidy up docs

* treat updates as a list of strings to match against

* start on query modification

* only generate pagination queries that match the api

* fix query arguments when loading pages

* cache respects page info when handling cursor updates

* bidirectional e2e query tests pass 🎉

* add tests for bidirectional fragments

* tests pass

* changesets

* check pagination direction

* linter

* update snapshots

* tidy up docs

* release notes

* remove logs

* tidy up release notes

* add license
@AlecAivazis AlecAivazis mentioned this pull request Feb 10, 2023
endigma pushed a commit to endigma/houdini that referenced this pull request Nov 10, 2024
* remove direction from refetch object

* more store definitions

* fix build errors

* add missing methods to query store

* add e2e test

* fix initial args in bidirectional pagination test

* add previous button

* fix connection implementation on server

* tidy up docs

* treat updates as a list of strings to match against

* start on query modification

* only generate pagination queries that match the api

* fix query arguments when loading pages

* cache respects page info when handling cursor updates

* bidirectional e2e query tests pass 🎉

* add tests for bidirectional fragments

* tests pass

* changesets

* check pagination direction

* linter

* update snapshots

* tidy up docs

* release notes

* remove logs

* tidy up release notes

* add license
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.

Bidirectional cursor-based pagination
1 participant