forked from Azure/azure-devops-cli-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boards Iterations and Areas Unit tests and Backlog/Default team itera…
…tion commands (Azure#663) * Fix python versions in Mac machines * UTs for Project iterations * UTs * UTs for Project Area commands * UTs for Team area commands * Unwanted import * Bug bash fix: Change from relative to absolute path * Absolute path in iterations * Add commands to configure default iteration and backlog iteration * Change help text for update commands * Minor help text changes * Changes in default area * Hanlde empty backlog iteration ID error and adding a troubleshotting help page * Fix UTs * Pylint fixes * Flake fixes * Additional tests for Backlog/default and list work items command * Renaming test helper file
- Loading branch information
1 parent
38fb2cf
commit 7ac56fc
Showing
12 changed files
with
766 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
from knack.util import CLIError | ||
|
||
|
||
def resolve_classification_node_path(client, path, project, structure_group): | ||
get_root_node = client.get_root_nodes(project=project, depth=0) | ||
root_node_path = None | ||
for entry in get_root_node: | ||
if entry.structure_type == structure_group[:-1]: | ||
root_node_path = entry.additional_properties['path'] | ||
if root_node_path and path.lower().startswith(root_node_path.lower()): | ||
updated_path = path[len(root_node_path):] | ||
return updated_path | ||
raise CLIError("--path parameter is expected to be absolute path.") |
This file contains 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
Oops, something went wrong.