Skip to content

Conversation

@adjagbodjouf
Copy link
Contributor

@adjagbodjouf adjagbodjouf commented Jun 16, 2025

Issue Description

Fixes #1450

  • If a user hasn't inputted a dietary restriction, it would show up as a blank field in the volunteer details page. We needed this field to indicate that they haven't specified a dietary restriction yet.
  • "Dietary restriction" needed to be changed to "dietary restriction(s)".

Changes

-Changed dietRestriction = TextField(null=True) in minor.py file to dietRestriction = TextField(null=False) to change the conditional statement for a null input. Now the volunteer details page shows "Not specified" if the dietRestriction is null.

  • All "Dietary restriction" has been changed to "dietary restriction(s)".

Testing

  • Ran the app and went to the user profile to make sure the words are changed.
  • Ran app and went to volunteer details to see what was displayed for volunteers with no specified dietary restrictions.

Copy link
Contributor

@BrianRamsay BrianRamsay left a comment

Choose a reason for hiding this comment

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

  • This isn't exactly what we are needing. We need to see a distinction between a volunteer having no dietary restrictions, and an empty field because they have not filled it out. Currently, both cases will show "None specified", which is the same as having it empty for both cases.

  • Your description mentions that you changed the field in the database to not allow nulls, but I don't see that file in the pull request.

  • I know the ticket asked for it, but I don't think it's necessary to have "Dietary Restriction(s)". We can put it back the way it was, "Dietary Restrictions". The plural is fine in all cases.

@github-actions
Copy link

View Code Coverage

@BrianRamsay BrianRamsay merged commit 6fd0e02 into development Jun 20, 2025
5 checks passed
@BrianRamsay BrianRamsay deleted the dietary-restrictions-volunteer-details-1450 branch June 20, 2025 15:07
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.

Dietary Restriction On Volunteer Details

4 participants