-
Notifications
You must be signed in to change notification settings - Fork 45
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
Make runtype switch from "normal" to "async" a sticky setting #536
Conversation
@spankywetfish
how about number 4? don't worry on who should build it. I can do that. |
Additionally, I've created an implementation of proposal 4. See branch runtype4. |
It looks like we've both been doing the same thing slightly different ways, I've also updated Api,js so that the runtype is persistent across sessions. I'd hazzard that as I consider myself in no way a programmer, yours implementation is more elegant. |
I've hidden my branch |
} | ||
// Store last used runType | ||
Utils.setStorageItem("local", "runtype", runType); | ||
return runType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when a page-refresh is done, all GUI values are unavoidably lost.
this function would then reset the value to "normal" and also save it.
- saving the value should only be done in function _updateRunTypeText, as that is the callback function from the dropdownlist.
- instead of
runType = "normal"
, the saved value should be retrieved:runType = Utils.getStorageItem("local", "runtype", "normal");
(which itself will have a default of 'normal')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to _updateRunTypeText,
and suggested modification for retrieval applied, all tested and linted.
Kudos, SonarCloud Quality Gate passed! |
Make runtype switch from "normal" to "async" a sticky setting (left out remote history)
for a next time... |
thanks for the addition! |
In general use with multiple hosts it is (IMHO) more practical to have the jobs run asynchronously so that there is no need to wait for completion before performing the next task.
The changes made to RunType.js reflect that priority and default the job input to "async".
I've been running with this configuration for approximately 18 months with no known issues.
N.B.
Apologies if this is not the correct format for a pull request, it's a first for me.
[Erwin added:]
better solution is to remember the choice so that both styles are equally supported, see below for discussion.