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

Plan rendering inside a timestrip #6852

Merged
merged 4 commits into from
Jul 28, 2023
Merged

Conversation

shefalijoshi
Copy link
Contributor

@shefalijoshi shefalijoshi commented Jul 28, 2023

Closes #6296

Describe your changes:

Use the width and height of the container of the plan to set the activity widths and now markers
TimeSystemAxis always uses the value of global clock now()

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)

@shefalijoshi shefalijoshi requested a review from ozyx July 28, 2023 06:02
@deploysentinel
Copy link

deploysentinel bot commented Jul 28, 2023

Current Playwright Test Results Summary

✅ 14 Passing - ⚠️ 2 Flaky

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

(Last updated on 07/28/2023 04:50:21pm UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: b68f179

Started: 07/28/2023 04:46:37pm 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 1Initial Attempt
5.41% (2) 2 / 37 runs
failed over last 7 days
13.51% (5) 5 / 37 runs
flaked over last 7 days

📄   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 / 37 runs
failed over last 7 days
8.11% (3) 3 / 37 runs
flaked over last 7 days

View Detailed Build Results


Current Playwright Test Results Summary

✅ 131 Passing - ⚠️ 4 Flaky

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

(Last updated on 07/28/2023 04:50:21pm UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: b68f179

Started: 07/28/2023 04:44:05pm UTC

⚠️ Flakes

📄   functional/plugins/imagery/exampleImagery.e2e.spec.js • 3 Flakes

Top 1 Common Error Messages

null

3 Test Cases Affected

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 1Initial Attempt
14.55% (8) 8 / 55 runs
failed over last 7 days
16.36% (9) 9 / 55 runs
flaked over last 7 days
Example Imagery in Display Layout View Large action pauses imagery when in realtime and returns to realtime
Retry 1Initial Attempt
2.13% (1) 1 / 47 run
failed over last 7 days
10.64% (5) 5 / 47 runs
flaked over last 7 days
Example Imagery in Display Layout Toggle layer visibility by clicking on label
Retry 1Initial Attempt
0% (0) 0 / 45 runs
failed over last 7 days
6.67% (3) 3 / 45 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
5.13% (4) 4 / 78 runs
failed over last 7 days
2.56% (2) 2 / 78 runs
flaked over last 7 days

View Detailed Build Results


@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #6852 (b68f179) into master (d4e51cb) will increase coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #6852      +/-   ##
==========================================
+ Coverage   48.20%   48.22%   +0.01%     
==========================================
  Files         643      643              
  Lines       25615    25618       +3     
  Branches     2509     2507       -2     
==========================================
+ Hits        12347    12353       +6     
+ Misses      12791    12790       -1     
+ Partials      477      475       -2     
Flag Coverage Δ *Carryforward flag
e2e-full 41.97% <ø> (ø) Carriedforward from 7c58b19
e2e-stable 56.32% <ø> (+0.03%) ⬆️
unit 38.73% <0.00%> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
src/plugins/plan/components/Plan.vue 56.57% <0.00%> (+0.63%) ⬆️
src/plugins/timeline/TimelineViewLayout.vue 1.51% <0.00%> (-0.13%) ⬇️
src/ui/components/TimeSystemAxis.vue 6.66% <0.00%> (+0.31%) ⬆️

... and 2 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 d4e51cb...b68f179. Read the comment docs.


if (!clientHeight) {
//this is a hack - need a better way to find the parent of this component
let parent = this.openmct.layout.$refs.browseObject.$el;
let parent = this.$el.closest('.c-object-view');
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use $parent here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No we can't.

Copy link
Contributor

Choose a reason for hiding this comment

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

What’s the issue here?

@scottbell
Copy link
Contributor

I'd tried adding a plan into a timestrip into the first column of a Flexible Display Layout with three columns, and then the plan object into the last two columns and got this:
image

Is this expected?

@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Jul 28, 2023
@ozyx ozyx added this to the Target:3.0.0 milestone Jul 28, 2023
@ozyx ozyx added pr:e2e:couchdb npm run test:e2e:couchdb and removed pr:e2e:couchdb npm run test:e2e:couchdb labels Jul 28, 2023
@ozyx ozyx enabled auto-merge (squash) July 28, 2023 16:42
@ozyx ozyx disabled auto-merge July 28, 2023 16:46
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Jul 28, 2023
@@ -92,6 +94,10 @@ export default {
this.composition.on('reorder', this.reorder);
this.composition.load();
}

this.handleContentResize = _.debounce(this.handleContentResize, 500);
Copy link
Contributor

Choose a reason for hiding this comment

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

@shefalijoshi
Copy link
Contributor Author

Yes, this looks fine. The horizontal width will determine the size of the activity rectangles.

@shefalijoshi shefalijoshi merged commit 3c2b032 into master Jul 28, 2023
@shefalijoshi shefalijoshi deleted the fix-plan-in-timestrip branch July 28, 2023 17:24
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.

Plan is rendering incorrectly when in a Time Strip in a layout
5 participants