Skip to content

Commit

Permalink
small change to response
Browse files Browse the repository at this point in the history
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
  • Loading branch information
allisonsuarez committed Feb 23, 2021
1 parent c1ccbba commit 376867c
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions rfcs/000-lineage-stage-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,17 @@ will be executed and the lineage call will return a response:
{
“key”: “current_table_key”,
“direction”: “upstream”
lineage_entities”: [
lineage_entities_upstream”: [
{
“table”: “table_key1”,
“level”: 1,
"source": “hive”,
“badges”: [“coco”, “beta”],
“usage”: 234,
},
]
...
],
“lineage_entities_downstream”: []
}
```

Expand All @@ -84,14 +86,16 @@ OR
{
“key”: “current_table_key”,
“direction”: “downstream”
“lineage_entities”: [
“Lineage_entities_upstream”: [],
“lineage_entities_downstream”: [
{
“table”: “table_key2”,
“level”: 1,
"source": “hive”,
“badges”: [],
“usage”: 45,
},
...
]
}
```
Expand All @@ -102,36 +106,25 @@ _The expanded view of a column in the table details page must display lists of u
When the user expands the column to see more details 2 requests to metadata will be executed as follows:


```https://amundsenmetadata.com/table/current_table_key/column/column_name/lineage?direction=upstream&depth=1```
AND
```https://amundsenmetadata.com/table/current_table_key/column/column_name/lineage?direction=downstream&depth=1```
```https://amundsenmetadata.com/table/current_table_key/column/column_name/lineage?direction=both&depth=1```


and the lineage call will return a response:

```
{
“key”: “current_table_key/current_column_name”,
“direction”: “upstream
lineage_entities”: [
“direction”: “all
lineage_entities_upstream”: [
{
“key”: “table_key1/column_name1”,
“level”: 1,
"source": “hive”,
“usage”: 234,
},
...
]
}
```

AND

```
{
“key”: “current_table_key/current_column_name”,
“direction”: “downstream”
“lineage_entities”: [
],
“lineage_entities_downstream”: [
{
“key”: “table_key2/column_name2”,
“level”: 1,
Expand Down

0 comments on commit 376867c

Please sign in to comment.