-
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
Implement Thank with Google PHP module foundation #5364
Comments
@kuasha420, please, do not use "PR as IB" approach for regular tickets, we strongly discourage this approach even if a ticket seems pretty straightforward. IB ✔️ |
@eugene-manuilov Great point. I didn't really intend to include the PR in the IB and I was just going through the AC to see if there's anything additional that needs to be done. Added the draft PR as I already had done the initial changes and thought it could be a starting point. This one and #5365 was tricky as the AC was basically a high level IB. I will keep that in mind for future! Thanks 👍 |
@kuasha420 This is basically good to go, I just have one additional request that should be a super quick thing to add in a new PR: Apologies, I missed replacing the module description in the original ACs, which I've added to the ACs now. Could you open another PR (against |
@felixarntz Done. I've assigned it back to you. Do we need to go through QA again, I have added a QAB just in case but feel free to decide on it after merging. Cheers. (Also I don't think |
@kuasha420 Excellent, thanks for the quick PR! No need to go through QA again since this is literally just the single text string change :) |
We should implement the PHP module foundation for Thank with Google, for a new
thank-with-google
module. We do currently have asubscribe-with-google
module, which however is now indefinitely on hold, and the Thank with Google module has taken over as a priority. Furthermore, the foundation requirements for the two modules are quite similar.Therefore, we should implement the foundation for Thank with Google by essentially tweaking the Subscribe with Google foundation to become Thank with Google.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Subscribe_With_Google
class and any related names (also the relatedSettings
class namespace) should be renamed toThank_With_Google
.subscribe-with-google
should be consistently changed tothank-with-google
in PHP, but not in JS, which is part of the separate Implementmodules/thank-with-google
JS store foundation #5365 issue.subscribe-with-google
module slug in PHP should be changed to reference thethank-with-google
module slug (e.g. also the WordPress option name).@since
annotations for these classes, methods, etc. should be changed ton.e.x.t
, since they are basically new classes (even though we technically changed them from the Subscribe with Google classes.swgModule
should be changed to be calledtwgModule
.Additional acceptance criteria (update)
Implementation Brief
Note: The ACs are very close to code here already, so no need to rehash all of this. Please review the ACs closely together with the relevant code and point out any more complex changes necessary or follow-up questions.
includes/Modules/Subscribe_With_Google.php
includes/Modules/Subscribe_With_Google/Settings.php
Google\Site_Kit\Core\Authentication\Authentication
Google\Site_Kit\Core\Modules\Modules
swgModule
feature flag totwgModule
in thefeature-flags.json
.swgModule
in the PHP files.Test Coverage
Thank_With_Google
.QA Brief
swgModule
feature flag should no longer exist.twgModule
feature flag.Thank with Google
module in the Settings > Connect more services screen.Changelog entry
The text was updated successfully, but these errors were encountered: