-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Improve the warnings about incompatibilites between plugins and features #35198
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
Merged
vedanshujain
merged 5 commits into
trunk
from
improve-plugin-feature-compatibility-warnings
Oct 20, 2022
Merged
Improve the warnings about incompatibilites between plugins and features #35198
vedanshujain
merged 5 commits into
trunk
from
improve-plugin-feature-compatibility-warnings
Oct 20, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Also fix some code styling stuff.
...and use it to display a warning for the COT feature if there are orders pending sync.
...except in the plugins list when we are already showing the "You are viewing plugins with incompatibilities" page. Also change the styling from warning to error.
Contributor
New hook, template, or database changes in this PRNew hooks:
|
Contributor
Test Results SummaryCommit SHA: c0f469e
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
2 tasks
vedanshujain
approved these changes
Oct 20, 2022
Contributor
vedanshujain
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! Will merge after CI passes.
Contributor
|
Hi @vedanshujain, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
github-actions bot
pushed a commit
that referenced
this pull request
Oct 20, 2022
…res (#35198) * Use AccessiblePrivateMethods in DataSynchronizer. Also fix some code styling stuff. * Introduce the woocommerce_feature_description_tip filter. ...and use it to display a warning for the COT feature if there are orders pending sync. * Display the plugin-feature incompatibility warning in all admin pages. ...except in the plugins list when we are already showing the "You are viewing plugins with incompatibilities" page. Also change the styling from warning to error. * Add changelog file * Revert accidental change. Co-authored-by: Vedanshu Jain <[email protected]>
jonathansadowski
pushed a commit
that referenced
this pull request
Oct 20, 2022
* Improve the warnings about incompatibilites between plugins and features (#35198) * Use AccessiblePrivateMethods in DataSynchronizer. Also fix some code styling stuff. * Introduce the woocommerce_feature_description_tip filter. ...and use it to display a warning for the COT feature if there are orders pending sync. * Display the plugin-feature incompatibility warning in all admin pages. ...except in the plugins list when we are already showing the "You are viewing plugins with incompatibilities" page. Also change the styling from warning to error. * Add changelog file * Revert accidental change. Co-authored-by: Vedanshu Jain <[email protected]> * Prep for cherry pick 35198 Co-authored-by: Néstor Soriano <[email protected]> Co-authored-by: Vedanshu Jain <[email protected]> Co-authored-by: WooCommerce Bot <[email protected]>
mcliwanow
pushed a commit
that referenced
this pull request
Oct 25, 2022
…res (#35198) * Use AccessiblePrivateMethods in DataSynchronizer. Also fix some code styling stuff. * Introduce the woocommerce_feature_description_tip filter. ...and use it to display a warning for the COT feature if there are orders pending sync. * Display the plugin-feature incompatibility warning in all admin pages. ...except in the plugins list when we are already showing the "You are viewing plugins with incompatibilities" page. Also change the styling from warning to error. * Add changelog file * Revert accidental change. Co-authored-by: Vedanshu Jain <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
plugin: woocommerce
Issues related to the WooCommerce Core plugin.
release: highlight
Issues that have a high user impact and need to be discussed/paid attention to.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request:
Introduce a new filter,
woocommerce_feature_description_tip, that allows customizing the message that appears under the description of each feature in the features settings page.Use the new filter to show a warning under the custom orders table feature if the feature is enabled and there are orders pending synchronization (since it's not really a good idea to disable the feature in this case).
Change the styling of the "WooCommerce has detected that some of your active plugins are incompatible with currently enabled WooCommerce features" notice from warning to error.
Display the above error in all the admin pages, except in the plugins page when we are already displaying the "You are viewing plugins that are incompatible with..." notice (since it's redundant in this case).
Related to (but doesn't close): #35097
How to test the changes in this Pull Request:
Enable the COT feature but disable sync, and modify one or more orders. Alternatively, change
DataSynchronizer::handle_feature_description_tipso that$pending_sync_countgets a fixed value.Go to the features page and you should see a warning under the description of the feature:
Note that the message changes depending on which is the authoritative table and on whether the number of orders pending sync is one or more.
Force enable a plugin that is incompatible with the COT feature (e.g.
wp plugin activate woocommerce-bookingsfrom CLI)Make sure that you see the "WooCommerce has detected that some of your active plugins are incompatible with currently enabled WooCommerce features" warning from any admin page, and styled as an error:
&feature_id=custom_order_tablesto the url and reload, the notice should mention the COT feature this time, but the error should still not be here.Other information:
pnpm changelog add --filter=<project>?FOR PR REVIEWER ONLY: