You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Have you ever changed a dbt model only to later find it broke a downstream table or dashboard? 💔_
7
+
_Have you ever changed a dbt model or a data contract only to later find it broke a downstream table or dashboard? 💔_
8
8
9
9
We've created a GitHub Action to help you out — putting Atlan's impact analysis right into your pull request. So now, before merging the PR, you can see the potential downstream impact of your changes.
After you've completed the configuration above, create a pull request with a changed dbt model file to test the action. You should see the Atlan GitHub action running and then adding comments in your pull request:
55
+
After you've completed the configuration above, create a pull request with a changed dbt model or data contract file to test the action. You should see the Atlan GitHub action running and then adding comments in your pull request:
56
56
57
57
- The GitHub workflow will add and update a single comment for every file change.
58
58
- The impacted assets in the comment will be displayed in a collapsible section and grouped by source and asset type.
Copy file name to clipboardExpand all lines: SETUP.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ It is a very useful and easy to use library, which runs your Github Actions loca
31
31
32
32
Since you as a developer would be using your Github PAT to test the action locally, you'll need to locally run the clone of your fork, in order to generate the event.json file, follow the following steps:
33
33
34
-
-[Fork this repo.](https://github.com/atlanhq/dbt-action/fork)
34
+
-[Fork this repo.](https://github.com/atlanhq/atlan-action/fork)
35
35
- Create a pull request from `test-action` branch to `main` branch. Once you do so, it will automatically run the action.
36
36
- Go to your forked repo's `Actions` page and open the workflow with the name `Test Action`.
37
37
- Click on the one and only job, `Get Downstream Assets`.
@@ -58,4 +58,4 @@ Once and if `act` is setup properly, then you can simply use the command `npm st
58
58
59
59
## Contributing
60
60
61
-
Please make sure to use the command `npm run sync` in order to sync changes, since the workflow [`.github/workflows/package-action.yml`](https://github.com/atlanhq/dbt-action/blob/main/.github/workflows/package-action.yml) updates the `dist/` in order to package the action code in case you forget to package the action before pushing.
61
+
Please make sure to use the command `npm run sync` in order to sync changes, since the workflow [`.github/workflows/package-action.yml`](https://github.com/atlanhq/atlan-action/blob/main/.github/workflows/package-action.yml) updates the `dist/` in order to package the action code in case you forget to package the action before pushing.
Copy file name to clipboardExpand all lines: action.yml
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
name: "Atlan dbt Action"
2
-
description: "Whenever you make a change to a dbt model, Atlan will add downstream lineage impact context right in your pull requests."
1
+
name: "Atlan Action"
2
+
description: "Whenever you make a change to a dbt model or a data contract, Atlan will add downstream lineage impact context right in your pull requests."
Copy file name to clipboardExpand all lines: adapters/templates/github-integration.js
+2-2
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ export function getErrorResponseStatus401 (ATLAN_INSTANCE_URL, context) {
5
5
6
6
Atlan Instance URL: ${ATLAN_INSTANCE_URL}
7
7
8
-
Set your repository action secrets [here](https://github.com/${context.payload.repository.full_name}/settings/secrets/actions). For more information on how to setup the Atlan dbt Action, please read the [setup documentation here](https://github.com/atlanhq/dbt-action/blob/main/README.md).`
8
+
Set your repository action secrets [here](https://github.com/${context.payload.repository.full_name}/settings/secrets/actions). For more information on how to setup the Atlan Action, please read the [setup documentation here](https://github.com/atlanhq/atlan-action/blob/main/README.md).`
Make sure your Atlan Instance URL is set in the following format.
17
17
\`https://tenant.atlan.com\`
18
18
19
-
Set your repository action secrets [here](https://github.com/${context.payload.repository.full_name}/settings/secrets/actions). For more information on how to setup the Atlan dbt Action, please read the [setup documentation here](https://github.com/atlanhq/dbt-action/blob/main/README.md).`
19
+
Set your repository action secrets [here](https://github.com/${context.payload.repository.full_name}/settings/secrets/actions). For more information on how to setup the Atlan Action, please read the [setup documentation here](https://github.com/atlanhq/atlan-action/blob/main/README.md).`
return`We couldn't connect to your Atlan Instance, please make sure to set the valid Atlan Bearer Token as \`ATLAN_API_TOKEN\` as this repository's CI/CD variable.
5
5
6
6
Atlan Instance URL: ${ATLAN_INSTANCE_URL}
7
7
8
-
Set your CI/CD variables [here](https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/settings/ci_cd). For more information on how to setup the Atlan dbt Action, please read the [setup documentation here](https://ask.atlan.com/hc/en-us/articles/8284983222415).`
8
+
Set your CI/CD variables [here](https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/settings/ci_cd). For more information on how to setup the Atlan Action, please read the [setup documentation here](https://ask.atlan.com/hc/en-us/articles/8284983222415).`
Make sure your Atlan Instance URL is set in the following format.
17
17
\`https://tenant.atlan.com\`
18
18
19
-
Set your CI/CD variables [here](https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/settings/ci_cd). For more information on how to setup the Atlan dbt Action, please read the [setup documentation here](https://ask.atlan.com/hc/en-us/articles/8284983222415).`
19
+
Set your CI/CD variables [here](https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/settings/ci_cd). For more information on how to setup the Atlan Action, please read the [setup documentation here](https://ask.atlan.com/hc/en-us/articles/8284983222415).`
Copy file name to clipboardExpand all lines: dist/index.js
+13-4
Original file line number
Diff line number
Diff line change
@@ -24831,7 +24831,7 @@ function getErrorResponseStatus401 (ATLAN_INSTANCE_URL, context) {
24831
24831
24832
24832
Atlan Instance URL: ${ATLAN_INSTANCE_URL}
24833
24833
24834
-
Set your repository action secrets [here](https://github.com/${context.payload.repository.full_name}/settings/secrets/actions). For more information on how to setup the Atlan dbt Action, please read the [setup documentation here](https://github.com/atlanhq/dbt-action/blob/main/README.md).`
24834
+
Set your repository action secrets [here](https://github.com/${context.payload.repository.full_name}/settings/secrets/actions). For more information on how to setup the Atlan Action, please read the [setup documentation here](https://github.com/atlanhq/atlan-action/blob/main/README.md).`
24835
24835
}
24836
24836
24837
24837
function getErrorResponseStatusUndefined(ATLAN_INSTANCE_URL, context) {
Make sure your Atlan Instance URL is set in the following format.
24843
24843
\`https://tenant.atlan.com\`
24844
24844
24845
-
Set your repository action secrets [here](https://github.com/${context.payload.repository.full_name}/settings/secrets/actions). For more information on how to setup the Atlan dbt Action, please read the [setup documentation here](https://github.com/atlanhq/dbt-action/blob/main/README.md).`
24845
+
Set your repository action secrets [here](https://github.com/${context.payload.repository.full_name}/settings/secrets/actions). For more information on how to setup the Atlan Action, please read the [setup documentation here](https://github.com/atlanhq/atlan-action/blob/main/README.md).`
24846
24846
}
24847
24847
24848
24848
function getSetResourceOnAssetComment(tableMd, setResourceFailed) {
@@ -25120,6 +25120,15 @@ async function getContractAsset({
25120
25120
term: {
25121
25121
qualifiedName: assetQualifiedName
25122
25122
}
25123
+
},
25124
+
{
25125
+
terms: {
25126
+
"__typeName.keyword": [
25127
+
"Table",
25128
+
"MaterialisedView",
25129
+
"View"
25130
+
]
25131
+
}
25123
25132
}
25124
25133
]
25125
25134
}
@@ -39056,7 +39065,7 @@ function gitlab_integration_getErrorResponseStatus401 (ATLAN_INSTANCE_URL, CI_PR
39056
39065
39057
39066
Atlan Instance URL: ${ATLAN_INSTANCE_URL}
39058
39067
39059
-
Set your CI/CD variables [here](https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/settings/ci_cd). For more information on how to setup the Atlan dbt Action, please read the [setup documentation here](https://ask.atlan.com/hc/en-us/articles/8284983222415).`
39068
+
Set your CI/CD variables [here](https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/settings/ci_cd). For more information on how to setup the Atlan Action, please read the [setup documentation here](https://ask.atlan.com/hc/en-us/articles/8284983222415).`
39060
39069
}
39061
39070
39062
39071
function gitlab_integration_getErrorResponseStatusUndefined(ATLAN_INSTANCE_URL, CI_PROJECT_NAME, CI_PROJECT_NAMESPACE) {
Make sure your Atlan Instance URL is set in the following format.
39068
39077
\`https://tenant.atlan.com\`
39069
39078
39070
-
Set your CI/CD variables [here](https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/settings/ci_cd). For more information on how to setup the Atlan dbt Action, please read the [setup documentation here](https://ask.atlan.com/hc/en-us/articles/8284983222415).`
39079
+
Set your CI/CD variables [here](https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/settings/ci_cd). For more information on how to setup the Atlan Action, please read the [setup documentation here](https://ask.atlan.com/hc/en-us/articles/8284983222415).`
39071
39080
}
39072
39081
39073
39082
function gitlab_integration_getSetResourceOnAssetComment(tableMd, setResourceFailed) {
0 commit comments