-
Notifications
You must be signed in to change notification settings - Fork 60
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
[Integration][ADO] Fix missing team context for non default teams while ingesting boards #1127
[Integration][ADO] Fix missing team context for non default teams while ingesting boards #1127
Conversation
…on-Missing-Team-Context-for-Non-Default-Teams
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. just some minor comments
teams_url = f"{self._organization_base_url}/{API_URL_PREFIX}/projects/{project_id}/teams" | ||
async for teams_in_project in self._get_paginated_by_top_and_skip(teams_url): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have a generate_teams() method already. why don't you use that one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generate teams gets the teams outside of the project context and it might not be suitable for this purpose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see
teams_url = f"{self._organization_base_url}/{API_URL_PREFIX}/projects/{project_id}/teams" | ||
async for teams_in_project in self._get_paginated_by_top_and_skip(teams_url): | ||
for team in teams_in_project: | ||
get_boards_url = f"{self._organization_base_url}/{project_id}/{team.get('id')}/{API_URL_PREFIX}/work/boards" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the team ID is optional, thereby returning None, then let's catch it. If it's mandatory then lets do team["id"]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…on-Missing-Team-Context-for-Non-Default-Teams
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
What:
Updated the Azure DevOps Boards integration to include the team context by modifying the API call structure to iterate through all teams within a project.
Why:
Previously, the integration only retrieved boards at the project level using the
/{organization}/{project}/_apis/work/boards
endpoint. This approach limited data visibility to the default team's boards, resulting in missing boards and columns from non-default teams.How:
The integration was modified to use the
/{organization}/{project}/{team}/_apis/work/boards
endpoint, enabling iteration through all project teams. This change ensures that boards and columns from all teams within a project are included, improving overall data completeness and accuracy.Type of change
Please leave one option from the following and delete the rest:
All tests should be run against the port production environment(using a testing org).
Core testing checklist
Integration testing checklist
examples
folder in the integration directory.Preflight checklist
Screenshots
Include screenshots from your environment showing how the resources of the integration will look.
API Documentation
Provide links to the API documentation used for this integration.