-
Notifications
You must be signed in to change notification settings - Fork 384
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
[Compatibility Tool] Better tooling for evaluating plugins #1007
Comments
The main issue description has been updated with a formal Story and Acceptance Criteria. |
Validation test on entire site even if AMP theme support is not declared yet. Be able to force amp theme support while crawling. |
Added AC2 per our meeting yesterday. |
Aside: This is useful for trying out AMP theme support for a given theme without manually doing add_action( 'after_setup_theme', function() {
if ( isset( $_REQUEST['amp_forced'] ) ) {
add_theme_support( 'amp' );
}
} ); Then to see how a theme works with AMP just activate the theme and access the homepage or any other page with |
Question About Working On This Issue Hi @westonruter,
Otherwise, I could start working on #1036. |
@kienstra yes, go for it. Let's start with a WP-CLI command (with progress bar) that crawls the site and validates each URL it can find (that is, all AMP documents). As part of this, there probably needs to be something like I have in #1007 (comment) to be able to force |
Thanks, Working On This Now Hi @westonruter, |
Once we have the WP-CLI command in place, then we can look at how to present that same information in the admin. We'll also then need to figure out a good way to use |
As part of this we might want to resurrect the REST API endpoint for AMP validation. There could be a |
Moving Into "To Do" Hi @westonruter, If you're not working on it by the time I'm free, I'll probably come back to it. Thanks! |
Still Needed? Hi @westonruter, |
Yes, but first we really need to finish #1093. |
@westonruter mentioned that this should involve:
Of course, feel free to edit this if these notes didn't capture the points exactly. |
@postphotos New suggested AC: I think we should have the compatibility tool target the various templates that now are presented to the user. Then we can surface next to each supportable template checkbox an indicator for whether AMP is known to be supported. Each item can include a “Check compatibility“ and a link to “Review issues”. Maybe also a button to re-check compatibility for all of the templates. These template checks should be done each time the user switches themes (though the request should be queued via cron and not done synchronously, since it will take a minute or so). It is more important that the automated site checker look at these templates instead of looking at every single URL. We should still do the scanning of all URLs periodically but when a user initiates a scan it should focus on the main site templates. /cc @kienstra See also #1254 for an admin pointer to draw users to the admin screen. We should use the tool to help provide an onboarding experience for users to AMP theme support. |
Hi @westonruter - I didn't flag you here, but I added your AC from the comment above to this ticket last week. |
I've tweaked the AC1 to make it explicit that this issue is regarding the initiation of a site validation scan via WP-CLI not via the WordPress admin. An admin UI would need to be proposed in a separate issue along with designs; the admin UI would have the added complexity of needing to guard against timeouts. The PR #1183 resolves the WP-CLI issue. |
Moving To 'Ready For Merging' If it's alright, I'm moving this to 'Ready For Merging,' as I don't think it needs functional testing beyond the 'technical QA' from PR #1183. |
As a WordPress site, my Compatibility Tool should have better tooling for evaluating plugins' AMP compatibility programmatically.
inside the user interface from [Compatibility Tool] Improve experience for user based on AMP compatibility #1006via WP-CLI.The goal is to spawn validation process and get results programmatically for an entire site. WP-Cron and WP-CLI are in view here, as is integrating with logic in XML Sitemap generators to obtain list of URLs potentially.
The text was updated successfully, but these errors were encountered: