Closed gedankenstuecke closed 1 year ago
The coverage rate went from 98.9%
to 98.9%
:arrow_up:
100%
of new lines are covered.
One thing to note is that if we drop the empty option, then we'll lose explicit consent for the "Do you identify as autistic?" field.
When the user first creates their account they're taken to the user profile page with the field set to empty. The form then won't validate until one of the options has been explicitly chosen for this field (following the description in #543). If we remove the empty value, the user can submit the form without actively selecting one of the options (the default "unspecified" will go through without any warning).
As long as this is a conscious change, I'm happy to approve the PR.
Thanks for flagging this @llewelld and I think that's a valid concern. The problem I see with the current implementation (before the PR) is that it feels like some inconsistent behaviour & messaging?
------
option looks like any other answer option and isn't set to disabled, so it appears as if it should be a valid responseSo what we could do is either:
This PR so far goes into option 2, and I think that might be a bit more consistent and less confusing than having one option that works different in terms of "you need to provide an answer". I'd be happy to expand this though, and explain more clearly outside the hover what happens if people don't answer. how does that sound? :)
I think this is very much your call.
If we want to maximally encourage users to explicitly select an option then I'd go with option 1. We can disable the option (I'm certain this is doable and would be happy to do the work for it) and update the greeting text.
If we're not too concerned about nudging users to make an explicit selection then I agree option 2 would be more consistent.
I've previously looked into finding a good way to avoid the tooltips, but everything ended up looking really messy. If we can avoid pulling text out of them, that would be preferable from a page presentation and overall clarity perspective (although it's great if you have a solution for doing this well).
@llewelld Yeah, I think you're right that having people make an explicity decision is the right path for this. So, how about we do a two-step procedure for this one:
I feel that this could potentially be the sweet spot that addresses both concerns?
@gedankenstuecke: perfect, that works for me!
Great, I'll put that on my todo for next week!
2. disabling of the "blank" option
PR #577 will disable the blank option for the field; I'm hoping it'll merge nicely into the changes you've already made.
Cool, let me merge yours in and then I'll go about fixing the inevitable merge conflicts :D
Okay, I think this is now ready for re-review @llewelld! 🚀
Okay, I think this should now be ready to go. I've also added the missing migration that @helendduncan mentioned!
Before on
main
, Django would complain about missing some a migration, I think this was because there was a missing change on the model/form regarding the self-ID on whether a user identifies as autistic or not. With these changes the form now works without complaints.