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

Gauge fixes for NaN and composition policy #5608

Merged
merged 24 commits into from
Nov 16, 2023
Merged

Gauge fixes for NaN and composition policy #5608

merged 24 commits into from
Nov 16, 2023

Conversation

charlesh88
Copy link
Contributor

@charlesh88 charlesh88 commented Aug 4, 2022

Closes #5536
Closes #5538

Describe your changes:

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?
  • Changes appear not to be breaking changes?
  • Appropriate unit tests included?
  • Code style and in-line documentation are appropriate?
  • Commit messages meet standards?
  • 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)

- Significant changes to code flow for better handling of missing telemetry values; closes #5538.
- Changes to flow to handle range display when updating composition and when ranges are set by limits.
- Added `GaugeCompositionPolicy.js`; closes #5536.
- Code cleanup, linting.
@codecov
Copy link

codecov bot commented Aug 4, 2022

Codecov Report

Merging #5608 (5a561be) into master (cdd772a) will decrease coverage by 14.13%.
Report is 1 commits behind head on master.
The diff coverage is n/a.

❗ Current head 5a561be differs from pull request most recent head 2c48b0d. Consider uploading reports for the commit 2c48b0d to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #5608       +/-   ##
===========================================
- Coverage   55.96%   41.83%   -14.13%     
===========================================
  Files         653      415      -238     
  Lines       26213    12960    -13253     
  Branches     2525        0     -2525     
===========================================
- Hits        14669     5422     -9247     
+ Misses      10839     7538     -3301     
+ Partials      705        0      -705     
Flag Coverage Δ
e2e-full 41.83% <ø> (-0.09%) ⬇️
e2e-stable ?
unit ?
Files Coverage Δ
src/plugins/gauge/GaugePlugin.js 20.00% <ø> (-20.00%) ⬇️

... and 523 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 a914e4f...2c48b0d. Read the comment docs.

Copy link
Contributor

@scottbell scottbell left a comment

Choose a reason for hiding this comment

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

Good work @charlesh88! I had a few comments below

@akhenry akhenry removed their request for review August 15, 2022 21:09
@akhenry
Copy link
Contributor

akhenry commented Oct 17, 2022

@charlesh88 This has been reviewed, waiting for followup from you.

@davetsay davetsay added this to the Target:2.2.0 milestone Jan 30, 2023
@davetsay
Copy link
Contributor

@charlesh88 to review comments by @scottbell

@unlikelyzero unlikelyzero removed this from the Target:2.2.0 milestone Mar 14, 2023
- Merge master, resolve conflicts.
@deploysentinel
Copy link

deploysentinel bot commented Oct 24, 2023

Current Playwright Test Results Summary

✅ 161 Passing - ⚠️ 2 Flaky

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

(Last updated on 11/16/2023 06:40:32pm UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: 2c48b0d

Started: 11/16/2023 06:34:15pm 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 / 56 runs
failed over last 7 days
57.14% (32) 32 / 56 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Snapshot image tests Can drop an image onto a notebook and create a new entry
Retry 1Initial Attempt
0% (0) 0 / 57 runs
failed over last 7 days
73.68% (42) 42 / 57 runs
flaked over last 7 days

View Detailed Build Results


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 11/16/2023 06:40:32pm UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: 2c48b0d

Started: 11/16/2023 06:34:59pm UTC

⚠️ Flakes

📄   functional/couchdb.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
CouchDB Status Indicator with mocked responses @couchdb Shows red if not connected
Retry 1Initial Attempt
0% (0) 0 / 32 runs
failed over last 7 days
21.88% (7) 7 / 32 runs
flaked over last 7 days

View Detailed Build Results


@charlesh88 charlesh88 enabled auto-merge (squash) October 24, 2023 23:34
@charlesh88
Copy link
Contributor Author

@ozyx Says run lint fix on this, and it should go right in.

@ozyx ozyx self-requested a review November 6, 2023 22:59
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.

@charlesh88 to add an e2e test

- Added test for 'Gauge does not display NaN when data not available'.
- Refined test.
- Refined 'NaN' test.
- Added test for 'Gauge enforces composition policy';
- Fix linting issues.
@charlesh88 charlesh88 requested a review from ozyx November 7, 2023 21:44
@charlesh88
Copy link
Contributor Author

@ozyx e2e tests added, and files have been linted. Ready for a final look.

@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Nov 7, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Nov 7, 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! I've got some suggestions to improve the e2e tests.

e2e/tests/functional/plugins/gauge/gauge.e2e.spec.js Outdated Show resolved Hide resolved
e2e/tests/functional/plugins/gauge/gauge.e2e.spec.js Outdated Show resolved Hide resolved
e2e/tests/functional/plugins/gauge/gauge.e2e.spec.js Outdated Show resolved Hide resolved
e2e/tests/functional/plugins/gauge/gauge.e2e.spec.js Outdated Show resolved Hide resolved
src/plugins/gauge/GaugeCompositionPolicy.js Show resolved Hide resolved
src/plugins/gauge/GaugeCompositionPolicy.js Outdated Show resolved Hide resolved
src/plugins/gauge/GaugePlugin.js Outdated Show resolved Hide resolved
- Suggested changes from PR review.
- Suggested changes from PR review.
Copy link
Contributor

@scottbell scottbell left a comment

Choose a reason for hiding this comment

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

Nice work @charlesh88, and thank you for adding the tests. Below are the functionality results.

For the composition issue, it looks resolved. Here's before:

Composition-before.mov

and after it's properly preventing non-telemetry from being dropped on it:

Composition-after.mov

It still does allow non-numerical telemetry points (e.g., events), but not sure that should hold up the PR.

The NaN issue seems already resolved? Here's before with a delayed Sine Wave Generator set to a 3s delay:

NaN-before.mov

And here's after which is showing the same behavior:

NaN-after.mov

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.

Looks great! Just one small fix to get the e2e test passing

@ozyx ozyx disabled auto-merge November 16, 2023 18:11
@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Nov 16, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Nov 16, 2023
@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Nov 16, 2023
@ozyx ozyx enabled auto-merge (squash) November 16, 2023 18:32
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Nov 16, 2023
@ozyx ozyx merged commit 15ee830 into master Nov 16, 2023
12 of 13 checks passed
@ozyx ozyx deleted the fix-gauge-5538 branch November 16, 2023 18:40
@unlikelyzero unlikelyzero added this to the Target:3.2.0 milestone Nov 16, 2023
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.

Gauge displays NaN when telemetry not available Gauge allows bad drag and drop
6 participants