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

update team repos api to send deployment_type in the response for each repo #443

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

adnanhashmi09
Copy link
Contributor

Proposed changes (including videos or screenshots)

  • Team repos api /teams/<team_id>/repos has been updated to send the deployment_type in the response for each repo

Comment on lines 25 to 27
def get_team_repos_by_team_id(self, team: Team) -> List[TeamRepos]:
return self._code_repo_service.get_team_repos_by_team_id(team_id=str(team.id))

Copy link
Contributor

Choose a reason for hiding this comment

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

get_team_repos_by_team_id we should update the func name as we are fetching the entity by passing the team object and not just the id.
How about get_team_repos_mapping ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah makes sense. get_team_repos_mapping is a little misleading since it doesn't really return a map. How about get_team_repos_by_team?

backend/analytics_server/mhq/store/repos/code.py Outdated Show resolved Hide resolved
adnanhashmi09 and others added 3 commits June 21, 2024 16:11
… check since query.all() returns an empty list by default

Co-authored-by: Samad Yar Khan <[email protected]>
Copy link
Contributor

@samad-yar-khan samad-yar-khan left a comment

Choose a reason for hiding this comment

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

LGTM @adnanhashmi09 🎉

@adnanhashmi09 adnanhashmi09 merged commit f3d3850 into main Jun 21, 2024
3 checks passed
@adnanhashmi09 adnanhashmi09 deleted the team-repos-api-changes branch June 21, 2024 10:54
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