-
Notifications
You must be signed in to change notification settings - Fork 295
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
Set Correct Owned Keys For Thank With Google Settings #5587
Comments
IB ✅ |
@kuasha420 we need to make sure that the owner ID is not getting changed when other settings are changed. Could you please update QAB with instructions how to change TwG settings and how to verify that the owner ID hasn't changed? |
QA Update:
|
@wpdarren I made a copy paste error here as the snippet would be the following: googlesitekit.data
.select( 'modules/thank-with-google' ).getButtonPostTypes() Also rerun the snippets to Cheers. |
QA Update: ✅Verified:
|
Feature Description
When converting old SwG Settings Class to TwG Class, we accidentally made All the settings keys owned keys which is not correct. Only the
publicationID
should be an owned key. Let's remove the others from the owned keys and add tests accordingly.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
publicationID
should be the only owned setting for Thank with GoogleGoogle\Site_Kit\Tests\Modules\Thank_With_Google\SettingsTest
(added in Add enhanced Thank with Google setting validation #5461) test case should implement theSetting_With_Owned_Keys_Trait
for consistency with othersImplementation Brief
get_owned_keys
method ofGoogle\Site_Kit\Modules\Thank_With_Google\Settings
class:publicationID
and remove others from the return array.Google\Site_Kit\Tests\Modules\Thank_With_Google\SettingsTest
class:Google\Site_Kit\Tests\Core\Storage\Setting_With_Owned_Keys_ContractTests
.get_setting_with_owned_keys
protected method.Google\Site_Kit\Tests\Modules\Tag_Manager\SettingsTest
for an example.Test Coverage
QA Brief
This is maybe best QA'd as a QA:Eng as we don't have the UI to connect TwG module or change settings.
buttonPostType
using the following snippet:publicationID
.ownerID
should now change to the new admins ID.get
snippets if first time they returnundefined
.Changelog entry
The text was updated successfully, but these errors were encountered: