[wp-meta] [Making WordPress.org] #7613: Support always returning a beta or RC in core API version check

Making WordPress.org noreply at wordpress.org
Mon Apr 29 00:46:04 UTC 2024


#7613: Support always returning a beta or RC in core API version check
-----------------------------+----------------------
 Reporter:  johnbillion      |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  API              |  Resolution:  wontfix
 Keywords:                   |
-----------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 > For example, a request to https://api.wordpress.org/core/version-
 check/1.7/?version=6.4.0&channel=rc currently only returns 6.5.2 stable
 and 6.4.4 stable, but no RC. I was expecting it to return the latest RC in
 the 6.5 branch regardless of whether it has since gone stable.
 >
 > Is that something that could be supported? The main reason I'm asking is
 because in order to implement this in WP-CLI and make it testable, we need
 to be able to perform an API request which always responds with a beta or
 RC offer.

 Personally; no, this isn't something that should be supported. The API
 only returns the "latest" releases according to the request, a 6.4.5-RC
 would be "latest" for that despite 6.5 being released, but once 6.5 goes
 stable 6.5-RC should never be returned.

 For wp-cli testing, it should mock API responses IMHO, it can't rely upon
 the public API.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7613#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list