[wp-meta] [Making WordPress.org] #5207: Improve heuristics for detecting block assets

Making WordPress.org noreply at wordpress.org
Wed Aug 19 05:40:58 UTC 2020


#5207: Improve heuristics for detecting block assets
------------------------------+---------------------------
 Reporter:  tellyworth        |       Owner:  coreymckrill
     Type:  enhancement       |      Status:  assigned
 Priority:  high              |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:  needs-patch       |
------------------------------+---------------------------

Comment (by khag7):

 This may be off-topic, but only slightly.

 The API is called on from the Gutenberg editor to return lists of plugins
 which have blocks. In some cases, the API includes a plugin with an empty
 list of blocks. This causes an error (see
 [https://core.trac.wordpress.org/ticket/51018 Core#51018]). If "blocks" is
 empty, that plugin probably shouldn't be returned as a result at all by
 the API, right?

 Example query link below. See the second result: "Gutenberg Map Block for
 Google Maps" has an empty "blocks" property and causes an error on any
 wordpress site initiating this query.

 https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[block]=free

 Assuming the detection of block assets improves, this is less of an issue,
 but until then is there a way for the API to intentionally discard results
 when request[block] is part of the query and "blocks" is empty on a
 result?

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


More information about the wp-meta mailing list