-
Notifications
You must be signed in to change notification settings - Fork 378
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
Fleet UI run script disabled when host has scripts enabled and on orbit < 1.24.0 #18382
Comments
Here’s at least part of the frontend bug, I think, where the null value would be coerced to false when generating the dropdown options and cause the option to be disabled. |
@gillespi314 so |
Looks like @getvictor saw this coming a week ago. |
@rachaelshaw I don't see anything in the Figma for these edge cases. How should the UI handle them? |
^ need to continue to have our old logic as a fallback |
@georgekarrv @rachaelshaw how about in this case we don't disable the option, but add a tooltip to the effect of "This host may not actually be able to run scripts"? |
Based on this commit, I think so. |
@jacobshandling discussed @ design review, and decided to just keep the options enabled as before when We noticed that the tooltips for the disabled items are missing "and refetch host vitals" though (it was added later as a response to a concern Victor brought up, and the front-end may have been done already). Figma |
…ith warning (#18386) ## Addresses #18382 - Do not disable option when `scripts_enabled: null` - Update disabled tooltip copy for 3 actions - Generalize dropdown with tooltip component to work for disabled and non-disabled (now unused, but was used in prototype before product input) cases ![Screenshot 2024-04-18 at 11 52 15 AM](https://github.com/fleetdm/fleet/assets/61553566/b1a08086-d39e-47ea-af8f-57f4e391e106) ![Screenshot 2024-04-18 at 12 29 18 PM](https://github.com/fleetdm/fleet/assets/61553566/25072573-ee79-45f4-951a-af072645a7d6) - [x] Added/updated tests - [x] Manual QA for all new/changed functionality - [x] Confirm previously disabled options with tooltips still work as expected with generalized dropdown option with tooltip --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
Fleet's script can run, |
Fleet version: main Fleet 0.0.0-SNAPSHOT-6b6b6e6 • Go go1.21.7
Fleetd version: 1.23.0
Web browser and operating system:
💥 Actual behavior
🧑💻 Steps to reproduce
🕯️ More info (optional)
The fleet API is not broken since you can still correctly run scripts via
fleetctl
and the api.Fix how UI is determining if scripts are enabled to support more than just the latest orbit version.
The text was updated successfully, but these errors were encountered: