-
Notifications
You must be signed in to change notification settings - Fork 3
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
836: Send verification emails #870
836: Send verification emails #870
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If one email cannot be sent (, e.g. because of invalid from address) then the application is not persisted.
Hmm... Not sure if this is a good approach. I think it would be a good approach, if the user got a proper error message when trying to submit the application. Without a proper error message, the user would have to guess what the problem is...
...in/kotlin/app/ehrenamtskarte/backend/application/webservice/EakApplicationMutationService.kt
Outdated
Show resolved
Hide resolved
I think we generally are really wonky with our error handling. Imo the graphql interface should always return sth like . {
"status": <http_status_like>,
"message": <maybe_optional_because_of_translations>,
"result": <only_for_queries>
} I'll open an issue for this. |
1f7c2f8
to
42a7140
Compare
We are super wonky, we never introduced a concept for handling errors^^ Related: #324 The alternative to your suggestion is to use the graphql philosophy and use/improve GraphQL errors: https://www.apollographql.com/docs/react/data/error-handling/ |
...in/kotlin/app/ehrenamtskarte/backend/application/webservice/EakApplicationMutationService.kt
Show resolved
Hide resolved
After thinking about this a while I think this is pretty difficult to handle. consider two emails already have been sent and one failed. In that case the organization mitarbeiter will still receive emails with an (invalid) link then, which feels much like spam to me. Therefore I reconsidered that we do not roll back here and let the mitarbeiter of the region handle the situation which would go like this in the optimal situation. |
906efa9
to
b11a414
Compare
If one email cannot be sent (, e.g. because of invalid from address) then the application is not persisted.