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

Add email checker for person links #5478

Merged
merged 14 commits into from
Jan 23, 2023
Merged

Conversation

tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Aug 29, 2022

  • Email is not mandatory, but if used it is checked like in registrations
  • Prevents adding two people with the same email
  • Checks for secondary emails and prevents adding the same user with a different email
  • Warns if the person already has an Indico account
  • Warns if the person is already linked to the event - in this case if there is already a person link, it will be updated with the new data and the old link will be deleted. This takes care of the issue where there are existing person links linked to deleted objects preventing users from changing emails when updating person links.

image
image
image
image

indico/modules/events/controllers/api.py Outdated Show resolved Hide resolved
indico/modules/events/fields.py Outdated Show resolved Hide resolved
indico/modules/events/fields.py Outdated Show resolved Hide resolved
indico/modules/events/persons/util.py Outdated Show resolved Hide resolved
@tomasr8 tomasr8 force-pushed the person-link-modal branch 4 times, most recently from 6522295 to b21b86e Compare September 13, 2022 12:23
indico/modules/events/controllers/api.py Outdated Show resolved Hide resolved
indico/modules/users/schemas.py Outdated Show resolved Hide resolved
@tomasr8 tomasr8 force-pushed the person-link-modal branch 2 times, most recently from ff1fe1f to f92c5fa Compare October 13, 2022 09:34
@ThiefMaster ThiefMaster force-pushed the person-link-modal branch 2 times, most recently from f10d6cf to d0e8cb1 Compare November 25, 2022 12:19
@ThiefMaster ThiefMaster added this to the v3.2 milestone Nov 28, 2022
CHANGES.rst Outdated Show resolved Hide resolved
indico/modules/events/blueprint.py Outdated Show resolved Hide resolved
indico/modules/events/blueprint.py Outdated Show resolved Hide resolved
indico/modules/events/blueprint.py Outdated Show resolved Hide resolved
indico/modules/events/controllers/api.py Outdated Show resolved Hide resolved
indico/modules/events/controllers/api.py Outdated Show resolved Hide resolved
indico/modules/events/util.py Outdated Show resolved Hide resolved
indico/modules/events/blueprint.py Outdated Show resolved Hide resolved
indico/modules/events/util.py Outdated Show resolved Hide resolved
indico/modules/users/schemas.py Outdated Show resolved Hide resolved
@tomasr8 tomasr8 force-pushed the person-link-modal branch 5 times, most recently from c6c1167 to 898e695 Compare December 9, 2022 13:42
Allows changing to an email which is already used
by another event person. This will cause the new person link
to be updated and the old person link will be deleted.

Also adds basic email validation similar to that in registration.
@ThiefMaster ThiefMaster merged commit 3cea386 into indico:master Jan 23, 2023
@ThiefMaster ThiefMaster deleted the person-link-modal branch January 23, 2023 10:33
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