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

Skip pagination when run cfy dep group extend --into-environments #1468

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ronaldnascimentosilva
Copy link

Command cfy deployment group extend --into-enviroment env-group test-group only extend 1000 deployments when the env-group have more than 1000 deployments

$ cfy dep group create -b blueprint_id -i auth_url="http://myserver/v3" env-group
Group env-group created
$ cfy dep group extend --count 1050 env-group
Group env-group updated. It now contains 1050 deployments
# Wait until all executions are completed
$ cfy exec summary status
$ cfy exec group start install -g env-group
# Wait until all executions are completed
$ cfy exec summary status
$ cfy dep group create -b tester-blueprint test-group
Group test-group created
$ cfy dep group extend --into-environments env-group test-group
Group test-group updated. It now contains 1000 deployments

After some investigation I realize the endpoint has a default pagination that limit the query, so i added a parameter in the request to ignore the pagination in this case.

@EarthmanT EarthmanT requested a review from mateumann January 30, 2023 22:26
@ronaldnascimentosilva
Copy link
Author

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