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

DM-47789: Convert to the Safir pagination support #1168

Merged
merged 3 commits into from
Nov 26, 2024
Merged

Conversation

rra
Copy link
Member

@rra rra commented Nov 26, 2024

Use the new paginated query support in Safir, which was based on the original Gafaelfawr code but made more generic. This requires adding a new type for token change history entries that include the database row ID (required to use the pagination cursor) and moving enums used in the database schema into a separate module since the history models module now needs to import symbols from the schema.

rra added 3 commits November 26, 2024 15:03
Use the new paginated query support in Safir, which was based on
the original Gafaelfawr code but made more generic. This requires
adding a new type for token change history entries that include the
database row ID (required to use the pagination cursor) and moving
enums used in the database schema into a separate module since the
history models module now needs to import symbols from the schema.
Delete the Gafaelfawr `LinkData` model in favor of
`PaginationLinkData` from Safir. This is the same model with some
minor tweaks and a different name.
Now that the pagination code in Safir is used, `InvalidCursorError`
was never raised and can be safely deleted.
@rra rra merged commit fe13c91 into main Nov 26, 2024
5 checks passed
@rra rra deleted the tickets/DM-47789 branch November 26, 2024 23:34
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.

1 participant