#1579 closed task (blessed) (fixed)
Plugins API
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | high | |
| Component: | Plugin Directory | Keywords: | |
| Cc: |
Description (last modified by )
- Continue supporting everything it currently supports
- (Create a comprehensive list of what it currently supports).
Attachments (1)
Change History (42)
This ticket was mentioned in Slack in #meta by obenland. View the logs.
10 years ago
#3
@
10 years ago
Just noting it here, since it'll trip someone up.
The Author field in the Plugins API response, is not a committer, contributor, or even the post author. It's the Author and Author URI headers directly from the plugin headers.
#5
@
10 years ago
See also: [3020] [3021] [3022]
In [3020]:
Plugin Directory: Add a REST API endpoint which represents the full plugin data currently exposed throughapi.wordpress.org.
Although it's unlikely api.wordpress.org will run the API directly, this is a test to verify that all data we have on file is available.
See #1576
This ticket was mentioned in Slack in #meta by obenland. View the logs.
10 years ago
This ticket was mentioned in Slack in #meta by obenland. View the logs.
10 years ago
#9
follow-up:
↓ 10
@
10 years ago
As discussed in the Shiny Updates weekly meeting, it would be great if the plugin updates API would include the plugin icons for use on the update screens.
See https://github.com/obenland/shiny-updates/issues/5 for some mockups on how the plugin icons would be used.
#10
in reply to:
↑ 9
@
10 years ago
Replying to swissspidy:
As discussed in the Shiny Updates weekly meeting, it would be great if the plugin updates API would include the plugin icons for use on the update screens.
See https://github.com/obenland/shiny-updates/issues/5 for some mockups on how the plugin icons would be used.
Feel free to file a meta ticket for that. The update response API needs to be modernised and have those features added for sure, but for now/in this ticket we're only focusing on migrating from the existing bbPress powered API to a WordPress backend.
#13
@
10 years ago
We need
- A stand alone PHP script which reads the WordPress postmeta table to perform updates
- (ideally) A stand alone PHP script which can handle the
plugin_informationrequests &/hello-dolly.jsonrequests. I'd probably suggest we should just cache a full response from the REST API (/wp-json/plugins/v1/plugin/hello-dolly/) and handle thefieldsand conditional wp_version checks, as well as the output format (PHP serialized, XML, and JSON) in that handler - A REST API Endpoint which can be used for the
hot_tagsendpoint - A REST API Endpoint which can be used for the
query_pluginsendpoints, this mostly wrapsWP_Querybut has a lot of random and weird logic burried in it
Loading WordPress for all these requests isn't going to be viable, but for some we'll have little choice.
- The update handler should most definitely not load WordPress at all.
- The
hot_tagshandler could just cache the result of the WordPress endpoint, so it doesn't require loading WordPress often. - The
plugin_informationhandler would be a good one to cache, and not hit WordPress on, as it's requested often enough and accounts for a significant amount of the api traffic. - The
plugin_informationhandler viahello-dolly.jsonshould be made cacheable, that means it should only use the data contained within the URL for the response, fetching the WordPress version from the user_agent isn't viable
This ticket was mentioned in Slack in #meta by obenland. View the logs.
10 years ago
This ticket was mentioned in Slack in #meta by obenland. View the logs.
10 years ago
#25
@
10 years ago
attachment:1579-fix-plugin-object-type.diff fixes two issues in the PHP API:
PHP Warning: Invalid argument supplied for foreach()when the$contribsarray is null.
- A regression: in the old API,
query_pluginsreturns an array of plugin objects. In the new one, they were assoc arrays - this casts them to objects.
Split out in #1614.