Ludwig has working Drush and Drupal Console commands for automated download and unpacking of missing libraries into the proper folder structure. To use the commands the user has to be familiar with these command-line tools... and the most of Ludwig users are not.
Is it possible to add such functionality to Ludwig's UI as well?
For example, instead of current "Download" link below package name we could have "Download and unpack" link to automate the job.
Are there some major obstacles which prevent us from having such automated actions inside UI? Some folder permission issues or some other?
The working PackageDownloader class is available to be used by Drush and Drupal Console. Can we use the same class to add automated actions to UI?
We could have a global "Download and unpack all missing packages" at the top of Reports > Packages UI as well. That would be extremely handy. Updating of expired modules would take just a few clicks.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3177835-06.patch | 1.34 KB | devad |
| #3 | 3177835-02.patch | 7.79 KB | devad |
Comments
Comment #2
devad commentedComment #3
devad commentedSome recently commited issues cleared the way for this feature request to move forward:
#2883405: Add tests for the PackageDownloader
#3181580: Fix library download problem with same archive names
#3182445: Code improvements and multiple library versions fix
#3182476: Add support warnings for LEGACY library type and all UNKNOWN library types
#3181536: Add warnings for unsupported 'exclude-from-classmap' and 'target-dir' autoload options
#3177450: Add warnings about unsupported autoload types and improve PSR types support with the follow-up #3180980: Add support for PSR libraries with multiple paths
At the end, the patch is incoming here as well.
Please review and comment.
This is a big step forward for Ludwig module.
Comment #5
devad commentedComment #6
devad commentedFor the UX consistency purpose, if there are no missing packages, render the 'Download and unpack missing packages' button again, but this time as disabled one.
Comment #8
devad commented