Skip to content
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

Remove large series models from reactive data in plots #6961

Conversation

scottbell
Copy link
Contributor

@scottbell scottbell commented Aug 18, 2023

Closes #6879

Describe your changes:

  • Make legends a lot faster moving mouse around plot by removing reactive elements (~7x speedup).
  • Make annotation drawing and selection much faster (~6x speedup).

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?
  • Has associated issue been labelled unverified? (only applicable if this PR closes the issue)
  • Has associated issue been labelled bug? (only applicable if this PR is for a bug fix)

@scottbell scottbell linked an issue Aug 18, 2023 that may be closed by this pull request
@scottbell scottbell changed the title 6879 remove large series models from reactive data in plots Remove large series models from reactive data in plots Aug 18, 2023
@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Merging #6961 (a8fb727) into master (0be106f) will decrease coverage by 0.06%.
The diff coverage is 18.36%.

@@            Coverage Diff             @@
##           master    #6961      +/-   ##
==========================================
- Coverage   55.72%   55.66%   -0.06%     
==========================================
  Files         643      643              
  Lines       25726    25786      +60     
  Branches     2512     2517       +5     
==========================================
+ Hits        14335    14354      +19     
- Misses      10692    10736      +44     
+ Partials      699      696       -3     
Flag Coverage Δ *Carryforward flag
e2e-full 42.08% <ø> (+0.07%) ⬆️ Carriedforward from 0be106f
e2e-stable 57.01% <ø> (-0.16%) ⬇️
unit 49.41% <18.36%> (+0.05%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files Changed Coverage Δ
src/plugins/plot/MctPlot.vue 36.26% <11.11%> (-0.22%) ⬇️
src/plugins/plot/chart/MctChart.vue 46.68% <17.77%> (-1.69%) ⬇️
src/plugins/plot/legend/PlotLegendItemExpanded.vue 67.69% <20.00%> (+6.90%) ⬆️
...rc/plugins/plot/legend/PlotLegendItemCollapsed.vue 66.66% <26.66%> (+7.97%) ⬆️
src/plugins/plot/legend/PlotLegend.vue 63.46% <100.00%> (ø)

... and 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0be106f...a8fb727. Read the comment docs.

@deploysentinel
Copy link

deploysentinel bot commented Aug 18, 2023

Current Playwright Test Results Summary

✅ 14 Passing - ⚠️ 1 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 09/06/2023 07:51:09am UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: a8fb727

Started: 09/06/2023 07:48:08am UTC

⚠️ Flakes

📄   functional/plugins/displayLayout/displayLayout.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Display Layout When multiple plots are contained in a layout, we only ask for annotations once @couchdb
Retry 2Retry 1Initial Attempt
17.07% (7) 7 / 41 runs
failed over last 7 days
21.95% (9) 9 / 41 runs
flaked over last 7 days

View Detailed Build Results


Current Playwright Test Results Summary

✅ 138 Passing - ⚠️ 3 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 09/06/2023 07:51:09am UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: a8fb727

Started: 09/05/2023 05:15:34pm UTC

⚠️ Flakes

📄   functional/plugins/plot/logPlot.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Log plot tests Log Plot ticks are functionally correct in regular and log mode and after refresh
Retry 1Initial Attempt
2.30% (2) 2 / 87 runs
failed over last 7 days
42.53% (37) 37 / 87 runs
flaked over last 7 days

📄   functional/plugins/plot/tagging.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Plot Tagging Tags work with Overlay Plots
Retry 2Retry 1Initial Attempt
9.20% (8) 8 / 87 runs
failed over last 7 days
26.44% (23) 23 / 87 runs
flaked over last 7 days

📄   functional/planning/timelist.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Time List Create a Time List, add a single Plan to it and verify all the activities are displayed with no milliseconds
Retry 1Initial Attempt
0.85% (1) 1 / 118 run
failed over last 7 days
44.92% (53) 53 / 118 runs
flaked over last 7 days

View Detailed Build Results


@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 18, 2023
@scottbell scottbell marked this pull request as ready for review August 18, 2023 17:39
@scottbell scottbell requested review from ozyx and shefalijoshi August 18, 2023 17:39
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 18, 2023
@ozyx ozyx added this to the Target:3.1.0 milestone Aug 18, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 18, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 18, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 19, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 19, 2023
Copy link
Contributor

@ozyx ozyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work here! This is looking and working great overall, just had a couple of minor comments.

@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 29, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 29, 2023
Copy link
Contributor

@shefalijoshi shefalijoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far.
Will test a bit and approve.

@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 30, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 30, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 31, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 31, 2023
@ozyx ozyx requested a review from shefalijoshi September 1, 2023 00:57
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 1, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 1, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 4, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 4, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 4, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 4, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 6, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 6, 2023
Copy link
Contributor

@shefalijoshi shefalijoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work! Thank you!

Copy link
Contributor

@shefalijoshi shefalijoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When there are many series in an overlay plot, sometimes the wrong item is showing as removed from both the legend and the plot series list in the inspector. This seems like a pre-existing bug. I will create an issue for it.

@shefalijoshi shefalijoshi merged commit 8e917b2 into master Sep 6, 2023
@shefalijoshi shefalijoshi deleted the 6879-remove-large-series-models-from-reactive-data-in-plots branch September 6, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove large series models from reactive data in Plots
3 participants