Dismiss a maintenance duty's finding for seven days (#13967)
A forge admin who is a person can set a duty's finding aside for seven days, with a reason. The reason is required (at most 200 characters) and stays on the duty's row in maintenance_duty_state (dismissed_until, dismissed_reason): shown while the finding is hidden ("dismissed until <day>: <why>") and again once it returns ("dismissed until <day>, now back: <why>"). The weekly line reads maintenance_run, never this, so a dismissed finding still counts there. Both doors call dismiss in src/maintain/dismiss.ts, so they say the same words.
- On the web.
/maintenance, under the duties: one control, a duty to choose (only duties that are on and not already dismissed), a reason and Dismiss 7 days (POST /maintenance/dismiss, same-origin only, admin). - In the terminal. Ctrl-K, Pause, resume or dismiss a maintenance duty:
j/kchoose,dasks for the reason, Enter saves. It writes the same row, so a web viewer sees it on its next load.
A missing reason, a reason over 200 characters or an unknown duty is refused and stores nothing.
Tests: test/maintain-dismiss.test.ts.