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

Making WordPress.org noreply at wordpress.org
Wed May 20 00:21:25 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 coreymckrill):

 With the above patch, which addresses the problem noted by @ryelle, the
 paths used to find files and the paths stored in postmeta will now include
 `tags/` if the stable tag is a version number instead of `trunk`.

 Running this on a couple of known block plugins, we get new results:

 https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[block]=listicle&request[per_page]=3&request[locale]=en_US&request[wp_version]=5.5

 This now shows files from `dist` instead of `src`, and includes `/tags` in
 the file paths.

 https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[block]=rubi&request[per_page]=3&request[locale]=en_US&request[wp_version]=5.5

 This didn't have any block assets shown before, but now has
 `/tags/1.0.1/build/index.js`

 We should probably still add some additional heuristics here, but this is
 a good first step.

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


More information about the wp-meta mailing list