Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Response Status field separate from Incident Types #205

Closed
jim-mcgowan opened this issue Sep 25, 2019 · 10 comments
Closed

Create a Response Status field separate from Incident Types #205

jim-mcgowan opened this issue Sep 25, 2019 · 10 comments

Comments

@jim-mcgowan
Copy link
Member

jim-mcgowan commented Sep 25, 2019

Incident Types:

incident type

Response Status:

  • Open
  • Closed
  • Duplicate
  • Invalid
  • No response needed
  • Not eligible for services
@kfogel
Copy link
Member

kfogel commented Sep 25, 2019

Programmer-speak overview here:

There are various pages where, if you close an incident as "No response needed" or "Invalid", the incident type gets displayed as that from then on -- instead of as, you know, an actual incident type, like "Fire" or "Flood" or whatever.

That's a bizarre category mixing. We don't know how deep this problem goes. Heck, I don't even quite understand how it's possible to get those inappropriate values into those fields. I mean, aren't these essentially enum types under the hood somewhere? Please?

Anyway, we'll figure it out. This note is just to confirm to whoever looks at this next that, yes, the problem really is as weird as it sounds. Ask @OhMcGoo to demonstrate it.

@jim-mcgowan jim-mcgowan added the M label Nov 25, 2019
@jim-mcgowan jim-mcgowan added this to the One Red Cross milestone Nov 25, 2019
@frankduncan
Copy link
Contributor

The way the code works in general is that the status should be either Open, Closed, or Invalid. In the case of the latter, I'll add a new DB column "reason_marked_invalid" and then when displaying the status on the incident page, it will say something like "Invalid - Duplicate" or "Invalid - No response needed"

@frankduncan
Copy link
Contributor

One last question is where to put this information?
incident_status
Right now, because it's the status of the issue, I'm putting it on top, in the same font as the incident number. See screenshot

@jim-mcgowan
Copy link
Member Author

@frankduncan: So, let me simply confirm . . . We now have five possible statuses:

  • Open
  • Closed
  • Invalid - Duplicate
  • Invalid - No Response Needed
  • Invalid - Not Eligible for Services

@frankduncan
Copy link
Contributor

There's also "Invalid - " which displays as "Invalid" and "Invalid - Invalid" which displays as "Invalid"

@jim-mcgowan
Copy link
Member Author

@frankduncan: OK, let me give this some thought. I want to finish reviewing the staging site and then I'll return my attention to this issue.

frankduncan pushed a commit that referenced this issue Jul 11, 2020
Before, the reason an incident was marked invalid was stored in the
incident_type field, which resulted in losing the original incident type
(fire, or vacate, or whatever).  This caused issues when the incident
was reopened, or for reporting.

Instead, we want to have a separate field for the invalid reason that we
display and search on when the incident status is 'invalid'

Issue #205: Create a Response Status field separate from Incident Types
@jim-mcgowan
Copy link
Member Author

@frankduncan: How about something like this where "Response" is also added as a Status qualifier:

Status

@frankduncan
Copy link
Contributor

Response is not a currently tracked status, so when does it get that status? And that might be a bigger change than what we've been talking about because it gets into the workflow.

But as for putting the status under the Response table, that's easy enough.

@jim-mcgowan
Copy link
Member Author

@frankduncan: Any incident that's NOT Invalid counts as a Response.

@frankduncan
Copy link
Contributor

frankduncan commented Jul 13, 2020

@OhMcGoo So we want "Response - Open" and "Response - Closed" vs "Invalid - Duplicate"?

frankduncan pushed a commit that referenced this issue Jul 20, 2020
Before, the reason an incident was marked invalid was stored in the
incident_type field, which resulted in losing the original incident type
(fire, or vacate, or whatever).  This caused issues when the incident
was reopened, or for reporting.

Instead, we want to have a separate field for the invalid reason that we
display and search on when the incident status is 'invalid'

Issue #205: Create a Response Status field separate from Incident Types
frankduncan pushed a commit that referenced this issue Jul 20, 2020
Before, the reason an incident was marked invalid was stored in the
incident_type field, which resulted in losing the original incident type
(fire, or vacate, or whatever).  This caused issues when the incident
was reopened, or for reporting.

Instead, we want to have a separate field for the invalid reason that we
display and search on when the incident status is 'invalid'

Issue #205: Create a Response Status field separate from Incident Types
frankduncan added a commit that referenced this issue Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants