Skip to content

Add optional parameter for get /groups ?include_metrics#39

Merged
Andrei-Dolgolev merged 2 commits intomainfrom
add-get-user-groups-endpoint
Aug 17, 2022
Merged

Add optional parameter for get /groups ?include_metrics#39
Andrei-Dolgolev merged 2 commits intomainfrom
add-get-user-groups-endpoint

Conversation

@Andrei-Dolgolev
Copy link
Copy Markdown
Contributor

default is true
If true: collect num of users and num of seats in each group.
False return just list of user group without additional queries.

Changes

How to test these changes?

Related issues

Andrey added 2 commits August 17, 2022 19:39
default is true
If true: collect num of users and num of seats in each group.
False return just list of user group without additional queries.
Comment thread brood/actions.py
num_seats = get_num_seats(session, group)

groups_response.append(
data.GroupUserResponse(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Andrei-Dolgolev : Do you have to change Pydantic model to make num_users and num_seats Optional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Already Optional

Copy link
Copy Markdown
Member

@zomglings zomglings left a comment

Choose a reason for hiding this comment

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

gg

@Andrei-Dolgolev Andrei-Dolgolev merged commit 5813ad3 into main Aug 17, 2022
Copy link
Copy Markdown
Collaborator

@kompotkot kompotkot left a comment

Choose a reason for hiding this comment

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

lg

@kompotkot kompotkot deleted the add-get-user-groups-endpoint branch August 17, 2022 16:57
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.

3 participants