Skip to content

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

Closed as not planned

Description

@schlessera

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 wp-cli/wp-cli-tests#51

Activity

  1. changed the title [-]Add `core release list` and `core release get` commands[/-] [+]Add `core release` command(s) to fetch available releases through the .org API[/+] on Apr 11, 2019
  2. schlessera commented on Apr 11, 2019

    @schlessera
    MemberAuthor

    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?

  3. schlessera commented on Apr 11, 2019

    @schlessera
    MemberAuthor

    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...

  4. swissspidy commented on Apr 11, 2019

    @swissspidy
    Member

    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?

  5. schlessera commented on Apr 11, 2019

    @schlessera
    MemberAuthor

    Doesn't he always do?

  6. ocean90 commented on Apr 11, 2019

    @ocean90
    Contributor

    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/.

  7. added a commit that references this issue on Apr 11, 2019
    882b04a
  8. swissspidy commented on Apr 11, 2019

    @swissspidy
    Member

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

  9. schlessera commented on Apr 11, 2019

    @schlessera
    MemberAuthor

    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?
  10. schlessera commented on Apr 11, 2019

    @schlessera
    MemberAuthor

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

  11. schlessera commented on Oct 15, 2019

    @schlessera
    MemberAuthor

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

  12. ocean90 commented on Oct 17, 2019

    @ocean90
    Contributor

    There's no caching for that endpoint.

  13. schlessera commented on Oct 17, 2019

    @schlessera
    MemberAuthor

    There's no caching for that endpoint.

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

  14. schlessera commented on Jan 11, 2022

    @schlessera
    MemberAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    command:coreRelated to 'core' command

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions