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

apps: add option to get projects data from Apps List endpoint #575

Merged
merged 3 commits into from
Nov 1, 2022

Conversation

ghostlandr
Copy link
Contributor

@ghostlandr ghostlandr commented Nov 1, 2022

The ListApps endpoint can be called with a with_projects query parameter to tell it whether or not to fetch the project ids for each project. This is an expensive call which is why it isn't done by default.

I'm not sure how to add support for this without breaking changes, I'm hoping @andrewsomething you've got some ideas 🙏 This way seemed like the least work for devs who have already used this in their code, as well as for the doctl implementation of this function.

This now is an addition to the ListOptions struct, which shouldn't be a breaking change 👍

@ChiefMateStarbuck ChiefMateStarbuck merged commit 49e7590 into digitalocean:main Nov 1, 2022
@ghostlandr ghostlandr deleted the add-with-projects branch November 1, 2022 20:46
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