-
Couldn't load subscription status.
- Fork 217
Hardcoding ECE feature flag to be always enabled #4710
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
Conversation
…/woocommerce/woocommerce-gateway-stripe into update/hardcoding-ece-as-enabled
|
@wjrosa this feature flag check becomes unnecessary as we are removing the PRB frontend and backend code/files completely. IMO we can remove the |
|
I agree. However, that was to address @daledupreez's concerns in #4687 (comment). It is still possible for a merchant to manually change the feature flag value, as far as I am aware. Let me know if that's a wrong assumption (I hope so). |
cc @daledupreez for clarification. I think the feature flag should be deleted. Also ECE has been default on for UPE since the beginning of this year |
|
I saw at least one merchant with the express checkout feature flag disabled during my support rotation in September - they were still using PRBs. 😬 I didn't know that was still possible, but it clearly was. With that in mind, I think it's probably safest to stick with @wjrosa's approach for the short term. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the changelog entry wording, this LGTM.
Co-authored-by: daledupreez <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me. 👍
However, I still think removing the is_stripe_ece_enabled completey vs returning true from this function would behave the same if we remove all the PRB related files (as there is no fallback and ECE is the only option available) 🤔
Fixes STRIPE-733
See #4687 (comment)
Changes proposed in this Pull Request:
In this PR, I am hardcoding the Express Checkout feature flag to be always enabled. This will force ECE for all merchants, even those that, for some reason, changed the default flag value, making it safe to remove all code related to Payment Request Buttons.
Testing instructions
Code review is enough.
Changelog entry
Changelog Entry Comment
Comment
Post merge