-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-45120][UI] Upgrade d3 from v3 to v7(v7.8.5) and apply api changes in UI #42879
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
Conversation
|
While you're at it, lets put the latest d3 license text from https://github.com/d3/d3/blob/main/LICENSE into https://github.com/apache/spark/blob/master/licenses-binary/LICENSE-d3.min.js.txt and also https://github.com/apache/spark/blob/master/licenses/LICENSE-d3.min.js.txt |
|
Thank you very much @srowen for the reminder. I also updated LICENSE* files |
srowen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending tests
|
thanks @srowen for the review, merged to master |
|
After this PR is merged, the ChromeUISeleniumSuite will fail in testing. after revert this one , the test passed |
|
I will take a look |
|
Hi, @HyukjinKwon the given example seems not to be a spark view? |
|
Oh the graphs are the same ones. Let me try to reproduce in pure OSS Spark. In any event, seems like testing fails: #42879 (comment) |
|
For now, please ignore it. I will try to get a reproducer |
…pply api changes in UI ### What changes were proposed in this pull request? This PR is a follow-up of SPARK-45120 to cover the missing cases, and then fix test failures reported by SPARK-45150 It also brings back #42879 ### Why are the changes needed? bugfix ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? tested with the excluded CI tests bellow ``` [info] ChromeUISeleniumSuite: Starting ChromeDriver 117.0.5938.62 (25a7172909a4cba7355365cf424d7d7eb35231f4-refs/branch-heads/5938{#1146}) on port 12624 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. [info] - SPARK-31534: text for tooltip should be escaped (1 second, 979 milliseconds) [info] - SPARK-31882: Link URL for Stage DAGs should not depend on paged table. (683 milliseconds) [info] - SPARK-31886: Color barrier execution mode RDD correctly (304 milliseconds) [info] - Search text for paged tables should not be saved (1 second, 307 milliseconds) [info] Run completed in 6 seconds, 702 milliseconds. [info] Total number of tests run: 4 [info] Suites: completed 1, aborted 0 [info] Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0 [info] All tests passed. ```` ### Was this patch authored or co-authored using generative AI tooling? no Closes #42907 from yaooqinn/SPARK-45150. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Kent Yao <yao@apache.org>

What changes were proposed in this pull request?
This PR upgrades d3 from v3 to v7(v7.8.5).
This PR also applies the API changes to our UI drawing. The related changes are listed below:
d3.transfromselection.on("mousemove", function(d) {
… do something with d3.event and d…
})
becomes:
selection.on("mousemove", function(event, d) {
… do something with event and d …
})
Most of these changes come from v4 and v6, a full list of changes can be found at https://github.com/d3/d3/blob/main/CHANGES.md
Why are the changes needed?
d3 v3 is very old(Feb 11, 2015), deprecated by some of its downstream that we depends on
Does this PR introduce any user-facing change?
no
How was this patch tested?
This PR was locally tested with
org.apache.spark.examples.streaming.SqlNetworkWordCountStreaming page loading
SQL page loading
Was this patch authored or co-authored using generative AI tooling?
no