Skip to content

Commit

Permalink
Add in dependency on paragraphs.
Browse files Browse the repository at this point in the history
Given this is all related to the use of `paragraphs`, and how they've been
broken with VBO/`views_bulk_edit`, and we are dealing with manipulating them,
seems like a dependency makes sense.
  • Loading branch information
adam-vessey committed Nov 18, 2024
1 parent 058bf5d commit b80ec95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Drush/Commands/Sec873DrushCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ protected function getQuery(string $table_name, string $target_field) : SelectIn
#[CLI\Usage(name: 'drush islandora_drush_utils:sec-873:get-current', description: 'Base execution, logging and dumping CSV to stdout.')]
#[CLI\Usage(name: 'drush -vvv islandora_drush_utils:sec-873:get-current', description: 'Base execution with ALL the debug output.')]
#[CLI\Usage(name: 'drush islandora_drush_utils:sec-873:get-current > current.csv', description: 'Base execution, logging to stderr and dumping CSV to current.csv via stdout.')]
#[CLI\ValidateModulesEnabled(modules: ['paragraphs'])]
public function getCurrent(array $options = []) : void {
foreach ($this->getTargetTables() as $info) {
$target_field = "{$info['field_name']}_target_id";
Expand Down Expand Up @@ -229,6 +230,7 @@ public function getCurrent(array $options = []) : void {
#[CLI\Usage(name: 'drush islandora_drush_utils:sec-873:get-revisions', description: 'Base execution, logging and dumping CSV to stdout.')]
#[CLI\Usage(name: 'drush -vvv islandora_drush_utils:sec-873:get-revisions', description: 'Base execution with ALL the debug output.')]
#[CLI\Usage(name: 'drush islandora_drush_utils:sec-873:get-revisions > revisions.csv', description: 'Base execution, logging to stderr and dumping CSV to current.csv via stdout.')]
#[CLI\ValidateModulesEnabled(modules: ['paragraphs'])]
public function getRevisions(array $options = []) : void {
foreach ($this->getTargetTables() as $info) {
$target_field = "{$info['field_name']}_target_id";
Expand Down Expand Up @@ -271,6 +273,7 @@ public function getRevisions(array $options = []) : void {
#[CLI\Usage(name: 'drush islandora_drush_utils:sec-873:repair --user=1 < current.csv', description: 'Consume from pre-run CSV.')]
#[CLI\Usage(name: 'drush islandora_drush_utils:sec-873:get-current | drush islandora_drush_utils:sec-873:repair --user=1', description: 'Consume CSV from pipe.')]
#[HookSelector(name: 'islandora-drush-utils-user-wrap')]
#[CLI\ValidateModulesEnabled(modules: ['paragraphs'])]
public function repair(
array $options = [
'dry-run' => self::OPT,
Expand Down

0 comments on commit b80ec95

Please sign in to comment.