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

Only load annotations in fixed time mode or frozen #6866

Conversation

scottbell
Copy link
Contributor

@scottbell scottbell commented Aug 1, 2023

Closes #6822

Describe your changes:

Only load annotations if in fixed time mode or frozen.

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 1, 2023 that may be closed by this pull request
7 tasks
@deploysentinel
Copy link

deploysentinel bot commented Aug 1, 2023

Current Playwright Test Results Summary

✅ 14 Passing

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

(Last updated on 08/03/2023 11:44:03am UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: 0227ca5

Started: 08/03/2023 11:42:10am UTC

View Detailed Build Results


Current Playwright Test Results Summary

✅ 134 Passing - ⚠️ 2 Flaky

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

(Last updated on 08/03/2023 11:44:03am UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: 0227ca5

Started: 08/03/2023 11:26:02am UTC

⚠️ Flakes

📄   functional/plugins/notebook/restrictedNotebook.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Restricted Notebook with a page locked and with an embed @addinit Disallows embeds to be deleted if page locked @addinit
Retry 1Initial Attempt
0% (0) 0 / 107 runs
failed over last 7 days
19.63% (21) 21 / 107 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
2.22% (3) 3 / 135 runs
failed over last 7 days
23.70% (32) 32 / 135 runs
flaked over last 7 days

View Detailed Build Results


@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #6866 (0227ca5) into master (676bb81) will increase coverage by 0.12%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #6866      +/-   ##
==========================================
+ Coverage   48.26%   48.38%   +0.12%     
==========================================
  Files         644      644              
  Lines       25636    25628       -8     
  Branches     2499     2496       -3     
==========================================
+ Hits        12373    12400      +27     
+ Misses      12787    12751      -36     
- Partials      476      477       +1     
Flag Coverage Δ *Carryforward flag
e2e-full 41.99% <ø> (-0.02%) ⬇️ Carriedforward from 1c83260
e2e-stable 56.68% <ø> (+0.33%) ⬆️
unit 38.75% <0.00%> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
src/plugins/plot/MctPlot.vue 0.27% <0.00%> (-0.01%) ⬇️
src/plugins/plot/chart/MctChart.vue 1.76% <0.00%> (+0.06%) ⬆️

... and 12 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 676bb81...0227ca5. Read the comment docs.

@scottbell scottbell requested review from ozyx and jvigliotta and removed request for jvigliotta August 1, 2023 15:06
@ozyx ozyx added this to the Target:3.0.0 milestone Aug 1, 2023
@scottbell scottbell changed the title 6822 major performance degradation when adding annotations to a plot Only load annotations in fixed time mode or frozen Aug 2, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 2, 2023
…ons-to-a-plot' of github.com:nasa/openmct into 6822-major-performance-degradation-when-adding-annotations-to-a-plot
@scottbell scottbell added pr:e2e:couchdb npm run test:e2e:couchdb and removed pr:e2e:couchdb npm run test:e2e:couchdb labels Aug 2, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 2, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 2, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 2, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 2, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 2, 2023
@scottbell scottbell marked this pull request as ready for review August 2, 2023 12:39
@ozyx ozyx removed this from the Target:3.0.0 milestone Aug 2, 2023
@ozyx ozyx added this to the Target:3.0.1 milestone Aug 2, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 2, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 2, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 3, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 3, 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.

LGTM

@@ -94,6 +98,13 @@ async function createDomainObjectWithDefaults(page, { type, name, parent = 'mine
await notesInput.fill(page.testNotes);
}

// If there are any further parameters, fill them in
for (const [key, value] of Object.entries(customParameters)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

oh sweet

@ozyx ozyx merged commit ee6ca11 into master Aug 3, 2023
@ozyx ozyx deleted the 6822-major-performance-degradation-when-adding-annotations-to-a-plot branch August 3, 2023 16:40
@akhenry
Copy link
Contributor

akhenry commented Aug 7, 2023

Created #6893 to also backmerge this into 3.0.1

scottbell added a commit that referenced this pull request Aug 8, 2023
* fix annotations load to not happen on start

* remove range checking per annotated point

* back to local variable

* reduce tagging size to improve reliability of test

* remove .only

* remove .only

* reduce hz rate for functional test and keep high frequency test in performance

* remove console.debugs

* this test runs pretty fast now

* fix network request tests to match new behavior
ozyx pushed a commit that referenced this pull request Aug 8, 2023
#6902)

Only load annotations in fixed time mode or frozen (#6866)

* fix annotations load to not happen on start

* remove range checking per annotated point

* back to local variable

* reduce tagging size to improve reliability of test

* remove .only

* remove .only

* reduce hz rate for functional test and keep high frequency test in performance

* remove console.debugs

* this test runs pretty fast now

* fix network request tests to match new behavior
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.

Major performance degradation when adding annotations to a plot
3 participants