fleet/frontend/components/forms/validators
jacobshandling 2521daa1fe
Allow saving Fleet Queries with invalid* SQL, update error text, some JS –> TS housekeeping (#36637)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #35058 

- Open the Query save or save-as-new-ing flows in the UI even when a
syntax error is found in the Query's SQL.
- Continue blocking save when the query is empty
- Update tests
- JS –> TS housekeeping

<img width="1162" height="1248" alt="Screenshot 2025-12-02 at 4 31
47 PM"
src="https://github.com/user-attachments/assets/23b4e70d-f104-4b0e-b316-c03fb6492f59"
/>

<img width="1162" height="1248" alt="Screenshot 2025-12-02 at 4 31
50 PM"
src="https://github.com/user-attachments/assets/5b5ad0b7-36f0-4c5e-a2ff-e9665263c8f1"
/>


# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`
- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually

* "invalid" according to Fleet's UI. Though we make efforts to fix false
negatives here as we become aware of them, that parsing is imperfectly
aligned with SQL that osquery considers valid
2025-12-04 11:18:48 -08:00
..
valid_email Frontend: Improve URL and email validation (#18445) 2024-04-25 13:03:30 -04:00
valid_jwt_token License features (#1134) 2017-02-09 22:16:51 -05:00
valid_password update my device page to allow resend of profiles (#33108) 2025-09-22 14:31:06 +01:00
valid_url update contact url buttons on swift dialog popup for macos mdm migration (#34265) 2025-10-24 16:45:49 -04:00
validate_equality Fleet UI: No role = no access, refactor jsx class components to typescript functional components (#12953) 2023-08-02 11:29:49 -04:00
validate_numericality Create packs (#516) 2016-12-21 12:25:54 -05:00
validate_presence Fleet UI: 2FA (#24442) 2024-12-05 15:54:43 -05:00
validate_query Allow saving Fleet Queries with invalid* SQL, update error text, some JS –> TS housekeeping (#36637) 2025-12-04 11:18:48 -08:00
validate_yaml Updated API routes to use current format for frontend use (#5018) 2022-04-11 13:04:38 -07:00