mjordan / islandora_repository_reports

A Drupal 8 module that provides a collection of graphical reports on various aspects of an Islandora repository.
GNU General Public License v2.0
2 stars 5 forks source link

Provide ability to pass options to drush 'build' command #29

Open mjordan opened 4 years ago

mjordan commented 4 years ago

Currently, the Drush command that generates cached report data uses the options that the user most recently selected via the report selection form at admin/reports/islandora_repository_reports. This means that for reports like disk usage, you can only pregenerate one of 'collection', 'MIME type', or 'filesystem'.

It should be possible to pass options to the drush command. Maybe as an option that takes a serialized JSON dictionary of the options?

mjordan commented 4 years ago

Islandora Bagger uses --extra='{"serialize": "tar", "hash_algorithm": "md5"} to pass data to a Symfony console command.

mjordan commented 4 years ago

If we do this, we should allow for pregenerating data using multiple combinations options. Maybe an implementation of a profile or preset configuration?