Skip to content
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

Don't ask for email when reporting issues #1009

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Conversation

MatMoore
Copy link
Contributor

@MatMoore MatMoore commented Oct 31, 2024

#995

Instead of requiring the reporter to enter their email, we can just use the email of the currently signed in user.

Instead, just ask if they would like to be emailed.

I'm using a TypedChoiceField instead of a BooleanField, because BooleanField has weird required behaviour. The docs encourage you to set required=False if you need to be able to submit a False value, but this means you can't validate that a value was set if you use a RadioWidget.

@MatMoore MatMoore force-pushed the add-created-by-to-issues branch 2 times, most recently from b954e0b to b7fa286 Compare October 31, 2024 16:44
@MatMoore MatMoore force-pushed the add-created-by-to-issues branch 4 times, most recently from 3ed1cb9 to d270ba2 Compare November 4, 2024 09:51
Instead of requiring the reporter to enter their email, we can just use
the email of the currently signed in user.

Instead, just ask if they would like to be emailed.

I'm using a TypedChoiceField instead of a BooleanField, because
BooleanField has weird `required` behaviour. The docs encourage you
to set `required=False` if you need to be able to submit a False value,
but this means you can't validate that a value was set if you use a
RadioWidget.
@MatMoore MatMoore force-pushed the add-created-by-to-issues branch from d270ba2 to c363b8b Compare November 4, 2024 10:01
@MatMoore MatMoore marked this pull request as ready for review November 4, 2024 10:19
@MatMoore MatMoore requested a review from a team as a code owner November 4, 2024 10:19
@MatMoore MatMoore changed the title [WIP] Add created by to issues Don't ask for email when reporting issues Nov 4, 2024
mitchdawson1982
mitchdawson1982 previously approved these changes Nov 4, 2024
Copy link
Collaborator

@mitchdawson1982 mitchdawson1982 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@mitchdawson1982 mitchdawson1982 left a comment

Choose a reason for hiding this comment

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

LGTM

@MatMoore MatMoore merged commit 526512c into main Nov 4, 2024
8 checks passed
@MatMoore MatMoore deleted the add-created-by-to-issues branch November 4, 2024 14:15
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.

2 participants