-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable expiration date #2017
Disable expiration date #2017
Conversation
Great, let me look though this early next week. What's the expected level of compatibility, listed roughly most-important first:
|
Well, I've tested the basic cases of disabling an active alarm "until..", and then either letting the alarm condition persist or clear and re-enter. Either way, the alarm was disabled and then re-appeared after the "until..." time. The UI code in ItemConfigDialog currently has constants like “6 hours” both where it populates the drop-down and where it parses it. When I added "5 minutes" to simplify tests, I had to do that in two places. When a trigger PV is enabled or disabled, that state is clearly indicated in the alarm tree, and it also shows in the ItemConfigEditor. When instead using "Disable until: ...", however, that's not fully obvious in the GUI. When you later open the ItemConfigEditor, it simply appears disabled, no 'until' time is shown. An easy solution would be to show the date and time until the alarm is disabled. This would also allow disabling for e.g. 5 hours by simply selecting the target time, even if "5 hours" is not listed in the drop down. When changing the configuration several times between enabled, disabled, enabled, disabled until ..., I keep getting it into a broken state where the alarm server will issue messsages in a loop.
|
Found one way to get into the broken state:
In this case, the "enabled":"2021-09-27T18:31:18.78767" is 6 hours into the future
|
Hi @kasemir, I've fixed the broken state bug, namely a bug generating a config message on alarm cancel, which was producing an enabled message.
As for the other UI items, I will be passing this PR over to another team member, as I'm formally transitioning roles this week. Thank you for your patience. |
Thanks for the fix, will try that in about a day and then I think we can merge this. |
This PR implements an expiration date for alarm disablement. Instead of true/false, the enabled message may use a future ISO time string, which the server then uses to schedule re-enablement. The configuration menu has also been updated with a date-time picker and a relative date dropdown. Selection of a date clears the enabled setting.