Add ability to resolve an incident
See original GitHub issueScenario
AS A user who has the ability to resolve an incident
I WANT A button that I can click that sets the incident’s status to resolved
SO THAT I can determine when an incident is no longer needed to be opened.
Acceptance Criteria
GIVEN A user who has the ability to resolve an incident and an incident that is in the reported status
WHEN I navigate to the incident that is in the reported status
THEN I should see a required text field and a button at the bottom of the page that says
Resolve
.
GIVEN The incident
WHEN I click on the resolve button
THEN The incident’s status should be set as
resolved
and theresolvedOn
date should be set to the current time.
GIVEN The incident
WHEN I click on the resolve button
THEN The incident’s status should be set as
resolved
and theresolvedOn
date should be set to the current time.
GIVEN The incident
WHEN I click on the resolve button and there is no content in the Resolution text field
THEN An error message should appear stating that the incident could not be resolved and the Resolution field should have feedback stating that it is required.
Technical Notes
- New, required, text field called
resolution
should be displayed when viewing an incident - New permission
ResolveIncident
should be added - New redux thunk named
resolveIncident
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Hi @jackcmeyer I see this is back to needing an assignee? You can put it on my name.
Oh wow. I didn’t know draft PRs were a thing! Thanks for offering to review. I’ll submit a draft PR soon.