-
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
Rework integration of remote features for consistency between testing and live applications #8341
Comments
@aaemnnosttv are you still planning to work on this one? If not, please unassign yourself. |
Unassigning myself as I am not familiar enough with this feature and the priorities it would need to be split into |
Removing QA:Eng since this QA should be a general plugin test with/without various feature flags enabled. |
@aaemnnosttv In QAB, I don’t understand the phrase Feature flag enabled 'manually as if received via the proxy in the DB.' Can you please explain what this means? Does it refer to setting up Site Kit using the developer plugin? Thanks ! |
Oh sorry @mohitwp, I just meant the same behavior whether the feature was enabled via the Tester or set in the database (as it would be for a live site). Does that make more sense? |
QA Update ✅
|
Feature Description
Remote features are currently set up unnecessarily late in the plugin bootstrapping which has led to at least one bug where a difference in behavior from our normal testing differed from pre-release testing with a remote-enabled feature. This can be addressed by setting up remote features as early as possible and breaking apart the bits which require running later.
See #8340 for a WIP POC.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Plugin::register
Implementation Brief
includes/Core/Util/Remote_Features.php
:Setting
class, and keep only setting methodsincludes/Core/Util/Remote_Features_Activation.php
googlesitekit_is_feature_enabled
into the register methodget_features
andfilter_features
methodsincludes/Core/Util/Remote_Features_Sync.php
includes/Plugin.php
Remote_Features_Activation
class in theregister
method and hook into theadmin_init
to instantiate theRemote_Features_Sync
. Invokeregister
method and cron scheduling, as well ason_change
method.Test Coverage
tests/phpunit/integration/Core/Util/Remote_FeaturesTest.php
should be updated, as it only handles theSetting
related methods. You can checktests/phpunit/integration/Core/User_Input/Site_Specific_AnswersTest.php
for an example for testsRemote_Features_ActivationTest
andRemote_Features_SyncTest
classes.tests/phpunit/integration/PluginTest.php
to verify the new changes onadmin_init
hookQA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: