Skip to content
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

docs(lineage): Lineage docs refactoring #8899

Merged
merged 10 commits into from
Oct 4, 2023
2 changes: 1 addition & 1 deletion docs-website/generateDocsDir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function list_markdown_files(): string[] {
.trim()
.split("\n");
let all_generated_markdown_files = execSync(
"cd .. && ls docs/generated/**/**/*.md"
"cd .. && ls docs/generated/**/**/*.md && ls docs/generated/**/*.md"
)
.toString()
.trim()
Expand Down
5 changes: 4 additions & 1 deletion docs-website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ module.exports = {
"docs/features/dataset-usage-and-query-history",
"docs/posts",
"docs/sync-status",
"docs/lineage/lineage-feature-guide",
"docs/generated/lineage/lineage-feature-guide",
{
type: "doc",
id: "docs/tests/metadata-tests",
Expand All @@ -446,6 +446,9 @@ module.exports = {
"docs/managed-datahub/observe/custom-sql-assertions",
],
},
{
Guides: ["docs/features/feature-guides/ui-lineage"],
},
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/act-on-metadata/impact-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ We currently limit the list of dependencies to 10,000 records; we suggest applyi

### Related Features

* [DataHub Lineage](../lineage/lineage-feature-guide.md)
* [DataHub Lineage](../generated/lineage/lineage-feature-guide.md)
3 changes: 2 additions & 1 deletion docs/api/tutorials/lineage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import TabItem from '@theme/TabItem';
## Why Would You Use Lineage?

Lineage is used to capture data dependencies within an organization. It allows you to track the inputs from which a data asset is derived, along with the data assets that depend on it downstream.
For more information about lineage, refer to [About DataHub Lineage](/docs/lineage/lineage-feature-guide.md).

For more information about lineage, refer to [About DataHub Lineage](/docs/generated/lineage/lineage-feature-guide.md).

### Goal Of This Guide

Expand Down
58 changes: 58 additions & 0 deletions docs/features/feature-guides/ui-lineage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Managing Lineage via UI

## Viewing lineage
The UI shows the latest version of the lineage. The time picker can be used to filter out edges within the latest version to exclude those that were last updated outside of the time window. Selecting time windows in the patch will not show you historical lineages. It will only filter the view of the latest version of the lineage.

## Editing from Lineage Graph View

The first place that you can edit lineage for entities is from the Lineage Visualization screen. Click on the "Lineage" button on the top right of an entity's profile to get to this view.

<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/lineage/lineage-viz-button.png"/>
</p>

Once you find the entity that you want to edit the lineage of, click on the three-dot menu dropdown to select whether you want to edit lineage in the upstream direction or the downstream direction.

<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/lineage/edit-lineage-menu.png"/>
</p>

If you want to edit upstream lineage for entities downstream of the center node or downstream lineage for entities upstream of the center node, you can simply re-center to focus on the node you want to edit. Once focused on the desired node, you can edit lineage in either direction.

<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/lineage/focus-to-edit.png"/>
</p>

### Adding Lineage Edges

Once you click "Edit Upstream" or "Edit Downstream," a modal will open that allows you to manage lineage for the selected entity in the chosen direction. In order to add a lineage edge to a new entity, search for it by name in the provided search bar and select it. Once you're satisfied with everything you've added, click "Save Changes." If you change your mind, you can always cancel or exit without saving the changes you've made.

<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/lineage/add-upstream.png"/>
</p>

### Removing Lineage Edges

You can remove lineage edges from the same modal used to add lineage edges. Find the edge(s) that you want to remove, and click the "X" on the right side of it. And just like adding, you need to click "Save Changes" to save and if you exit without saving, your changes won't be applied.

<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/lineage/remove-lineage-edge.png"/>
</p>

### Reviewing Changes

Any time lineage is edited manually, we keep track of who made the change and when they made it. You can see this information in the modal where you add and remove edges. If an edge was added manually, a user avatar will be in line with the edge that was added. You can hover over this avatar in order to see who added it and when.

<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/lineage/lineage-edge-audit-stamp.png"/>
</p>

## Editing from Lineage Tab

The other place that you can edit lineage for entities is from the Lineage Tab on an entity's profile. Click on the "Lineage" tab in an entity's profile and then find the "Edit" dropdown that allows you to edit upstream or downstream lineage for the given entity.

<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/lineage/edit-from-lineage-tab.png"/>
</p>

Using the modal from this view will work the same as described above for editing from the Lineage Visualization screen.
222 changes: 0 additions & 222 deletions docs/lineage/lineage-feature-guide.md

This file was deleted.

Loading
Loading