feat: ✨Implement azdo team member add command#292
Merged
Conversation
Add IsIdentitySID to detect Azure DevOps identity SIDs in both bare and prefixed forms. Add NormalizeIdentitySID to ensure the Microsoft.TeamFoundation.Identity prefix is present where missing.
* Introduce ResolveSubjects on the extension Client to resolve multiple member identifiers in a single call, reducing azdo rest api round trips. the implementation partitions inputs by identifier type and dispatches each partition to the appropriate batch endpoint. * Refactor ResolveSubject to delegate through the new batch path, eliminating duplicated lookup logic. unresolvable inputs are omitted from the result map; only catastrophic failures surface as errors. * Add comprehensive tests for batched descriptor, sid, and search resolution, including partial results, not-found handling, and fallback paths. regenerate mocks for the updated interface.
Add the `add` subcommand to `team member` for adding users or groups to a team. Resolve members by email, descriptor, principal name, SID, or identity ID. Check existing membership before adding and output results as JSON or a table.
Add comprehensive test coverage for single and bulk member addition, including happy path, error handling, JSON output, deduplication, and input order preservation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #288