Skip to content

Conversation

@Dhruvkumar-Microsoft
Copy link
Contributor

Purpose

This pull request enhances the upload_team_config.py script to prevent uploading team configurations that already exist in the backend, improving data integrity and user feedback. The script now checks for the existence of each team before attempting an upload and provides a clear message if the team is already present.

Team existence check and user feedback:

  • Added a check_team_exists function that queries the backend to determine if a team with the given ID already exists, using the provided user principal ID for authentication.
  • Updated the main upload loop to use check_team_exists before uploading each file. If the team exists, the script reads the config to get the team name and prints a message indicating the team already exists, skipping the upload.

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

@Roopan-Microsoft Roopan-Microsoft merged commit 7a081cf into dev-v3 Oct 28, 2025
4 checks passed
@Roopan-Microsoft Roopan-Microsoft deleted the psl-bug-25477 branch October 28, 2025 06:13
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