Skip to content

Commit

Permalink
Merge branch 'master' into feat/add-lineage-vertical-node-count
Browse files Browse the repository at this point in the history
  • Loading branch information
rmovaliya committed Jun 24, 2024
2 parents 2f633b9 + 5b8258d commit 3d967b8
Show file tree
Hide file tree
Showing 73 changed files with 4,950 additions and 310 deletions.
34 changes: 33 additions & 1 deletion .github/workflows/chart-release-dispatcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,42 @@ jobs:
run: |
echo "branch=${{ github.event.workflow_run.head_branch }}" >> $GITHUB_OUTPUT
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
token: ${{ secrets.my_pat }}
ref: ${{ steps.extract_branch.outputs.branch }}
fetch-depth: 0

- name: Get SHA of the branch
id: get_sha
run: |
branch_name=${{ steps.extract_branch.outputs.branch }}
sha=$(git rev-parse "refs/heads/$branch_name")
echo "GIT_SHA: $sha"
echo "sha=${sha}" >> $GITHUB_OUTPUT
- name: Extract Repository Name
id: extract_repo_name
run: |
repo_name=$(basename $GITHUB_REPOSITORY)
echo "repo_name=${repo_name}" >> $GITHUB_OUTPUT
- name: Get PR url and PR User
id: get_pr_url_user
run: |
head_sha=$(curl -s -H "Authorization: Bearer ${{ secrets.my_pat }}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/jobs" | jq -r '.jobs[0].head_sha')
echo "Head SHA: $head_sha"
pr_url=$(curl -s -H "Authorization: Bearer ${{ secrets.my_pat }}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/search/issues?q=sha:$head_sha+type:pr" | jq -r '.items[0].html_url')
pr_user=$(curl -s -H "Authorization: Bearer ${{ secrets.my_pat }}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/search/issues?q=sha:$head_sha+type:pr" | jq -r '.items[0].user.login')
echo "pr_url=$pr_url" >> $GITHUB_OUTPUT
echo "pr_user=$pr_user" >> $GITHUB_OUTPUT
- name: echo PR_URL and PR_USER
run: |
echo "${{ steps.get_pr_url_user.outputs.pr_url }}"
echo "${{ steps.get_pr_url_user.outputs.pr_user }}"
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
Expand All @@ -42,6 +72,8 @@ jobs:
{
"repo": {
"name": "${{ steps.extract_repo_name.outputs.repo_name }}",
"branch": "${{ steps.extract_branch.outputs.branch }}"
"branch": "${{ steps.extract_branch.outputs.branch }}",
"pr_url": "${{ steps.get_pr_url_user.outputs.pr_url }}",
"pr_user": "${{ steps.get_pr_url_user.outputs.pr_user }}"
}
}
23 changes: 23 additions & 0 deletions addons/models/0000-Area0/0010-base_model.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,29 @@
"includeInNotification": false
}
]
},
{
"name": "StakeholderTitle",
"description": "Instance of a stakeholder title for Domains in Atlan",
"superTypes": [
"Asset"
],
"serviceType": "atlan",
"typeVersion": "1.0",
"attributeDefs": [
{
"name": "stakeholderTitleDomainQualifiedNames",
"description": "qualified name array representing the Domains for which this StakeholderTitle is applicable",
"typeName": "array<string>",
"indexType": "STRING",
"isOptional": true,
"cardinality": "SET",
"isUnique": false,
"isIndexable": false,
"skipScrubbing": true,
"includeInNotification": false
}
]
}
],
"relationshipDefs": [
Expand Down
25 changes: 25 additions & 0 deletions addons/policies/bootstrap_admin_policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,31 @@
"admin-task-cud"
]
}
},
{
"typeName": "AuthPolicy",
"attributes": {
"name": "ADMIN_ALLOW_FEATURE_FLAG_CUD",
"qualifiedName": "ADMIN_ALLOW_FEATURE_FLAG_CUD",
"policyCategory": "bootstrap",
"policySubCategory": "default",
"policyServiceName": "atlas",
"policyType": "allow",
"policyPriority": 1,
"policyUsers": [
"service-account-atlan-argo",
"service-account-atlan-backend"
],
"policyGroups": [],
"policyRoles": [],
"policyResourceCategory": "ADMIN",
"policyResources": [
"atlas-service:*"
],
"policyActions": [
"admin-featureFlag-cud"
]
}
}
]
}
Loading

0 comments on commit 3d967b8

Please sign in to comment.