-
Notifications
You must be signed in to change notification settings - Fork 44
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
Showing output automatically upon completion and animated icon #578
Conversation
@gseguinbourgeois
but... |
@gseguinbourgeois ping |
I tried looking at the code to understand why and when the little loading icon changed color. Not sure it has to do with salt events. I am always running commands from the commandline and I tried using --async. I am not sure what good it brings. Thanks for your replies. |
@gseguinbourgeois
That piece of code is part of function With all that information combined there are now 2 solutions available: Currently, I'm thinking of using (A) with a fixed interval of 5 seconds when used. A play/stop button will be added to the relevant screens. The timer will be cancelled when the job (or all jobs) are finished. The state of the play/stop button will be remembered within the session. So only the first time you need to activate it. I've converted this issue into a (still empty) PR. You'll see some code appear there later. I may ask you a few times to try it. |
Thank you for taking the time to give all this information. Option A seems to answer the need even though we know an event based solution would be cleaner. I will be following this with much excitement! |
12d18e6
to
62a0021
Compare
There are a few places where jobs are handled:
|
@gseguinbourgeois please let me know whether this is the intended behavior and whatever suggestions you still have for this. |
@gseguinbourgeois While working on this, I found a general problem in SaltGUI for the use of timers. (again:) please let me know whether this is the intended behavior and whatever suggestions you still have for this. |
d861c09
to
3178f4e
Compare
@gseguinbourgeois |
3178f4e
to
849d247
Compare
(note for historic purposes)
In SaltGUI we hardly use any images and characters do not rotate.
|
Animation is just a nice to have and I understand that the arrow could be embedded data or a unicode character. I tried the branch and wasn't able to see a change in this view: First I see "(loading)", then I see: When I click the green arrow, I have the whole result. I am using command lines not from the Salt GUI. I use this tool only to monitor what is going on so "Manual Run" popup is not really an option for me. Not really using the https://salt-dev/#highstate view either. |
4ab9b00
to
849d247
Compare
849d247
to
f478f1f
Compare
Quality Gate passedIssues Measures |
But for a job that is still running, a play/pause button will be added to the panel. You may need to refresh the browser cache. typically CTRL-F5 does that (but simple F5 does not) |
ping? |
I remember this working as expected. Are we missing any tests here? |
that is my impression too
this is what @gseguinbourgeois last wrote. I provided a little bit of extra information and I was awaiting retest-outcome. hence my "ping". I always try to have all PRs that I create (and that are based on a request done here) to be verified by the original requestor. This verifies again that there are no technical problems and also confirms that the solution matches the original request. |
It took me a while to see the Play button on the top of the job item page (not used to it). I wasn't able to confirm it's working as expected. A long highstate process that I tested shows as done although it's still running (so the play button is gone). Not sure what could be happening in this case. |
Highstate jobs are expected to behave the same as any other type of job. |
@rcmoutinho |
Is your feature request related to a problem? Please describe.
I find it annoying when I'm waiting for a state/highstate to complete but all I get is a little reload icon color to see if it's done.
Describe the solution you'd like
I think the arrow icon should rotate or be animated when running and then, instead of changing to green or red based on the result, it should simply display the output automatically without having to click on it...
Describe alternatives you've considered
Any kind of animated icon that shows it is still in progress, but for showing the output, I don't see why it wouldn't be that way. There is a callback making the icon change color so it should probably be simple enough to make the call to show the output. Something that is always wanted.
It could be an option in the advanced section as well to please everyone.
Additional context
I'm using SaltGUI on a lot of minions and the less click I do, the happier I am! This is clearly a polishing feature, but those features could make this tool production ready.
Thanks a lot!