-
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
1713: Fix MailNotification validation in CSV import #1715
Conversation
2c5fb52
to
037cc4d
Compare
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.
Looks good. tested on chrome
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.
Could you please provide a csv example to reproduce the issue?
I tried this, MailNotification is empty, but I don't get a validation error on the main branch.
Name,Ablaufdatum,Kartentyp,MailNotification
Qwerty,,Goldkarte,
you can use the one in the repo on the main branch (resources/bulk-bavaria) it should be marked red |
Exactly. The error was shown if |
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.
The error was shown if MailNotification is not present at all in the csv.
💭 okay, than it works as requested, but tbh I would expect 'missing column' error in such case, because this column is specified in csv format:
there is no clue, that this column can be ommited.
also I think it would be nice to mark mandatory columns with an * in the table view, when not all of them are mandatory.
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.
not sure if the thought above should block this PR, so adding my approval anyway
Yes, it is specified since it can also be passed to allow for automatic email notifications.
Sounds like a good addition. I'll create a new issue for this. We could also do something like Edit: New issue: #1738 |
# Conflicts: # administration/src/cards/Card.ts
Short description
Fix MailNotification validation in CSV import.
Proposed changes
-
if string is emptySide effects
None.
Testing
Resolved issues
Fixes: #1713