-
Notifications
You must be signed in to change notification settings - Fork 48
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
Updates Team and Members Blueprint examples for ADO. #1983
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c2ebf57
Updates Team and Members Blueprint examples for ADO.
shariff-6 43bb9bf
feat(azure-devops): Improve team and member mapping in software catalog
shariff-6 c369232
Removes ADO user blueprint
shariff-6 4442ff5
docs(azure-devops): Refactor team-member blueprint and update mappings
shariff-6 f2776b8
Merge branch 'main' into PORT-12649-Sync-Members-Once-From-a-Team
mk-armah a27a50f
Adds users to supported resurces
shariff-6 4db5730
Merge branch 'main' of https://github.com/port-labs/port-docs into PO…
shariff-6 11f462f
Merge branch 'PORT-12649-Sync-Members-Once-From-a-Team' of https://gi…
shariff-6 7dad0ed
Removes email from user properties, already defined in identifier
shariff-6 6a63072
Rebase ADO Team Docs
shariff-6 585a810
Add Azure DevOps user and team blueprints and integration mapping exa…
shariff-6 4cd457e
Merge branch 'main' into PORT-12649-Sync-Members-Once-From-a-Team
mk-armah f4e9b14
Correct link t
shariff-6 4557c63
Merge branch 'PORT-12649-Sync-Members-Once-From-a-Team' of https://gi…
shariff-6 fcdc6a3
Update docs/build-your-software-catalog/sync-data-to-catalog/git/azur…
shariff-6 a149a87
Update docs/build-your-software-catalog/sync-data-to-catalog/git/azur…
shariff-6 e05be95
Update docs/build-your-software-catalog/sync-data-to-catalog/git/azur…
shariff-6 d070cba
Adds deprecation notice
shariff-6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
46 changes: 46 additions & 0 deletions
46
...devops/example-users-and-teams/_azuredevops_exporter_example_team_blueprint.mdx
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,46 @@ | ||
<details> | ||
<summary>Team blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "azureDevopsTeam", | ||
"title": "Azure Devops Team", | ||
"icon": "AzureDevops", | ||
"schema": { | ||
"properties": { | ||
"url": { | ||
"icon": "Link", | ||
"title": "URL", | ||
"type": "string", | ||
"format": "url" | ||
}, | ||
"description": { | ||
"title": "Description", | ||
"type": "string", | ||
"icon": "DefaultProperty" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"aggregationProperties": {}, | ||
"relations": { | ||
"project": { | ||
"title": "Project", | ||
"target": "project", | ||
"required": true, | ||
"many": false | ||
}, | ||
"members": { | ||
"title": "Members", | ||
"description": "The ADO users belonging to this team", | ||
"target": "azureDevopsUser", | ||
"required": false, | ||
"many": true | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> |
52 changes: 52 additions & 0 deletions
52
...example-users-and-teams/_azuredevops_exporter_example_teams_port_app_config.mdx
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,52 @@ | ||
<details> | ||
|
||
<summary> Integration mapping </summary> | ||
|
||
```yaml showLineNumbers | ||
resources: | ||
- kind: user | ||
selector: | ||
query: 'true' | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .user.mailAddress | ||
title: .user.displayName | ||
blueprint: '"azureDevopsUser"' | ||
properties: | ||
url: .user.url | ||
- kind: project | ||
selector: | ||
query: 'true' | ||
defaultTeam: 'true' | ||
port: | ||
entity: | ||
mappings: | ||
identifier: '.id | gsub(" "; "")' | ||
blueprint: '"project"' | ||
title: .name | ||
properties: | ||
state: .state | ||
revision: .revision | ||
visibility: .visibility | ||
defaultTeam: .defaultTeam.name | ||
link: .url | gsub("_apis/projects/"; "") | ||
- kind: team | ||
selector: | ||
query: 'true' | ||
includeMembers: 'true' | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .id | ||
title: .name | ||
blueprint: '"azureDevopsTeam"' | ||
properties: | ||
url: .url | ||
description: .description | ||
relations: | ||
project: .projectId | gsub(" "; "") | ||
members: .__members | map(.identity.uniqueName) | ||
``` | ||
|
||
</details> |
27 changes: 27 additions & 0 deletions
27
...devops/example-users-and-teams/_azuredevops_exporter_example_user_blueprint.mdx
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,27 @@ | ||
<details> | ||
<summary>User blueprint</summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "azureDevopsUser", | ||
"title": "Azure Devops User", | ||
"icon": "AzureDevops", | ||
"schema": { | ||
"properties": { | ||
"url": { | ||
"icon": "Link", | ||
"title": "URL", | ||
"type": "string", | ||
"format": "url" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"mirrorProperties": {}, | ||
"calculationProperties": {}, | ||
"aggregationProperties": {}, | ||
"relations": {} | ||
} | ||
``` | ||
|
||
</details> |
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
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.
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.
add it a warning /tip and refer to the
Mapping users and teams
section