spacepy / dbprocessing

Automated processing controller for heliophysics data
5 stars 4 forks source link

printProcessQueue: add ability to filter by product, sort #93

Closed jtniehof closed 2 years ago

jtniehof commented 2 years ago

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

As in #88 , this was hand-tested.