-
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
Extend Site Health info for Dashboard Sharing #4534
Comments
@aaemnnosttv Noting that James had created a similar issue, #4440, which requested these specific details in SH for support:
|
Thanks @bethanylang, I wasn't aware of that one but I see you've closed it so we'll plan on using this one going forward. This issue is just a placeholder for now but we'll be sure to work with you to clarify what exactly we want to include here before we start working on it 👍 |
@felixarntz I've added some initial ACs here to get this going, let me know what you think. As for capabilities, which do you think we should include here? I feel it would probably be too much to list out all of the read/manage/delegate meta caps for each shareable module (at least on individual lines). Maybe we could aggregate these into a single line for each? Site Health is limited to admins as well so we wouldn't be able to capture it for a view-only user. |
@aaemnnosttv ACs so far lgtm. I think it would be okay to omit the module-specific capabilities entirely, since to a degree they would be represented already indirectly by what roles each module is shared with. I think regarding capabilities for the current user it would be enough to ensure all higher-level (i.e. not meta capabilities) are present, including the newer ones like |
@felixarntz actually, regarding the capabilities, these are all currently included when dashboard sharing is enabled. Should we instead change this to limit the capabilities listed here to not include the meta caps as you said? |
In the bug bash review meeting yesterday, we agreed for this one to be a launch blocker, so I have updated to P0. It is currently in Backlog, so I have moved to ACs. Please let me know if there's any concerns with this. |
@aaemnnosttv Sorry for the late reply, I had missed your latest comment. That's neat that these are already included. In that case, I'd say no need to intentionally exclude them. I don't think they're as critical, but arguably for Site Health the more information the better. |
I added another row to list recoverable modules but otherwise this should be good to go 👍 |
IB ✅ |
@asvinb please note the change to the label for management as this has been changed in the UI as well. |
QA Update: ✅Verified:
|
Feature Description
Site Kit's site health report contains valuable information for our support team to help users troubleshoot problems they are experiencing. Including dashboard sharing configuration in the report will be essential to providing support once the feature is rolled out.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
If
dashboardSharing
is enabled, Site Kit's site health information should be extended with the following informationRecoverable Modules: {comma-separated list of recoverable module names}
{Module Name} Shared Roles: {comma-separated list of role names}
If there are no shared roles, use
None
(be sure to use proper i18n, e.g. "Active Modules"){Module Name} Management: {"Owner" or "All admins signed in with Google"}
owner
if noneImplementation Brief
Debug_Data.php
:get_fields()
method, after the call toget_active_modules_field()
, add a call to a new methodget_recoverable_modules_field()
that adds recoverable modules to$fields
array as per the AC.get_active_modules_field()
. UseModules::get_recoverable_modules()
and format the modules as per the AC.get_module_sharing_settings_fields()
and fetch all shareable modules usingModules::get_shareable_modules()
. For each of these modules, create two arrays, each containing thelabel
,value
anddebug
keys. The first array will contain the Shared Roles and the second should contain the Management setting, formatted as per the AC. To find the shared roles and management settings, useModule_Sharing_Settings::get()
. Return an array of all the arrays generated above (2 arrays per module). Essentially, the resultant array should be formatted such that it can be directly used in thearray_merge()
call within theget_fields()
method. Merge the new array of fields between the existing$fields
and$this->get_module_fields()
within thatarray_merge()
. This will add 2 new rows for every shareable module as per the AC.Test Coverage
Debug_DataTest.php
will have to be updated to cater for the new debug fields.QA Brief
dashboardSharing
feature flag.Tools -> Site Health
) -> Site Kit by Google.Changelog entry
The text was updated successfully, but these errors were encountered: