Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Should be able to:
- drush stats-ls to list all available fields. Perhaps output as pipe-able data, also perhaps use flags to list only enabled/disabled.
- drush stats-en to enable a particular field. Like a module enable, there should be a confirmation dialogue.
- drush stats-dis to remove a particular field. Like a module disable, there should be a confirmation dialogue and data loss warning.
Comment | File | Size | Author |
---|---|---|---|
#4 | better_statistics-add_drush_support-1800648-4.patch | 16.1 KB | iamEAP |
#2 | better_statistics-add_drush_support-1800648-2.patch | 22.54 KB | iamEAP |
#1 | better_statistics-add_drush_support-1800648-1.patch | 7.07 KB | iamEAP |
Comments
Comment #1
iamEAP CreditAttribution: iamEAP commentedField list functionality is about 90% there. Still an issue with the flags.
Field enable/disable functionality is 50% there. Confirmation dialogue and error reporting are pretty much there, but work needs to be done to abstract the field enable/disable out of the form submit in better_statistics.admin.inc so that drush can make use of them easily.
Comment #2
iamEAP CreditAttribution: iamEAP commentedHere's an initial stab at the abstraction. Curious to see what TestBot thinks.
Comment #4
iamEAP CreditAttribution: iamEAP commentedPrevious patch was based on an older version of the module. Restored the deleted portions and removed the remaining @todos.
Comment #5
iamEAP CreditAttribution: iamEAP commentedTestbot approves; committed in lieu of interested folks for review.
c8cd850