-
Notifications
You must be signed in to change notification settings - Fork 293
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
Dashboard sharing confirmation appears in settings when no roles are shared for module #6633
Comments
Hi @sashadoes, thanks for drafting this IB, however the approach taken is not quite correct. The concept of a "shared ownership" module is separate to whether the module has been shared with other roles. Shared ownership modules are covered in the Design Doc, and specifically only PageSpeed Insights is a shared ownership module now that Idea Hub has been removed. Instead, in order to check if a module has been shared with any roles, the There's an additional detail that needs to be considered for the implementation, which is that Dashboard Sharing data is not currently available on the Settings page. This is because the So in order for |
@bethanylang let's try to include this in 1.102, it shouldn't be a big effort and we shouldn't delay it anymore. |
IB ✅ |
QA Update ✅
Recording.415.mp4 |
Bug Description
When a module is shared via dashboard sharing, if another admin with access to that module's entity attempts to change its configured entity, a notice is shown in the footer of the settings edit view to inform the user that by saving they will be sharing the data for this module through their Google account since they will become the new module owner.
This is only relevant for a module which is currently being shared with one or more roles, and of course if the current user is not already the module owner. Currently this notice is being shown even when no shared roles are configured for a module.
Steps to reproduce
Screenshots
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
/assets/js/components/settings/EntityOwnershipChangeNotice.js
:getModuleStoreNames
, destructure thegetSharedRoles
selector as well.storeNames
, call thegetSharedRoles
selector passing thecurrentSlug
.storeName
to theacc
if there aresharedRoles
.getSharedRoles
selector above relies onglobal._googlesitekitDashboardSharingData
which is not available on the Settings pages. So inAssets.php
, in theget_assets()
method, when registeringgooglesitekit-settings
, pass thedashboard-sharing
context instead of thedashboard
context to theget_asset_dependencies()
method.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: