Skip to content

Commit 740cc2b

Browse files
authored
Merge pull request #42 from nubank/consumer-new-endpoint
fix-datasetorjob-detail
2 parents 88b4d13 + 5cab952 commit 740cc2b

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

web/src/routes/table-level/TableLevelDrawer.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ const TableLevelDrawer = ({ lineageGraph }: StateProps & DispatchProps) => {
5656
};
5757

5858
const mapStateToProps = (state: IState) => ({
59-
lineageGraph: state.lineage.lineage,
60-
});
61-
59+
lineageGraph: state.lineage.isFull ? state.lineage.lineage : state.lineage.filteredLineage,
60+
})
6261
const mapDispatchToProps = (dispatch: Redux.Dispatch) => bindActionCreators({}, dispatch);
6362
export default connect(mapStateToProps, mapDispatchToProps)(TableLevelDrawer);

web/src/routes/table-level/TableLineageDatasetNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ TableLineageDatasetNode.getLayoutOptions = (node: TableLineageDatasetNodeProps['
255255
})
256256

257257
const mapStateToProps = (state: IState) => ({
258-
lineage: state.lineage.lineage,
258+
lineage: state.lineage.isFull ? state.lineage.lineage : state.lineage.filteredLineage,
259259
dataset: state.dataset.result,
260260
})
261261

web/src/store/reducers/lineage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { Nullable } from '../../types/util/Nullable'
2222
import { setBottomBarHeight, setLineageGraphDepth, setSelectedNode } from '../actionCreators'
2323

2424
export interface ILineageState {
25+
isFull: boolean
2526
lineage: LineageGraph
2627
filteredLineage: LineageGraph
2728
selectedNode: Nullable<string>
@@ -39,6 +40,7 @@ const initialState: ILineageState = {
3940
bottomBarHeight: (window.innerHeight - HEADER_HEIGHT) / 3,
4041
depth: 5,
4142
isLoading: false,
43+
isFull: false,
4244
tabIndex: 0,
4345
showFullGraph: true,
4446
}

0 commit comments

Comments
 (0)