Bug #7607
closed
Awaited flag is removed inconsistently
Added by Pavel Kácha almost 2 years ago.
Updated over 1 year ago.
Category:
Development - Core
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 to Bug #7608: User activation updates changelog of just one object added
- Assignee set to Jakub Judiny
- Status changed from New to In Progress
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.
- Assignee changed from Jakub Judiny to Rajmund Hruška
- 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
- Status changed from In Review to Closed
Also available in: Atom
PDF