Project

General

Profile

Actions

Bug #784

closed

lack of GroupData entry causes schema-r12857.py to fail

Added by Anchi Cheng almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
07/27/2010
Due date:
% Done:

100%

Estimated time:
Affected Version:
Appion/Leginon 2.0.2
Show in known bugs:
No
Workaround:

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.

Actions #1

Updated by Anchi Cheng almost 14 years ago

  • 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.

Actions #2

Updated by Amber Herold almost 14 years ago

  • Status changed from In Code Review to In Test
  • Assignee changed from Amber Herold to Anchi Cheng

Need db to test with

Actions #3

Updated by Anchi Cheng over 13 years ago

  • Status changed from In Test to Closed
Actions

Also available in: Atom PDF