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

Making WordPress.org noreply at wordpress.org
Tue May 12 22:13:57 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 ryelle):

 I think plugins that use `/tags/*` are not indexed correctly— check out
 [https://wordpress.org/plugins/listicles/ Listicles], it
 [https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request%5Bwp_version%5D=5.3&request%5Bblock%5D=listicles
 returns assets] as `"/1.0.6/src/block/listdd.js", …`, but there are two
 problems:

 1. That doesn't translate to the full path, it should return
 `tags/1.0.6/…`, since this creates the link
 `https://plugins.svn.wordpress.org/listicles/1.0.6/src/block/listdd.js`
 2. That's not the right file to include, it's not finding the files in
 `dist` — because of the above problem, `export_and_parse_plugin` is
 searching in `{$plugin_slug}/{$stable_tag}`, and `$stable_tag` is just the
 version number.

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


More information about the wp-meta mailing list