This is an automated email from the ASF dual-hosted git repository.
ppawar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new a66a73135 ATLAS-5127: [REACT UI] In Lineage, Changing Depth throws
'Internal Error' message (#461)
a66a73135 is described below
commit a66a731352045ea9e11f272bb47ae95944e27924
Author: Prasad Pawar <[email protected]>
AuthorDate: Fri Sep 26 14:44:34 2025 +0530
ATLAS-5127: [REACT UI] In Lineage, Changing Depth throws 'Internal Error'
message (#461)
---
.../DetailPage/EntityDetailTabs/LineageTab.tsx | 24 +++++++++++++---------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/dashboard/src/views/DetailPage/EntityDetailTabs/LineageTab.tsx
b/dashboard/src/views/DetailPage/EntityDetailTabs/LineageTab.tsx
index 74f14ed44..f8b24011a 100644
--- a/dashboard/src/views/DetailPage/EntityDetailTabs/LineageTab.tsx
+++ b/dashboard/src/views/DetailPage/EntityDetailTabs/LineageTab.tsx
@@ -81,13 +81,13 @@ const LineageTab = ({ entity, isProcess }: any) => {
let lineageOnDemandPayload = {};
let relationsOnDemand = {};
const optionsVal = [
- { label: 3 },
- { label: 6 },
- { label: 9 },
- { label: 12 },
- { label: 15 },
- { label: 18 },
- { label: 21 }
+ { label: "3" },
+ { label: "6" },
+ { label: "9" },
+ { label: "12" },
+ { label: "15" },
+ { label: "18" },
+ { label: "21" }
];
let nodeCount = [3, 6, lineageNodeCount];
let nodeCountArray = [...new Set(nodeCount)];
@@ -124,7 +124,7 @@ const LineageTab = ({ entity, isProcess }: any) => {
const [currentPathChecked, setCurrentPathChecked] = useState(true);
const [checkedDeletedEntity, setCheckedDeletedEntity] = useState(false);
const [nodeDetailsChecked, setNodeDetailsChecked] = useState(false);
- const [value, setValue] = useState<any>({ label: 3 });
+ const [value, setValue] = useState<any>({ label: "3" });
const [nodeValue, setNodeValue] = useState<any>(3);
const [drawerOpen, setDrawerOpen] = useState(false);
const [typeValue, setTypeValue] = useState("");
@@ -585,15 +585,19 @@ const LineageTab = ({ entity, isProcess }: any) => {
};
const handleChange = (newValue: any) => {
+ const depthNum = parseInt(newValue, 10);
+ if (Number.isNaN(depthNum)) {
+ return;
+ }
if (!isLineageOnDemandEnabled) {
fetchGraph({
- queryParam: { depth: parseInt(newValue) },
+ queryParam: { depth: depthNum },
legends: false
});
}
if (isLineageOnDemandEnabled) {
- initialQueryObj[this.guid].depth = lineageDepth;
+ initialQueryObj[guid].depth = depthNum;
fetchGraph({
queryParam: initialQueryObj,
legends: false