Skip to content

Strip whitespace and skip empty entries when parsing invitation email lists - #263

Merged
norkans7 merged 2 commits into
mainfrom
clean-emails-strip
Jul 27, 2026
Merged

Strip whitespace and skip empty entries when parsing invitation email lists#263
norkans7 merged 2 commits into
mainfrom
clean-emails-strip

Conversation

@norkans7

Copy link
Copy Markdown
Contributor

The comma-separated email list on the accounts management form was split without stripping, so the natural input a@x.com, b@y.com failed validation, and trailing commas broke the form. Validation and the downstream invitation creation now strip entries and skip empty segments, using identical values in both places. Covered by tests.

norkans7 added 2 commits July 27, 2026 13:34
The cleaned emails value is now the single source of truth: stripped,
lowercased and de-duplicated in clean_emails, so saving no longer
re-normalizes and duplicate addresses send only one invitation email.
@norkans7
norkans7 merged commit 5635f62 into main Jul 27, 2026
14 checks passed
@norkans7
norkans7 deleted the clean-emails-strip branch July 27, 2026 19:38
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.

1 participant