-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Clear active role if no longer in available roles #7345
Clear active role if no longer in available roles #7345
Conversation
Current Playwright Test Results Summary✅ 176 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 01/11/2024 10:34:31am UTC)
|
|
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 1 • Initial Attempt |
3.85% (3)3 / 78 runsfailed over last 7 days |
38.46% (30)30 / 78 runsflaked 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 1 • Initial Attempt |
5.63% (4)4 / 71 runsfailed over last 7 days |
50.70% (36)36 / 71 runsflaked 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 Mouse Wheel to zoom in and out of latest image
Retry 1 • Initial Attempt |
0% (0)0 / 63 runsfailed over last 7 days |
26.98% (17)17 / 63 runsflaked over last 7 days |
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/11/2024 10:34:31am UTC)
Run Details
Running Workflow e2e-couchdb on Github Actions
Commit: 8bd08a9
Started: 01/10/2024 05:03:56pm UTC
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7345 +/- ##
==========================================
- Coverage 55.89% 55.83% -0.07%
==========================================
Files 659 659
Lines 26243 26247 +4
Branches 2549 2550 +1
==========================================
- Hits 14669 14654 -15
- Misses 10869 10884 +15
- Partials 705 709 +4
... and 10 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
// change active role in local storage to "apple_role", a bogus role not in the list of available roles | ||
await page.evaluate(() => { | ||
const openmct = window.openmct; | ||
openmct.user.setActiveRole('apple_role'); |
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.
super cool
@michaelrogers Ah, I tested this with YAMCS, which gives a longer delay for the UserAPI to load due to network delays. If using ExampleUserProvider, it looks there's a race condition between MCT loading and the UserIndicator. Waiting to check MCT to load resolves this: Screen.Recording.2024-01-16.at.12.45.40.PM.mov |
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.
These changes look great. Ready for merging. 🤖
Closes #7280
Describe your changes:
When the active role is no longer contained in the available roles for a user, clear it. This triggers the normal logic to either prompt the user for a role selection (if more than 1 available role), or simply selecting a single role (if we only have one possible available role).
Screen.Recording.2024-01-08.at.1.00.39.PM.mov
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist