Bug #784
closed
lack of GroupData entry causes schema-r12857.py to fail
Added by Anchi Cheng over 14 years ago.
Updated over 14 years ago.
Affected Version:
Appion/Leginon 2.0.2
Description
Came from jf database. (Leginon 1.6, dbem_1_5_0, project_1_1). They did not use group assignment at all in the past, not a problem previously because we didn't use GroupData for anything. But it now causes problem in upgrading because no group can be found for any user and we didn't consider that possibility. As a result, schema-r12857 can't find a group to assign administrator privilege and assign users to.
Hopefully a singular occurrence.
- Status changed from Assigned to In Code Review
- Assignee changed from Anchi Cheng to Amber Herold
- % Done changed from 0 to 100
Fix with r14566. Add a group for administrator user if it could not find a valid one.
Testing A:
1. empty leginondb.GroupData on a database at 1.7 upgrade status (after myamiweb/setup is done).
2. run dbschema/schema-r12857.py
3. a new group should be created and administrator (and all other) users assigned to that group.
Testing B:
1. removes only the group administrator user is assigned to on a database at 1.7 upgrade status (after myamiweb/setup is done).
2. make sure other users still have a valid group assignment.
3. run dbschema/schema-r12857.py
4. a new group should be created and administrator user assigned to that group.
5. all other users should still be assigned to their former group.
- Status changed from In Code Review to In Test
- Assignee changed from Amber Herold to Anchi Cheng
- Status changed from In Test to Closed
Also available in: Atom
PDF