-
Notifications
You must be signed in to change notification settings - Fork 286
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
Implement RRM PHP module foundation #8785
Comments
AC ✅ |
Hi @nfmohit, while working on this IB, I realized that we should move a few points around the ACs to make things a bit smother and self contained. Namely,
I'm sending this back to AC to you for another look over, let me know what you think, and if you agree, make the amendments in AC and send it back to me straight to IB again. Sorry for not catching this earlier while doing ACR. Hope you don't mind. <3 |
Thank you @kuasha420. As discussed internally, the first point will be handled by #8793, but the other points have been addressed. This is back with you in IB. |
The IB looks nice, thanks @kuasha420 . Do you think a Note: The estimate may change based on the update. |
Thank you @nfmohit. Sorry for forgetting about tests! I've added your suggestion, another point about checking the existence of RRM Module when the feature flag is active, and bumped up the estimate. Cheers. |
Thanks @kuasha420 ! IB ✅ |
QA Update
|
@kelvinballoo, the scopes cannot be tested with the changes made in this ticket. However, you can view the code and the PHP unit tests to verify the necessary scope. Code Changes: site-kit-wp/includes/Modules/Reader_Revenue_Manager.php Lines 48 to 52 in 110a5b0
PHP Unit Test: site-kit-wp/tests/phpunit/integration/Modules/Reader_Revenue_ManagerTest.php Lines 62 to 69 in e25f7e3
|
QA Update ✅Thanks for the clarification @hussain-t . This is good to go.
|
Feature Description
The PHP module foundation should be implemented for the Reader Revenue Manager module with a slug of
reader-revenue-manager
.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Modules\Reader_Revenue_Manager
should be added extendingCore\Modules\Module
.reader-revenue-manager
.https://readerrevenue.withgoogle.com/
.https://www.googleapis.com/auth/subscribewithgoogle.publications.readonly
scope.Core\Modules\Modules
only if therrmModule
feature flag is enabled.Implementation Brief
includes/Modules/Reader_Revenue_Manager.php
:Google\Site_Kit\Modules\Reader_Revenue_Manager
class will reside here.Google\Site_Kit\Core\Modules\Module
and implementGoogle\Site_Kit\Core\Modules\Module_With_Scopes
interface.MODULE_SLUG
const with the value from AC.setup_info
function.order
to5
so it is placed between PageSpeed Insights and Tag Manager (alphabetical sorting, )get_scopes
function.includes/Core/Modules/Modules.php
:Reader_Revenue_Manager
module to thecore_modules
whenrrmModule
is enabled. See here for example.Test Coverage
Google\Site_Kit\Tests\Modules\Reader_Revenue_ManagerTest
class.get_scopes
function.test_magic_methods
to test basic module attributes. See similarly named tests for other modules for examples.rrmModule
feature flag is enabled inGoogle\Site_Kit\Tests\Core\Modules\ModulesTest
class.QA Brief
rrmModule
feature flag via the tester plugin.googlesitekit.data.select('core/modules').getModules()
googlesitekit.data.select('core/modules').getModule('reader-revenue-manager')
rrmModule
feature flag via the tester plugin.Changelog entry
The text was updated successfully, but these errors were encountered: