-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(#7338): Persisted styles correctly apply to StackedPlotItem
s on mount
#7341
Conversation
Current Playwright Test Results Summary✅ 15 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 01/08/2024 09:31:52am UTC) Run DetailsRunning Workflow e2e-couchdb on Github Actions Commit: b952990 Started: 01/08/2024 09:29:59am UTC
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Main Tree Creating a child object on one tab and expanding its parent on the other shows the correct composition @couchdb @2p
Retry 1 • Initial Attempt |
0% (0)0 / 23 runsfailed over last 7 days |
4.35% (1)1 / 23 runflaked over last 7 days |
Current Playwright Test Results Summary
✅ 173 Passing -
Run may still be in progress, this comment will be updated as current testing workflow or job completes...
(Last updated on 01/08/2024 09:31:52am UTC)
⚠️ Flakes
📄 functional/plugins/styling/stackedPlotStyling.e2e.spec.js • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Stacked Plot styling styling the overlay plot properly applies the styles to all containers
Retry 1 • Initial Attempt |
31.58% (12)12 / 38 runsfailed over last 7 days |
2.63% (1)1 / 38 runflaked over last 7 days |
📄 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 2 • Retry 1 • Initial Attempt |
1.82% (1)1 / 55 runfailed over last 7 days |
20% (11)11 / 55 runsflaked 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 1 • Initial Attempt |
2.08% (1)1 / 48 runfailed over last 7 days |
60.42% (29)29 / 48 runsflaked over last 7 days |
📄 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 1 • Initial Attempt |
4.08% (2)2 / 49 runsfailed over last 7 days |
53.06% (26)26 / 49 runsflaked over last 7 days |
e2e/tests/functional/plugins/styling/stackedPlotStyling.e2e.spec.js
Outdated
Show resolved
Hide resolved
e2e/tests/functional/plugins/styling/stackedPlotStyling.e2e.spec.js
Outdated
Show resolved
Hide resolved
hexToRGB(setBorderColor), | ||
hexToRGB(setBackgroundColor), | ||
hexToRGB(setTextColor), | ||
page.getByLabel('Plot Container Style Target').first() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7341 +/- ##
==========================================
- Coverage 55.78% 55.46% -0.32%
==========================================
Files 657 657
Lines 26203 26173 -30
Branches 2549 2546 -3
==========================================
- Hits 14618 14518 -100
- Misses 10881 10954 +73
+ Partials 704 701 -3
*This pull request uses carry forward flags. Click here to find out more.
... and 22 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@@ -78,7 +85,7 @@ export default { | |||
PlotLegend | |||
}, | |||
mixins: [stalenessMixin], | |||
inject: ['openmct', 'domainObject', 'path'], | |||
inject: ['openmct', 'domainObject'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't used so i removed it
}; | ||
}, | ||
watch: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no more need for this since we pass them all as props directly
this.subscribeToStaleness(object, (stalenessResponse) => { | ||
this.updateComponentProp('isStale', stalenessResponse.isStale); | ||
}); | ||
this.subscribeToStaleness(object); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to set with the callback since the mixin already provides and updates isStale
openmct: this.openmct, | ||
domainObject: this.childObject | ||
}; | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why isn't this line covered
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage metrics are out of whack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love all the deleted code @ozyx - good work!
Before:
Screen.Recording.2024-01-08.at.10.43.06.AM.mov
After:
Closes #7338
Styles weren't being applied to StackedPlotItems correctly because we would manually mount them (using
Vue.createApp
). This PR updatesStackedPlotItem
to usePlot
s directly in the template (since onlyPlots
end up in StackedPlots anyway, we don't need to do anything dynamic).Also fixes a small inconsistency where staleness styling wasn't being applied over custom border color styles for Stacked Plot Items.
Describe your changes:
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist