-
Notifications
You must be signed in to change notification settings - Fork 385
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
Generate an error taxonomy for AMP error types #1360
Comments
Question About Taxonomy Hi @postphotos,
It sounds like this means a taxonomy in the WordPress sense. Is there flexibility in implementing this? The |
Update: it looks like the answer to this question is "yes," based on this design. Hi @postphotos, |
Hi @kienstra, that's the idea here. This ticket explores and implements the data model to allow the other views to have the features we think they need to help a user work with errors. As a user, I should be able to get to just the errors of a given type (e.g. CSS or Javascript) to be able to see or action on just that subset of errors on both the URL and Error type screens. On the single page, the new view also groups these errors by this typology, also linking to given documentation about how to best resolve it. For example, some markup attributes and CSS properties are just fine to be omitted in AMP, but I'd be wary of blocking some Javascript tags. In short, we want to use this data elsewhere in the tool and first need to make sure we can parse through (or collect it) as the sanitizer and plugin works. |
@kienstra The current default post faceting ( Notes about the current version of the sketch:
|
Non-CSS Error Codes (that I could find so far)
CSS Parser Error Codes The error codes, like On the 'AMP Validation Errors' page, That |
In regards to data model for a taxonomy of taxonomies, see #1361 (comment) for a discussion of a possible solution. Nevertheless, it seems that doing a full-text search of the term WHERE description LIKE '%"type":"css_error"%'; This would be in addition to the term status condition achieved via This isn't ideal by any means, but I think it will be OK given that the |
An important consequence of this implementation is this: we would not be able to readily limit the dropdown of type options to just those which actually exist in the database. Nor would we readily be able to provide a count of the given error types that exist with each option. |
@westonruter, thanks a lot for your detailed suggestions for the data model. |
Updated title to more clearly explain the intent of the ticket, props @amedina 👍 |
Request To Change Text Hi @johnwatkins0, |
As a user/developer, I should have a list of all the possible errors the AMP for WordPress plugin may generate and I should have them organized in a logical taxonomy (by CSS, by HTML attribute, by HTML element, or by Javascript). As a developer using the plugin, I should be able to use these taxonomies to sort and filter in various given views.
The text was updated successfully, but these errors were encountered: