Skip to content

Klaus/add test auto revert mode#40

Merged
klues merged 9 commits intomasterfrom
klaus/add-test-auto-revert-mode
Nov 6, 2019
Merged

Klaus/add test auto revert mode#40
klues merged 9 commits intomasterfrom
klaus/add-test-auto-revert-mode

Conversation

@klues
Copy link
Contributor

@klues klues commented May 14, 2019

Added an new optional "test-and-auto-revert" mode to WebACS.

Background: one of our clients uses an AsTeRICS based computer control and would like to be able to adapt the solution on his own. Unfortunately this is currently not possible because as soon as he clicks "upload model" in ACS the old (computer control) model is stopped and it's not possible to do a click on "start model" afterwards.

Idea: my approch is a mode where the user can click on "test model" which uploads and starts the current model in ACS and sets a timer for reverting it to the old model after e.g. 30 seconds. Therefore a user with an AsTeRICS based computer control solution can safely edit and test his own models.

Implementation:
In "Misc." menu I've added two options:
Screenshot_1
By enabling test-auto-revert mode the menu changes to:
Screenshot_2
--> Upload Model changes to Test model and there is no Stop Model or Pause Model anymore in order to prevent unintended stopping of the (computer control) model.

A click on Test model uploads and starts the current model and starts a timer that is shown in the status bar:
Screenshot_3
After the time is finished the previous (working computer control) model is re-uploaded and started. The timeout can be prolonged or directly cancelled using the provided buttons.

TODO:
the options in Misc. are added in a quick and dirty way - what do you think you it should look like?

klues added 7 commits May 14, 2019 14:48
…ble in subsequent files, added testModelButtons, added testMode options, added testStatus in statusBar
…depending on ARE status, added logic for "testModel" (auto-revert) functionality, added logic for settings for test mode (enable/disable and timeout)
@klues klues requested review from deinhofer and sabicalija May 14, 2019 13:48
@klues
Copy link
Contributor Author

klues commented May 20, 2019

adapted status bar, now looks like this:
Screenshot_14

I think it makes sense to give the user the possibility to also approve a model that is currently being tested ;)

@deinhofer
Copy link
Contributor

Hi,

I really like the idea!! 👍
Just one suggestion for improvement: What about a shortcut for the Test model action?
Because I think any developer would benefit from this feature and having a shortcut could speed up the development workflow again.

@deinhofer
Copy link
Contributor

what about this PR? I think we can merge it. Maybe you could add a shortcut as you already know how to do it :-)

@klues
Copy link
Contributor Author

klues commented Nov 6, 2019

for now I'll merge it as it is, the shortcut can be added later...

@klues klues merged commit 73ed367 into master Nov 6, 2019
@klues klues deleted the klaus/add-test-auto-revert-mode branch November 6, 2019 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants