-
Notifications
You must be signed in to change notification settings - Fork 383
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
REST endpoints for AMP validation errors and validated URLs #5552
Comments
For the endpoint for validation errors…
|
This will be resolved as part of the work on #5772, which will use REST API calls to get information on validation errors and URLs. |
@pierlon The scope for #5772 is much reduced, however. For the admin menu, the only thing needed is the counts for the validation errors and validated URLs which are not reviewed. There is no need to expose individual validated URLs nor validation errors. Therefore I think the efforts are related but not directly overlapping. |
Yes you're right. I'll revert this back to the original milestone for now. |
I have a design doc that lays out what endpoints are needed. I believe everyone has access on the team. |
Work in progress via #6442. |
Punting this since we now have what we need for 2.2 via #6615. |
Feature description
For some planned plugin features, we will need data about validation errors and validated URLs to be fetched and updated over REST endpoints.
Although this data is currently represented in the database via the
amp_validation_error
taxonomy and theamp_validated_url
post type, we should not use or extendWP_REST_Taxonomy_Controller
andWP_REST_Post_Controller
because the underlying data structure (which Weston has documented elsewhere) does not neatly map to these core WP object types. A longer-term goal is to move away from the workarounds that have been used to store this data in WP objects and potentially migrate the data into custom tables. So the endpoints should be built to the underlying data schema rather than to theWP_Post
/WP_Term
schemas. Then when we're ready to change how the data is stored, we'll just need to update the methods that query the database.Summary
updating, and creating items(see below)Copying this from Weston's comment below for visibility:
Related
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: