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

[Tooltips] Fixes for dictionary objects and self-referential objects #6916

Merged
merged 11 commits into from
Aug 17, 2023

Conversation

khalidadil
Copy link
Contributor

Closes #6810

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)

@khalidadil khalidadil linked an issue Aug 10, 2023 that may be closed by this pull request
7 tasks
@khalidadil khalidadil changed the title Bugfix/issue 6810 [Tooltips] Fixes for dictionary objects and self-referential objects Aug 10, 2023
@khalidadil khalidadil added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 10, 2023
@deploysentinel
Copy link

deploysentinel bot commented Aug 10, 2023

Current Playwright Test Results Summary

✅ 136 Passing - ⚠️ 4 Flaky

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

(Last updated on 08/17/2023 04:18:11pm UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: a364f2f

Started: 08/17/2023 04:12:21pm UTC

⚠️ Flakes

📄   functional/plugins/notebook/restrictedNotebook.e2e.spec.js • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Restricted Notebook with a page locked and with an embed @addinit Allows embeds to be deleted if page unlocked @addinit
Retry 1Initial Attempt
0% (0) 0 / 149 runs
failed over last 7 days
43.62% (65) 65 / 149 runs
flaked over last 7 days
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 / 148 runs
failed over last 7 days
41.22% (61) 61 / 148 runs
flaked over last 7 days

📄   functional/plugins/imagery/exampleImagery.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Example Imagery Object Can use independent time conductor to change time
Retry 2Retry 1Initial Attempt
4% (6) 6 / 150 runs
failed over last 7 days
6.67% (10) 10 / 150 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% (0) 0 / 180 runs
failed over last 7 days
55.56% (100) 100 / 180 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 08/17/2023 04:18:11pm UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: a364f2f

Started: 08/17/2023 02:33:43pm 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
11.67% (7) 7 / 60 runs
failed over last 7 days
26.67% (16) 16 / 60 runs
flaked over last 7 days

View Detailed Build Results


@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 10, 2023
@khalidadil khalidadil added the pr:e2e Automatically triggers e2e tests to run label Aug 10, 2023
@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #6916 (a364f2f) into master (99a3e3f) will decrease coverage by 1.44%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #6916      +/-   ##
==========================================
- Coverage   48.31%   46.88%   -1.44%     
==========================================
  Files         643      643              
  Lines       25700    25706       +6     
  Branches     2509     2509              
==========================================
- Hits        12417    12052     -365     
- Misses      12804    13174     +370     
- Partials      479      480       +1     
Flag Coverage Δ *Carryforward flag
e2e-full 42.07% <ø> (+0.05%) ⬆️ Carriedforward from 99a3e3f
e2e-stable 53.34% <0.00%> (-3.86%) ⬇️
unit 38.70% <0.00%> (-0.02%) ⬇️

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

Files Changed Coverage Δ
src/api/objects/ObjectAPI.js 84.54% <0.00%> (-8.55%) ⬇️
src/api/tooltips/ToolTipAPI.js 21.42% <0.00%> (-78.58%) ⬇️

... and 54 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 99a3e3f...a364f2f. Read the comment docs.

@github-actions github-actions bot removed the pr:e2e Automatically triggers e2e tests to run label Aug 10, 2023
@khalidadil khalidadil added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 11, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 11, 2023
@ozyx ozyx self-requested a review August 14, 2023 17:15
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.

Smoke tested this and seems to work well! I've left some suggestions mostly around increasing readability. I think we should also leave some comments throughout the function detailing what it's doing. Great work!

@khalidadil khalidadil requested a review from ozyx August 16, 2023 20:14
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. Great work!

}
telemetryPath.unshift(pathObject.name);
});
telemetryPath = telemetryPathObjects
Copy link
Contributor

Choose a reason for hiding this comment

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

beautiful!

@khalidadil khalidadil enabled auto-merge (squash) August 17, 2023 14:29
@khalidadil khalidadil added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 17, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 17, 2023
@ozyx ozyx added this to the Target:3.0.1 milestone Aug 17, 2023
@khalidadil khalidadil merged commit 3f80b53 into master Aug 17, 2023
@khalidadil khalidadil deleted the bugfix/issue-6810 branch August 17, 2023 16:18
khalidadil added a commit that referenced this pull request Aug 17, 2023
…6916)

* Fix getTelemetryPath to handle cases where parent is the same as the child, handle yamcs aggregate telemetry, and fix how identifiers are passed in

* Cleanup getTelemetryPath

* Switch to filter instead of forEach

* Get path item names

* Remove tooltips on scroll of tree

* Remove handing for scroll

* Allow break-words

* Cleanup
ozyx pushed a commit that referenced this pull request Aug 17, 2023
…referential objects (#6950)

[Tooltips] Fixes for dictionary objects and self-referential objects (#6916)

* Fix getTelemetryPath to handle cases where parent is the same as the child, handle yamcs aggregate telemetry, and fix how identifiers are passed in

* Cleanup getTelemetryPath

* Switch to filter instead of forEach

* Get path item names

* Remove tooltips on scroll of tree

* Remove handing for scroll

* Allow break-words

* Cleanup
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.

Issues with ctrl+hover gesture in plot legends
2 participants