Skip to content

Commit

Permalink
fix(dependencies): switch from dagre-d3 to dagre-d3-es (#1842)
Browse files Browse the repository at this point in the history
og commit: switch from dagre-d3 to dagre-d3-es.
cherry-pick msg: updated changes un QueryPlanView and QueryStageView
---------

Co-authored-by: Shahad <[email protected]>
  • Loading branch information
Shahad Shamsan and sh-shamsan committed Nov 28, 2024
1 parent 4bea0a1 commit 5c9ec2f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 281 deletions.
2 changes: 1 addition & 1 deletion presto-ui/src/components/LivePlan.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import React from "react";
import ReactDOMServer from "react-dom/server";
import * as dagreD3 from "dagre-d3";
import * as dagreD3 from "dagre-d3-es";
import * as d3 from "d3";

import {formatRows, getStageStateColor, initializeGraph, initializeSvg, truncateString} from "../utils";
Expand Down
2 changes: 1 addition & 1 deletion presto-ui/src/components/QueryPlanView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { clsx } from 'clsx';
import type { StageNodeInfo } from './LivePlan';
import { StageStatistics, PlanNode } from './LivePlan';
import ReactDOMServer from "react-dom/server";
import * as dagreD3 from "dagre-d3";
import * as dagreD3 from "dagre-d3-es";
import * as d3 from "d3";
import { formatRows, getStageStateColor, initializeGraph } from "../utils";

Expand Down
2 changes: 1 addition & 1 deletion presto-ui/src/components/QueryStageView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { clsx } from 'clsx';
import React from "react";
import { createRoot } from 'react-dom/client';
import ReactDOMServer from "react-dom/server";
import * as dagreD3 from "dagre-d3";
import * as dagreD3 from "dagre-d3-es";
import * as d3 from "d3";


Expand Down
2 changes: 1 addition & 1 deletion presto-ui/src/components/StageDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import React from "react";
import ReactDOM from "react-dom";
import { createRoot } from 'react-dom/client';
import ReactDOMServer from "react-dom/server";
import * as dagreD3 from "dagre-d3";
import * as dagreD3 from "dagre-d3-es";
import * as d3 from "d3";

import {
Expand Down
4 changes: 2 additions & 2 deletions presto-ui/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@prestodb/presto-js-client": "^1.0.0",
"antlr4": "^4.13.1-patch-1",
"d3": "^7.9.0",
"dagre-d3": "^0.6.4",
"dagre-d3-es": "^7.0.10",
"clsx": "^2.1.0",
"copy-webpack-plugin": "^12.0.2",
"prismjs": "^1.29.0",
Expand All @@ -45,5 +45,5 @@
"resolutions": {
"d3-color": "3.1.0"
}

}
2 changes: 1 addition & 1 deletion presto-ui/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
//@flow

import * as dagreD3 from "dagre-d3";
import * as dagreD3 from "dagre-d3-es";
import * as d3 from "d3";

// Query display
Expand Down
Loading

0 comments on commit 5c9ec2f

Please sign in to comment.