Project

General

Profile

Actions

Feature #567

closed

revert node settings to administrator values

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

Status:
Closed
Priority:
High
Assignee:
Category:
-
Start date:
05/25/2010
Due date:
% Done:

100%

Estimated time:
Deliverable:

Description

This is needed especially when people change settings accidentally that break Leginon operation.

Actions #1

Updated by Anchi Cheng almost 14 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Anchi Cheng to Eric Hou
  • % Done changed from 0 to 100

This is done by using the same series of queries I used to retrieve administrator node settings in admin_settings.php and used to make inc/setdefault.php imported during installation. I put general queries into inc/leginon.inc, functions that I need to reuse in inc/admin.inc, and ones specific to revert settings in revertsettings.php. I will change admin_settings.php to use these common functions later.

Hope I am not breaking any rules here by using eval()

r14191 and r14192

Testing:

1. Start Leginon with a user that does not matter (new or someone who will never use leginon).
2. Start an application such as MSI-T (1.6)
3. Change settings of a node. For example, change Exposure_Targeting node to queue up targets.
4. As administrator, go to admin.php and click on Revert Settings icon
5. Choose the user in the list, and click on Revert button.

Expecting result:
1. If restart Leginon with the same application, the settings that have changed should be reverted.
2. Only those in administrator group or the user in question (need to be in users group) can do this.

Actions #2

Updated by Eric Hou almost 14 years ago

  • Status changed from In Code Review to Assigned

Hi Anchi!
You commit the code in to the branch. Could you commit the code in to trunk?

Thanks.

Eric

Actions #3

Updated by Eric Hou almost 14 years ago

  • Assignee changed from Eric Hou to Anchi Cheng
Actions #4

Updated by Anchi Cheng almost 14 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Anchi Cheng to Eric Hou
  • Target version changed from Appion/Leginon 2.0.0 to 8

r14195 is for the trunk.

Actions #5

Updated by Eric Hou almost 14 years ago

  • Assignee changed from Eric Hou to Jim Pulokas

great.
Could Jim please test this bug.

Thanks.

Actions #6

Updated by Amber Herold almost 14 years ago

  • Target version changed from 8 to Appion/Leginon 2.0.0
Actions #7

Updated by Jim Pulokas almost 14 years ago

  • Status changed from In Code Review to Closed

tested and works

Actions

Also available in: Atom PDF