This PR adds two options to printProcessQueue to help with scriptability.
The -p/--product option filters the output by product (either name or ID). This affects the output and also the -c and -e options. This doesn't just filter the output...it also adds a table of all the included products. So that does make parsing the output a little harder: basically everything up to the line that actually says "ProcessQueue" needs to be ignored.
The -s/--sort option sorts the output. Primary sort is by date, and secondary is by product name. I'm happy to switch this around to whatever is convenient for @dnadeau-lanl : making date secondary, doing product ID instead of name, etc.
Also, the HTML output mislabeled a column as "file ID"...it was a simple index (0, 1, 2....), not the file ID. I changed the label rather than behavior (although the actual file ID might be useful.)
PR Checklist
[X] Pull request has descriptive title
[X] Pull request gives overview of changes
[X] New code has inline comments where necessary
[X] (N/A) Any new modules, functions or classes have docstrings consistent with dbprocessing style
[X] Major new functionality has appropriate Sphinx documentation
[X] Added an entry to release notes if fixing a major bug or providing a major new feature
[X] (see below) New features and bug fixes should have unit tests
[X] Relevant issues are linked in the description (use Closes # if this PR closes the issue, or some other reference, such as See # if it is related in some other way)
This PR adds two options to
printProcessQueue
to help with scriptability.The
-p
/--product
option filters the output by product (either name or ID). This affects the output and also the-c
and-e
options. This doesn't just filter the output...it also adds a table of all the included products. So that does make parsing the output a little harder: basically everything up to the line that actually says "ProcessQueue" needs to be ignored.The
-s
/--sort
option sorts the output. Primary sort is by date, and secondary is by product name. I'm happy to switch this around to whatever is convenient for @dnadeau-lanl : making date secondary, doing product ID instead of name, etc.Also, the HTML output mislabeled a column as "file ID"...it was a simple index (0, 1, 2....), not the file ID. I changed the label rather than behavior (although the actual file ID might be useful.)
PR Checklist
Closes #
if this PR closes the issue, or some other reference, such asSee #
if it is related in some other way)As in #88 , this was hand-tested.