Added docs (#7580)

Co-authored-by: Onkar Ravgan <onkarravgan@Onkars-MacBook-Pro.local>
This commit is contained in:
Onkar Ravgan 2022-09-20 16:14:12 +05:30 committed by GitHub
parent 5f2d7c5dfc
commit b6df1d74ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 7 deletions

View File

@ -7,6 +7,8 @@ slug: /openmetadata/ingestion/workflows/metadata/dbt/ingest-dbt-owner
Ingest the model/table owner information from DBT `catalog.json` file into openmetadata tables.
The owner from `catalog.json` file can be a user or a team in OpenMetadata.
## Requirements
### 1. Owner information in catalog.json file
@ -25,30 +27,48 @@ Openmetadata fetches the owner information from the `catalog.json` file. Below i
}
```
### 2. Adding the user to OpenMetadata
The user which will be set as the entity owner should be created in OpenMetadata.
### 2. Adding the User or Team to OpenMetadata
The user or team which will be set as the entity owner should be first created in OpenMetadata.
Following steps shows adding a user to OpenMetadata:
While linking the owner from `catalog.json` file to the entity, OpenMetadata first searches for the user if it is present. If the user is not present it searches for the team
#### Following steps shows adding a User to OpenMetadata:
1. Click on the `Users` section from homepage
<Image src="/images/openmetadata/ingestion/workflows/metadata/ingest_dbt_owner/click-users-page.png" alt="click-users-page" caption="Click Users page"/>
2. Click on the `Add Users` button
<Image src="/images/openmetadata/ingestion/workflows/metadata/ingest_dbt_owner/click-add-user.png" alt="click-add-user" caption="Click Add Users"/>
2. Click on the `Add User` button
<Image src="/images/openmetadata/ingestion/workflows/metadata/ingest_dbt_owner/click-add-user.png" alt="click-add-user" caption="Click Add User"/>
3. Enter the details as shown for the user
<Note>
If the owner's name in `catalog.json` file is `openmetadata`, you need to enter `openmetadata@youremail.com` in the email id section of add users form as shown below.
If the owner's name in `catalog.json` file is `openmetadata`, you need to enter `openmetadata@youremail.com` in the email id section of add user form as shown below.
</Note>
<Image src="/images/openmetadata/ingestion/workflows/metadata/ingest_dbt_owner/add-user-dbt.png" alt="add-user-dbt" caption="Add User"/>
#### Following steps shows adding a Team to OpenMetadata:
1. Click on the `Teams` section from homepage
<Image src="/images/openmetadata/ingestion/workflows/metadata/ingest_dbt_owner/click-teams-page.png" alt="click-teams-page" caption="Click Teams page"/>
2. Click on the `Add Team` button
<Image src="/images/openmetadata/ingestion/workflows/metadata/ingest_dbt_owner/click-add-team.png" alt="click-add-team" caption="Click Add Team"/>
3. Enter the details as shown for the team
<Note>
If the owner's name in `catalog.json` file is `openmetadata`, you need to enter `openmetadata` in the name section of add team form as shown below.
</Note>
<Image src="/images/openmetadata/ingestion/workflows/metadata/ingest_dbt_owner/add-team-dbt.png" alt="add-team-dbt" caption="Add Team"/>
## Linking the Owner to the table
After ruuning the ingestion workflow with DBT you can see the created user getting linked to the table as it's owner as it was specified in the `catalog.json` file.
After runing the ingestion workflow with DBT you can see the created user or team getting linked to the table as it's owner as it was specified in the `catalog.json` file.
<Image src="/images/openmetadata/ingestion/workflows/metadata/ingest_dbt_owner/linked-user.png" alt="linked-user" caption="Linked User"/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB