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

feat(api): Allow fetching team details without projects #13935

Merged
merged 2 commits into from
Jul 30, 2019

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Jul 9, 2019

This allows you to fetch team details that do not include projects, which
improves performance.

This allows you to fetch team details that do not include projects, which improves performance.
@billyvg billyvg force-pushed the feat/api/add-project-less-team-details branch from 4405a5c to 71f52d2 Compare July 9, 2019 19:13
@billyvg billyvg requested a review from a team July 29, 2019 23:57
@@ -81,6 +81,7 @@ def get(self, request, organization):

:pparam string organization_slug: the slug of the organization for
which the teams should be listed.
:param string detailed: Specify "0" to return team details that do not include projects
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would a better name be sparse? And then it can do the inverse here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use detailed elsewhere, and I think that makes sense in terms of how we'd like our API to behave. Ideally our default behaviour becomes not detailed, and people have to explicitly ask for detailed, and so pass detailed=1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See this thread #13925 (comment)

@@ -81,6 +81,7 @@ def get(self, request, organization):

:pparam string organization_slug: the slug of the organization for
which the teams should be listed.
:param string detailed: Specify "0" to return team details that do not include projects
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use detailed elsewhere, and I think that makes sense in terms of how we'd like our API to behave. Ideally our default behaviour becomes not detailed, and people have to explicitly ask for detailed, and so pass detailed=1

@billyvg billyvg merged commit ec00641 into master Jul 30, 2019
@billyvg billyvg deleted the feat/api/add-project-less-team-details branch July 30, 2019 22:35
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants