Update "drush updb" library message to be more relevent

Created on 2 March 2024, 4 months ago
Updated 4 March 2024, 4 months ago

Problem/Motivation

Hi

The current message is great but we could make the installer's life easier and maintain a composer-centered workflow.

Steps to reproduce

Currently when updating you get the following message:

 [error]  Dropzonejs requires the dropzone.min.js library.
         Download it (https://github.com/dropzone/dropzone) and place it in 
the
         libraries folder (/libraries)

Proposed resolution

A simpler solution for the end user would be:

 [error]  Dropzonejs requires the dropzone.min.js library. Add the package to Composer with the following single-line terminal command or refer to the installation documentation on https://www.drupal.org/project/dropzonejs 

    composer config repositories.dropzone '{"type":"package","package":{"name":"enyo/dropzone","version":"5.9.3","type":"drupal-library","dist":{"url":"https://github.com/dropzone/dropzone/releases/download/v5.9.3/dist.zip","type":"zip"}}}'

Remaining tasks

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΏπŸ‡¦South Africa alabandit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @alabandit
  • πŸ‡ΏπŸ‡¦South Africa alabandit

    sorry, not sure how to label patches without creating the issue first:

    here is the patch in pure text dropzonejs.install, line 40:

      else {
        $requirements['dropzonejs_library'] = [
          'title' => t('Dropzone library missing'),
          'description' => t(" [error]  Dropzonejs requires the dropzone.min.js library. Add the package to Composer with the following single-line terminal command or refer to the installation documentation on https://www.drupal.org/project/dropzonejs 
    
          composer config repositories.dropzone '{\"type\":\"package\",\"package\":{\"name\":\"enyo/dropzone\",\"version\":\"5.9.3\",\"type\":\"drupal-library\",\"dist\":{\"url\":\"https://github.com/dropzone/dropzone/releases/download/v5.9.3/dist.zip\",\"type\":\"zip\"}}}'"),
          'severity' => REQUIREMENT_ERROR,
        ];
      }
    
  • Status changed to Needs work 4 months ago
  • πŸ‡¨πŸ‡­Switzerland Berdir Switzerland

    Patch file is empty, contributions need to be done as merge requests now.

Production build 0.69.0 2024