-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
[#3830] Update request base calculated status #7378
Conversation
d082470
to
0a502ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(For future PRs), it's really helpful to add before/after screenshots to demonstrate the before/after so that it's clear that we have reproduced the problem behaviour and that the commit fixes it, and that the reviewer understands what they're looking for when assessing the fix.
Once a requester has asked for a internal review their request's base status shouldn't ever be
waiting_classification
This logic doesn't sound right. Waiting classification is where the user must update the state, which they could well be asked to do after an internal review. For example:
- some correspondence has happened and the user is not happy
- they request an internal review
- the authority sends an auto-acknowledgement of their correspondence
At step 3 the request would need classification. Obviously the fix has rendered the correct option, but I'm not sure I understand why.
The original issue (#3830 (comment)) noted:
I think we could resolve this by switching it to use
@info_request.described_state
This implementation obviously adds the option, but would be good for this PR to note why we didn't just switch to #described_state
This returns the "internal review" variation of the form if the request has ever had an internal review requested. I think that's okay? What happens if we get a chain like:
- normal outgoing
- internal review
- normal outgoing
- normal outgoing
Should it always be treated as internal review in those later messages?
0a502ec
to
91eeaa3
Compare
Rebased without doing any of the changes required to move this forward. |
91eeaa3
to
c7c54e5
Compare
It's been awhile but I think what I was getting on here was the Looking back on it now, it seems like I was thinking this because it was an easy way to get the correct options displayed on the describe state form. I probably was thinking short of adding new states (like |
I have looked at this method but using it causes other issues, for example the overdue and very overdue phases aren't returned any more. There is extra logic in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice – seems to look good! 🙏
Once a requester has asked for a internal review their request's base status shouldn't ever be `waiting_classification` as this limits the possible classification statuses. Returning `internal_review` allows the requester to classify the request as `I'm still waiting for the internal review` after they receive an acknowledgement of their review. Fixes #3830
dbaebae
to
08d04f0
Compare
Relevant issue(s)
Fixes #3830
What does this do?
Update request base calculated status
Why was this needed?
Once a requester has asked for a internal review their request's base status shouldn't ever be
waiting_classification
as this limits the possible classification statuses.Returning
internal_review
allows the requester to classify the request asI'm still waiting for the internal review
after they receive an acknowledgement of their review.Implementation notes
Screenshots
Notes to reviewer