-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Feature flag to separate Phase 2 features from packages updates targeted as Core fixes/polish. #11016
Comments
Makes sense to me for WordPress 5.1 features and beyond. I think this is something that we should implement sooner rather than later. Momentum is a fickle thing: if folks are blocked on 5.0.x code freezes then they'll get bored and lose motivation 🙂 We'll need to be very careful when reviewing PRs to test both with the Phase 2 flag on and off. Running the E2E tests with and without the environment variable should help us here. Updating the pull request template to include this as an extra testing step might also help. How will this impact documentation? We'll need to make sure that
|
I think it could be worth going down a similar route to Calypso's environment specific feature flags: Our environments could be something like:
Each file contains separate flags for each feature. This provides additional flexibility over a global flag in my opinion and makes it easy to include other environments, or for others forking the project to bootstrap their own environments. It'd have to be documented well in the contributing guide as working with feature flags does add a bit of friction to contributing. |
Something like Calyspo sound good to me. Ideally this could even be surfaced in Core later in a UI accessible in a given mode only (debug for instance) to allow people to opt-in to features before the actual release. I won't consider this a critical use-case for v1 of feature flags. If anyone wants to own this task and experiment with it, please do :) |
I did a quick preliminary investigation into this. I haven't quite managed to get dead code elimination working, still investigating that. A couple of things came up:
|
Post 5.0, this repository will serve for both bug fixes and improvements to phase 1 and phase 2 features.
Proposed solution
INCLUDE_PHASE2
Thoughts?
The text was updated successfully, but these errors were encountered: