Skip to content

Hide Cancel button for Fullfilled requests#5558

Open
stefannibrasil wants to merge 2 commits intorubyforgood:mainfrom
hexdevs:hide-cancel-button-fullfilled-requests-5544
Open

Hide Cancel button for Fullfilled requests#5558
stefannibrasil wants to merge 2 commits intorubyforgood:mainfrom
hexdevs:hide-cancel-button-fullfilled-requests-5544

Conversation

@stefannibrasil
Copy link
Copy Markdown
Contributor

Closes #5544

Description

Cancelling a fulfilled request returns a validation error: "Status cannot be changed once
fulfilled":

validation error

Since fulfilled requests cannot be cancelled, to prevent raising an error, this commit hides the Cancel button for fulfilled requests.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Locally and with automated tests:

fulfilled requests do not show the Cancel button
Screenshot 2026-05-04 at 15-52-09 Requests - 294 - Pawnee Diaper Bank

another request still shows the Cancel button

Screenshot 2026-05-04 at 15-52-21 Requests - 297 - Pawnee Diaper Bank

Cancelling a fulfilled request returns a
validation error: "Status cannot be changed once
fulfilled".

Since fulfilled requests cannot be cancelled, to prevent
raising an error, this commit hides the Cancel
button for fulfilled requests.
@stefannibrasil stefannibrasil changed the title Hide cancel button fullfilled requests Hide Cancel button for Fullfilled requests May 4, 2026
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.

[BUG]: Cancelling a fulfilled request returns a validation error

1 participant