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

Latest Deployments Pagination #307

Merged
merged 5 commits into from
Sep 24, 2024
Merged

Conversation

GrantBirki
Copy link
Member

@GrantBirki GrantBirki commented Sep 24, 2024

Latest Deployments Pagination

This pull request adds some additional logic to the new latestActiveDeployment() method. Now, instead of just grabbing the very first result, we paginate through until we hit an ACTIVE deployment. This is more robust and prevents missing an active deployment if a certain condition causes it to not be the very first returned item by the graphql endpoint.

Somewhat related: #303

@GrantBirki GrantBirki self-assigned this Sep 24, 2024
@GrantBirki GrantBirki merged commit ef4f017 into main Sep 24, 2024
4 checks passed
@GrantBirki GrantBirki deleted the latest-deployments-pagination branch September 24, 2024 19:14
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