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

Added paginated curl to get all deployments for cloudflare pages #355

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

lempira
Copy link
Contributor

@lempira lempira commented Nov 28, 2024

I realized that the cloudflare workflow to delete the apps wasn't fully working. The endpoint is paginated and only allows 25 results per page. There is no param that allows for more results, just the "PAGE" pagination params. There is also no way to filter the results thru params.
I updated the worker to get all the results by looping through all the paginated results and then filtering the ones relevant to the branch.

I tested this on the current branch and it's working

Copy link

cloudflare-workers-and-pages bot commented Nov 28, 2024

Deploying algokit-lora with  Cloudflare Pages  Cloudflare Pages

Latest commit: a8554ae
Status: ✅  Deploy successful!
Preview URL: https://8c628322.algokit-lora.pages.dev
Branch Preview URL: https://paginated-rm-preview-deploym.algokit-lora.pages.dev

View logs

@lempira lempira force-pushed the paginated-rm-preview-deployments branch from 6f9df40 to d339a4b Compare November 28, 2024 01:07
@lempira lempira marked this pull request as ready for review November 28, 2024 01:13
@lempira lempira requested a review from neilcampbell November 28, 2024 01:13
@lempira lempira merged commit d9c5581 into main Nov 28, 2024
2 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.

2 participants