Enhanced Highstate page
Is your feature request related to a problem? Please describe. I would like a enhanced hightstate page on which we could define some display parameters.
Describe the solution you'd like the enhanced page would allow (at least) selection of the salt-commands to consider for the page :
- with the choice "state.highstate+state.apply" it would have the current functionality
- with the choice "state.highstate" it would be limited to that information only
- with the choice "state.apply" it would be limited to that information only
Additional context we only use "state.highstate" to define whether the server is in highstate or not, and "state.apply" is used only for deployment. So this new page could be very useful. see also : https://github.com/erwindon/SaltGUI/issues/458
@pju51 the highstate page indeed uses some arbitrary choices. My initial choices were:
- to use state.highstate+state.apply to get the initial listing
- to ignore state.sls_id commands
- to use at most 10 jobs from the jobs history for this
your request adds a bit of flexibility to these choices.
I'll add a dropdown menu to make the requested choice.
design remark: This requires a "settings" menu. So far panels only had a "command" menu. Except for the Jobs page where that menu actually contains settings instead of commands. Time to separate these 2. Panels should be able to have a "command" menu and/or a "settings" menu. Note the "or", so it can be both. The "settings" menu will be indicated by a gear-icon, the "command" menu will stick to the hamburger-icon.
This will be a separate commit on branch highstate-choice. It may be cherry-picked later.
migrated issue to PR
@pju51 the "highstate" page now has the option to select for the use of each of state.apply, state.highstate. the choice is remembered in the browser memory, but outside the session, so that it does not need to be applied again-and-again. can you please take a look at this? (I know that your availability in the next weeks is very low, take your time)
Hello @erwindon ,
still in draft or I can test ? I didn't quite understand the question, can you clarify. thx
@pju51 welcome back!
still in draft or I can test ?
It is draft because it is still being tested (by you), I'm not currently changing anything. this is mainly a precaution, so that I do not accidentally merge.
same information, different wording: I updated the "highstate" page. An option was added to select whether the results from state.apply and/or state.highstate are used to present the data. This choice is not configurable in the /etc/salt/master file, but it is remembered in the browser that you use.
note that I just rebased again, use "git pull -r" to update
Testing..
Highstate page only show the last result ?
Example: I execute on a server a state.apply then a state.highstate for X or Y reasons. I can only see the result for state.highstate ?
from my side, each day a state.highstate (in test mode) is executed to check if we have some server not in highstate, Is it possible to keep this information ? it allows me to monitor my servers and check their status.
Highstate page only show the last result ? yes for each minion, the latest state is shown, but based only on the selected command types, so
state.applyand/orstate.highstate, that you select in the panel-settings-menu (the one with the cog). starting with this branch, menu's that have only settings are marked with a cog, other menus still have the hamburger icon.
SaltGUI currently never makes a distinction between regular jobs and jobs with test=true. It just does not even look at that parameter.
Should the menu include choices to filter for "test=true" and not("test=true") on this page?
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
ok so the filter works like a charm.
not needed to a filter for "test=true" for me.
ok, thx! I'll merge it. (that is, as soon I have my primary development machine working again)
note: the information from https://pythontechworld.com/issue/saltstack/salt/62410 was helpful to fix my development machine