Skip to content

Conversation

@wjrosa
Copy link
Contributor

@wjrosa wjrosa commented Nov 17, 2025

Changes proposed in this Pull Request:

In this simple cleanup PR, I am removing all references to the UPE-enabled feature flag, as that is no longer necessary, since UPE is now the only version available.

I am also deprecating WC_Stripe_UPE_Availability_Note and WC_Stripe_REST_UPE_Flag_Toggle_Controller as they do not make sense anymore.

Testing instructions

Code review. Check if the tests are still passing. Perform some basic smoke testing and confirm no regression was introduced.


  • Covered with tests (or have a good reason not to test in description ☝️)
  • Tested on mobile (or does not apply)

Changelog entry

  • This Pull Request does not require a changelog entry. (Comment required below)
Changelog Entry Comment

Comment

Post merge

@wjrosa wjrosa self-assigned this Nov 17, 2025
@wjrosa wjrosa marked this pull request as ready for review November 17, 2025 21:05
@wjrosa wjrosa requested review from a team, daledupreez and diegocurbelo and removed request for a team November 17, 2025 21:08
Copy link
Contributor

@daledupreez daledupreez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on, @wjrosa!

Based on inspection, this looking really good, with the exception of some legitimate test failures in WC_Stripe_Inbox_Notes_Test.

It may also be worth triggering a manual e2e test run that includes the secondary LPMs. I will also aim to do some more manual testing over the next few hours.

@wjrosa
Copy link
Contributor Author

wjrosa commented Nov 18, 2025

Thanks for the review, Dale! I have fixed tests in bfa000d and also deprecated the WC_Stripe_UPE_Availability_Note class, as it does not make more sense to us.

Copy link
Contributor

@daledupreez daledupreez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good to me, though I don't know how much I covered with my smoke tests. Still, given that we can no longer disable UPE, I think these changes should be relatively safe.

Copy link
Member

@diegocurbelo diegocurbelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good. I left two optional suggestions.

* @version 4.0.0
*/
public function __construct() {
return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a bit odd; I think we should move the return below the add_action (as it was before), or remove the unreachable code (or the entire constructor).

add_action( 'admin_notices', [ $this, 'admin_notices' ] );
add_action( 'wp_loaded', [ $this, 'hide_notices' ] );
add_action( 'woocommerce_stripe_updated', [ $this, 'stripe_updated' ] );
add_action( 'after_plugin_row_woocommerce-gateway-stripe/woocommerce-gateway-stripe.php', [ $this, 'display_legacy_deprecation_notice' ], 10, 1 );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

display_legacy_deprecation_notice() does nothing now; there is no need to register this anymore:

Suggested change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants