[FEATURE]: Sync member.email from user.email if linked #167

Closed
opened 2025-09-26 12:43:47 +02:00 by simon · 0 comments
Owner

Description

If members and users are linked, we want to make sure that the members mail adress is synced with the user mail adress. So, if a link exists, the member.mail field is always overridden by the user.mail field.
we ensure this by making the access to the fields member.email and user.email explicitly private and only allow access via specific functions

Acceptance criteria

  • if member is linked with user,
    • whenever the user.email field is updated, member.email field must be updated, too!
    • whenever the member.email field is updated, user.email field must be updated, too!
  • write tests that ensure:
    • member.mail field can never be accessed directly
    • user.mail field can never be accessed directly
    • syncing of fields works

Optional

  • low prio, if not too complex: write database constraint that ensures member.email ans user.email will be always equal

External or internal Dependencies

## Description If members and users are linked, we want to make sure that the members mail adress is synced with the user mail adress. So, if a link exists, the `member.mail` field is always overridden by the `user.mail` field. we ensure this by making the access to the fields member.email and user.email explicitly private and only allow access via specific functions ## Acceptance criteria - [ ] if member is linked with user, - [ ] whenever the user.email field is updated, member.email field must be updated, too! - [ ] whenever the member.email field is updated, user.email field must be updated, too! - [ ] write tests that ensure: - [ ] member.mail field can never be accessed directly - [ ] user.mail field can never be accessed directly - [ ] syncing of fields works ### Optional - [ ] low prio, if not too complex: write database constraint that ensures member.email ans user.email will be always equal ## External or internal Dependencies <!-- List any dependencies --->
simon added this to the Accounts & Logins milestone 2025-09-26 12:43:47 +02:00
simon added the
M
high priority
labels 2025-09-26 12:43:47 +02:00
simon added this to the Sprint 6 - 11.09 - 02.10. project 2025-09-26 12:43:47 +02:00
simon modified the project from Sprint 6 - 11.09 - 02.10. to Sprint 7 - 02.10 - 23.10. 2025-10-02 12:26:26 +02:00
moritz self-assigned this 2025-10-16 15:31:22 +02:00
simon modified the project from Sprint 7 - 02.10 - 23.10. to Sprint 8 - 23.10 - 20.11 2025-10-23 13:13:53 +02:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: local-it/mitgliederverwaltung#167
No description provided.