Feature #567
closedrevert node settings to administrator values
100%
Description
This is needed especially when people change settings accidentally that break Leginon operation.
Updated by Anchi Cheng over 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.
Updated by Eric Hou over 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
Updated by Eric Hou over 14 years ago
- Assignee changed from Eric Hou to Anchi Cheng
Updated by Anchi Cheng over 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.
Updated by Eric Hou over 14 years ago
- Assignee changed from Eric Hou to Jim Pulokas
great.
Could Jim please test this bug.
Thanks.
Updated by Amber Herold over 14 years ago
- Target version changed from 8 to Appion/Leginon 2.0.0
Updated by Jim Pulokas over 14 years ago
- Status changed from In Code Review to Closed
tested and works