-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Fix payments settings banner experiment logic #33549
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
Fix payments settings banner experiment logic #33549
Conversation
… checking logic to be before the experiment is called
|
📊 Test reports for this pull request have been published and are accessible through the following links:
Latest commit referenced in the reports: Visit the WooCommerce Test Reports homepage to view all published reports. See the FAQs page if you're having problems accessing them. |
rjchow
left a comment
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.
LGTM! Sharp eyes catching this!
There's a bit of a catch for testers who will test this with test helper plugin - the experiment won't show up in the experiments list until all the other conditions are fulfilled and the settings page has been visited once
|
Hi @ilyasfoo, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
* Delegate payment experiment logic into its own hook and rearrange the checking logic to be before the experiment is called * Changelog
* Update WooCommerce Blocks package to 7.8.3 (#33514) * Move tracks _ui and _ut properties out of filtered tracks properties (#33621) * Move tracks _ui and _ut properties out of filtered tracks properties * Add tests around tracks properties * Fix broken variable name * Add changelog entry * Fix payments settings banner experiment logic (#33549) * Delegate payment experiment logic into its own hook and rearrange the checking logic to be before the experiment is called * Changelog * fix payments banner experiment test (#33589) test needed to be updated as the component did not call useExperiment directly anymore * Prepared Changelog * Removed Changelog Files * Updated Version Co-authored-by: Luigi Teschio <[email protected]> Co-authored-by: Joshua T Flowers <[email protected]> Co-authored-by: RJ <[email protected]>
Changes proposed in this Pull Request:
Previously, the payments settings banner experiment was called before the logic for eligibility is executed. This means that all users who visited the payments settings screen were participants of the experiment, which will skew the experiment results since most of them would be in
treatmentbut they don't experience the banner.This fix ensures only eligible users can participate the experiment.
How to test the changes in this Pull Request:
treatmentbookmarklet obtained from Abacus forwoocommerce_payments_settings_banner_2022_06experimentwoocommerce_payments_settings_banner_2022_06experiment from the cachewoocommerce_payments_settings_banner_2022_06Other information:
pnpm changelog add --filter=<project>?FOR PR REVIEWER ONLY: