Closed cmoussa1 closed 1 month ago
@ryanday36 would you like to give this PR a high-level look and let me know if this might be a useful feature? I thought this might be a first-crack at tackling #352 to make it easier to gather jobs by project.
This definitely looks useful! Thanks @cmoussa1
Sounds great @ryanday36! Thanks for taking a look at it. I'll mark this as ready for review then.
Thanks @jameshcorbett! Setting MWP here
Problem
There is no way to filter jobs by project when looking at job records in flux-accounting's
jobs
table. This could be a useful feature now that the priority plugin validates and annotates project names for jobs.This PR adds a
project
column to thejobs
table that can store an optional project name for each job. It then adds an optional argument to theview-job-records
command--project
which can filter jobs by project name:I've updated some existing tests that use the
view-job-records
command as well as added a new test file that tests filtering jobs by project name.