Skip to content

Adding reason to provider changes#5970

Open
whpearson wants to merge 2 commits into
mainfrom
add_reason_to_providers
Open

Adding reason to provider changes#5970
whpearson wants to merge 2 commits into
mainfrom
add_reason_to_providers

Conversation

@whpearson

@whpearson whpearson commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Form:
Screenshot 2026-06-19 at 14 57 51

View:
Screenshot 2026-06-19 at 14 57 37

This adds a single field to the provider ratio form for a reason for the change.

This is propagated to the call to the notifications-api.

Tests have been updated

@whpearson whpearson force-pushed the add_reason_to_providers branch from 40dabc0 to 78d9966 Compare June 19, 2026 14:48
@whpearson

Copy link
Copy Markdown
Contributor Author

Needs alphagov/notifications-api#4887 merging first

Comment thread app/main/forms.py Outdated
(
"reason",
GovukTextInputField(
"Reason", validators=[NotifyDataRequired(thing="your reason for changing the priorities")]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if it would be helpful not to make this a required field - ideally people should put a reason down, but we've had an incident in the past where we manually changed the percentages at very frequent intervals. If that ever happened again, needing to enter the same reason each time might be time consuming

This adds a single field to the provider ratio form for a reason for the change.

This is propagated to the call to the notifications-api.

Tests have been updated
@whpearson whpearson force-pushed the add_reason_to_providers branch from 78d9966 to be79cf9 Compare June 30, 2026 11:55
@whpearson whpearson marked this pull request as ready for review June 30, 2026 12:17
Comment thread app/templates/views/providers/provider.html Outdated
Co-authored-by: Chris Hill-Scott <me@quis.cc>
@whpearson whpearson force-pushed the add_reason_to_providers branch from 9f7c947 to 12aab6a Compare July 13, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants