Bug #7607
closedAwaited flag is removed inconsistently
0%
Description
When new user asks for an account and indicates which group they want to be member of, there are (at least) three ways to activate them:
- by context menu in users/NNN/show
This removes wanted membership flag.
- by manually adding through users/NNN/update
This does not remove the flag.
- by manually adding through groups/MMM/update
Dunno.
Second scenario is thus wrong and we should fix it, and when at it we should check the third scenario (and possible others?) as well.
Related issues
Updated by Pavel Kácha about 2 years ago
- Related to Bug #7608: User activation updates changelog of just one object added
Updated by Jakub Judiny almost 2 years ago
- Status changed from New to In Progress
Updated by Jakub Judiny almost 2 years ago
It was decided that the best way to fix this is by adding a database trigger (SQLAlchemy event method).
The other possible solution discussed was a database model change: merging _asoc_group_members and _asoc_group_members_wanted to one table with extra column representing the status of the membership (active/wanted). It would require large changes in code, because there is no easy way to write it in SQLAlchemy without changing how group.members/group.wanted_members attributes behave.
Updated by Jakub Judiny almost 2 years ago
- Assignee changed from Jakub Judiny to Rajmund Hruška
Rajmund Hruška please review the code, thank you.
Updated by Rajmund Hruška almost 2 years ago
- Status changed from In Progress to In Review
- Assignee changed from Rajmund Hruška to Jakub Judiny
- Target version changed from Backlog to 2.11
Jakub Judiny wrote in #note-5:
Rajmund Hruška please review the code, thank you.
LGTM. Merged into devel and deployed on mentat-alt.
Updated by Rajmund Hruška over 1 year ago
- Status changed from In Review to Closed