core-command icon indicating copy to clipboard operation
core-command copied to clipboard

Add `core release` command(s) to fetch available releases through the .org API

Open schlessera opened this issue 6 years ago • 12 comments

It would be useful to be able to easily query the available releases of WordPress core through the .org API and also get the download URLs for a given update.

A use case I'm currently working on that this would benefit is https://github.com/wp-cli/wp-cli-tests/issues/51

schlessera avatar Apr 11 '19 08:04 schlessera

It doesn't seem to be possible to query for arbitrary patch version through the WordPress.org API. Am I missing something, like an extra query argument or a different endpoint?

schlessera avatar Apr 11 '19 12:04 schlessera

Also, the locale query for the API argument behave in an unexpected way as well. It does only produce a different result for the first (i.e. the "latest") release, all others seem to still point to en_US downloads...

schlessera avatar Apr 11 '19 12:04 schlessera

Also, the locale query for the API argument behave in an unexpected way as well. It does only produce a different result for the first (i.e. the "latest") release, all others seem to still point to en_US downloads...

Maybe @ocean90 knows more here?

swissspidy avatar Apr 11 '19 12:04 swissspidy

Doesn't he always do?

schlessera avatar Apr 11 '19 12:04 schlessera

Can you tell me what endoints you are trying? What's the request looking like? To retrieve all available versions you could use https://api.wordpress.org/core/stable-check/1.0/.

ocean90 avatar Apr 11 '19 12:04 ocean90

The current code uses https://api.wordpress.org/core/version-check/1.7/ it seems.

swissspidy avatar Apr 11 '19 13:04 swissspidy

Yes, indeed, I'm using the version-check endpoint right now. If I have a specific version from stable-check endpoint, can I:

  • retrieve detailed information for that specific version through version-check/some other endpoint with similar information?
  • specify which locale to check for?

schlessera avatar Apr 11 '19 15:04 schlessera

The call to the stable-check is really slow and often times out. Is that endpoint not being cached?

schlessera avatar Apr 11 '19 20:04 schlessera

@ocean90 Do you know whether there might be a caching issue with stable-check ^^^?

schlessera avatar Oct 15 '19 06:10 schlessera

There's no caching for that endpoint.

ocean90 avatar Oct 17 '19 12:10 ocean90

There's no caching for that endpoint.

Shouldn't that be changed, then? It seems slow and unreliable.

schlessera avatar Oct 17 '19 12:10 schlessera

@ocean90 Is there any update on this regarding the missing caching on the stable-check endpoint?

schlessera avatar Jan 11 '22 01:01 schlessera