-
Notifications
You must be signed in to change notification settings - Fork 22
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
8925: fix sidebar not being updated on deployment group membership removal #8932
Conversation
@@ -74,9 +84,6 @@ async function activateDeployment({ | |||
isReactivate, | |||
}), | |||
); | |||
// Ensure the mod state is persisted before continuing so the content script can immediately pick up the changes | |||
// when activating a deployment from the extension console. See: https://github.com/pixiebrix/pixiebrix-extension/issues/8744 | |||
await persistor.flush(); |
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.
Another quick refactor here: Now we call flush only once after activating all the deployed mods (rather than after activating each one.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8932 +/- ##
==========================================
+ Coverage 74.24% 74.60% +0.35%
==========================================
Files 1332 1336 +4
Lines 40817 41202 +385
Branches 7634 7704 +70
==========================================
+ Hits 30306 30737 +431
+ Misses 10511 10465 -46 ☔ View full report in Codecov by Sentry. |
Playwright test resultsDetails Open report ↗︎ Flaky testschromeSetup › setup/unaffiliated.setup.ts › authenticate with unaffiliated user Skipped testschrome › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor |
When the PR is merged, the first loom link found on this PR will be posted to |
…moval (#8932) * fix sidebar not being updated on deployment group membership removal * skip test
* fix this thing * wrap mutationobserver in feature flag * 8925: fix sidebar not being updated on deployment group membership removal (#8932) * fix sidebar not being updated on deployment group membership removal * skip test * #8933: adds mousedown handler to solve document mousedown handler bug (#8931) * adds mousedown handler to solve document mousedown handler bug * explain the mousedown event * Define report mode constants (#8926) * #8421: default sidebar to a panel for mod that set the badge (#8918) * Fix beta starter brick feature flag detection (#8929) * Prevent crash with `getContexts` and fix the window reference in `reportError` (#8934) * don't reference window from a background function * remove dangerous getContexts call from offscreen doc logic * fix logic issues * add some debug logs * cleanup * more specific version --------- Co-authored-by: Ben Loe <[email protected]> * add e2e test * remove page.pause in test * revert reportError noop * Rename flag, and change it to enable the hack. * switching to using jquery initialize * rename --------- Co-authored-by: Eduardo <[email protected]> Co-authored-by: Graham Langford <[email protected]> Co-authored-by: Todd Schiller <[email protected]> Co-authored-by: Ben Loe <[email protected]> Co-authored-by: Ben Loe <[email protected]>
* fix this thing * wrap mutationobserver in feature flag * 8925: fix sidebar not being updated on deployment group membership removal (#8932) * fix sidebar not being updated on deployment group membership removal * skip test * #8933: adds mousedown handler to solve document mousedown handler bug (#8931) * adds mousedown handler to solve document mousedown handler bug * explain the mousedown event * Define report mode constants (#8926) * #8421: default sidebar to a panel for mod that set the badge (#8918) * Fix beta starter brick feature flag detection (#8929) * Prevent crash with `getContexts` and fix the window reference in `reportError` (#8934) * don't reference window from a background function * remove dangerous getContexts call from offscreen doc logic * fix logic issues * add some debug logs * cleanup * more specific version --------- Co-authored-by: Ben Loe <[email protected]> * add e2e test * remove page.pause in test * revert reportError noop * Rename flag, and change it to enable the hack. * switching to using jquery initialize * rename --------- Co-authored-by: Eduardo <[email protected]> Co-authored-by: Graham Langford <[email protected]> Co-authored-by: Todd Schiller <[email protected]> Co-authored-by: Ben Loe <[email protected]> Co-authored-by: Ben Loe <[email protected]>
What does this PR do?
Discussion
This behavior change will automatically reload all tabs when the user loads the extension console with activated mods which should be removed.
Demo
https://www.loom.com/share/a4459c4bba704a29af1226d8bf54ffcc
Future Work
Checklist
Leave all that are relevant and check off as completed
For more information on our expectations for the PR process, see the
code review principles doc