-
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
Shared requests should not be attempted for recoverable modules #5383
Comments
IB ✅ |
@mohitwp this issue would have no effect on the sharing settings interface it only changes how requests are executed on the backend. @techanvil did something change around module recovery where the owner is no longer being updated? |
Nothing that I am aware of, I just tried recovering a module locally and the owner ID updated OK. |
After taking a closer look here, the problem is that while the module's owner is properly updated, the recovering user's capabilities are not updated to reflect this. This is why the settings show properly after a page refresh but not immediately after recovering the module. I've opened #5416 to address this. @mohitwp as mentioned before this is a related bug but caused by this issue. Thanks for raising it 👍 |
Thank you @aaemnnosttv QA Update ✅Verified
Recording.114.mp4 |
Bug Description
If a request for module data which is shared by its owner happens to be for a module which is also recoverable, it should not be attempted although this is currently what's happening.
Steps to reproduce
Screenshots
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Module::is_recoverable
method, similar tois_shareable
googlesitekit_is_module_recoverable
which defaults tofalse
and passes through its slug as the only extra parameterModules
to hook into this filter and run the callback through itsis_module_recoverable
methodModule::get_oauth_client_for_datapoint
to additionally require the module is not recoverable (using the new method) in order to return the owner oauth clientvalidate_base_scopes
) as a final check before returning, otherwise falling back to the default clientTest Coverage
is_recoverable
methodQA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: