doc: add man page for clear-usage command, update docs with related information#814
Conversation
Problem: There is no test in t1026-flux-account-perms.t that makes sure that the "clear-usage" command is not accessible by all users. Add a test.
Problem: The add-bank(1) and edit-bank(1) pages are not updated with the new --ignore-older-than optional argument. Update the man(1) pages with the new optional argument.
Problem: There is no man(1) page for the clear-usage command. Add one.
Problem: There is no mention of the clear-usage command and its potential benefit anywhere in the "Components" section of the flux-accounting documentation. Add a small section to the Job Usage Calculation page in the flux-accounting documentation about resetting the usage for a bank and its potential benefit.
|
|
||
| An associated priority to be applied to jobs submitted under this bank. | ||
|
|
||
| .. option:: --ignore-older-than |
There was a problem hiding this comment.
| .. option:: --ignore-older-than | |
| .. option:: --ignore-older-than=SECONDS|DATETIME |
| :program:`flux account edit-bank` allows for the modifications of certain | ||
| fields for a given bank. The list of modifiable fields are as follows: | ||
|
|
||
| .. option:: --parent-bank |
There was a problem hiding this comment.
These three options are repeated across two commands. Are they repeated other places too? You might save yourself some copy/paste (and potential errors down the line) by having a file like doc/man1/common/bank-common-params.rst that you can drop in here. See flux-run(1) for an example.
There was a problem hiding this comment.
No, those are the only places where they are listed, but this is a good suggestion. I should probably look into this, because there are plenty of options that are shared across the add-* and edit-* commands.
Merge Queue StatusRule:
This pull request spent 6 seconds in the queue, with no time running CI. Required conditions to merge
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #814 +/- ##
=======================================
Coverage 82.93% 82.93%
=======================================
Files 27 27
Lines 2479 2479
=======================================
Hits 2056 2056
Misses 423 423 🚀 New features to boost your workflow:
|
Problem
There is no man(1) page for the
clear-usagecommand.This PR adds one. I've also snuck in a couple other commits to a) add a test to check that
clear-usageis not accessible by all users, b), update theadd-bank(1)andedit-bank(1)pages with the new--ignore-older-thanoptional argument, and c), add a section onclear-usageand why it might be beneficial to run.