SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0001020: generic spinner for gui - MantisBT
MantisBT - Endian Firewall
View Issue Details
0001020Endian FirewallGUIpublic2008-06-26 08:442008-10-08 13:30
peter-endian 
lukas-endian 
urgentfeaturehave not tried
closedfixed 
2.2-rc1 
2.2-rc32.2-rc3 
0001020: generic spinner for gui
since our restart scripts run in background we need a spinner which informs the user that the script is still running.

as of now the GUI says "service yet another service restarted successfully" immediately after the save button has been pushed. This is not true, since the script is actually running in background and the user should wait until it is done. Then a notification message should be shown.


Solution:
- create a generic spinner "widget" for the GUI which runs if a service specific status file exists (/var/lock/services/openvpn)
- create a python class ServiceStatus which can be used by every restartscript which can:
  o create the status file at the very beginning of the restartscript
  o remove the status file at the end of the restartscript
  o the status file contains a JSON string
  o writes status messages into the file (.notify()). notify() can be triggered while the script is running, so the GUI displays what is going on.
  X .notify() could be combined with logger.info()/error() (.debug()?? when enabled) in a later task
  o the status file could contain a history of the last notifications
- spinner "widget" should display a notification regarding the content of the status file, if it exists.
- status history could be optionally displayed by the spinner widget
- If the status file does not exist anymore, the last message should be displayed on the GUI and removed with the next http request.
- error messages should be displayed with a respective spinner icon.

pay attention about permissions
No tags attached.
Issue History
2008-06-26 08:44peter-endianNew Issue
2008-06-26 08:44peter-endianStatusnew => assigned
2008-06-26 08:44peter-endianAssigned To => lukas-endian
2008-06-26 08:45peter-endianDescription Updated
2008-06-26 08:48peter-endianDescription Updated
2008-06-26 08:52peter-endianDescription Updated
2008-06-26 08:56peter-endianDescription Updated
2008-06-26 09:04peter-endianDescription Updated
2008-06-30 10:21peter-endianRelationship addedrelated to 0000934
2008-07-10 18:52peter-endianPrioritynormal => urgent
2008-07-24 16:05ra-endianTarget Version2.2-rc2 => 2.2-rc3
2008-08-19 17:02lukas-endianStatusassigned => resolved
2008-08-19 17:02lukas-endianFixed in Version => 2.2-rc3
2008-08-19 17:02lukas-endianResolutionopen => fixed
2008-10-08 13:30peter-endianStatusresolved => closed

There are no notes attached to this issue.