Commit Graph
465 Commits
Author SHA1 Message Date
Jash ab4b1741c5 fix: API users controller with auth off, edit method checks, error status codes and empty password refs #6304 2026-11-16 08:59:15 +05:30
Isaac Connor bc9cb91c2f Merge pull request #6094 from singhharsh1708/fix/api-event-delete-500
fix: answer a successful API event delete with Deleted instead of a 500
2026-11-15 21:11:08 -05:00
Isaac Connor 6473a07f56 Merge pull request #6096 from singhharsh1708/fix/api-event-neighbors
fix: limit the API event view Next and Prev to events on monitors the user may view
2026-11-15 21:10:49 -05:00
Isaac Connor 3ee50a79c4 Merge pull request #6279 from singhharsh1708/fix/api-disk-percent-deleted-monitors
fix: leave deleted monitors out of the API disk usage report
2026-11-15 20:50:36 -05:00
Isaac Connor 3d5cfa85cd Merge pull request #6195 from singhharsh1708/fix/api-zone-add-website
fix: stop the zones API starting zmc for a WebSite monitor when a zone is added
2026-11-15 20:40:57 -05:00
singhharsh1708 7c177ace7c fix: leave deleted monitors out of the API disk usage report 2026-11-16 04:32:46 +05:30
singhharsh1708 c102eb76aa fix: stop the groups API add warning or failing on a missing or array MonitorIds 2026-11-16 03:58:58 +05:30
singhharsh1708 43cc08e198 fix: stop the zones API starting zmc for a WebSite monitor when a zone is added 2026-11-16 03:03:04 +05:30
singhharsh1708 4b12d8b7b3 fix: answer a successful API event delete with Deleted instead of a 500 2026-11-16 02:28:52 +05:30
singhharsh1708 2910081a92 fix: limit the API event view Next and Prev to events on monitors the user may view 2026-11-16 02:28:51 +05:30
Isaac ConnorandClaude Opus 4.8 d248166000 fix: remove the per-user ability to disable the API refs #4908
Disabling the API per user made pages that rely on it (Montage Review and
others) fail silently: the AJAX event queries came back 401
"API disabled for: <user>" and the page just drew empty boxes with no
indication of why.

Rather than keep a foot-gun that makes the UI look broken, drop the per-user
API-disable control entirely:

- AppController no longer rejects an authenticated user because APIEnabled != 1;
  the API is available to any authenticated user.
- Remove the APIEnabled selector from the user edit view and the APIEnabled
  column from the users list and the API options tab. The API options tab keeps
  its token management (New Token, Revoke Token, Revoke All Tokens).
- The user token section no longer hides itself based on APIEnabled.

The Users.APIEnabled column and the model default are left in place so no
database migration is needed; the value is simply no longer consulted.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-15 11:58:24 -05:00
Isaac Connor f3b2027e1b Merge pull request #5945 from AJ0070/api-monitor-zone-event-fixes
fix: API deleted monitors, default zone, monitor and zone validation, event pagination and file fields
2026-11-15 11:31:23 -05:00
Isaac Connor 8d3b582ccb Merge pull request #5984 from AJ0070/api-disk-percent-consistent
fix: consistent getDiskPercent result and per-monitor storage path
2026-11-15 11:26:36 -05:00
Isaac Connor 2a12d5a0ec Merge pull request #5978 from AJ0070/api-filter-in-values
fix: API IN values, events limit/page validation and default order
2026-11-15 11:26:11 -05:00
Isaac Connor 6c557c95f4 Merge pull request #5982 from AJ0070/api-delete-json-response
fix: JSON responses for API deletes, 500 when the delete fails
2026-11-15 11:25:56 -05:00
Isaac Connor 598a84f3b5 Merge pull request #5689 from AJ0070/zmu-credentials-escaping
fix: stop escapeshellcmd mangling escaped zmu and daemon arguments
2026-11-15 11:24:34 -05:00
Jash d57fc6339d fix: return the same usage shape for one monitor in getDiskPercent and use each monitor's storage area refs #5983 2026-11-15 13:22:58 +05:30
Jash 8924411e68 fix: answer API deletes with a JSON message and a 500 on failure instead of an empty 200 refs #5981 2026-11-15 13:22:49 +05:30
Jash ab5f1bca2d fix: parse API IN:(a,b) values, validate events limit and page, and order the events index by Id refs #5977 2026-11-15 12:58:02 +05:30
Jash d949f57f6f fix: add the default All zone when the API creates a monitor refs #5944 2026-11-15 11:17:26 +05:30
Jash 42a2345a88 fix: hide deleted monitors from the API monitor and group lists refs #5944 2026-11-15 11:17:13 +05:30
Isaac Connor f6fb3c5cf5 Merge pull request #5755 from AJ0070/group-fixes
fix: monitor group filter, edit modal and delete
2026-11-14 23:50:15 -05:00
Isaac Connor 8a332543b3 Merge pull request #5743 from AJ0070/ms-api-add-remote-start
fix: start zmc on the monitor's own server when the API adds a monitor
2026-11-14 23:32:15 -05:00
Isaac Connor dc9b7be9ae Merge pull request #5727 from AJ0070/api-tags-perm
fix: check Events permission in the tags API
2026-11-14 19:56:13 -05:00
Isaac Connor 18dee7a711 Merge pull request #5803 from AJ0070/zone-followups
fix: zone filter typing, pixel zone bounds, API reload and delete restarts
2026-11-14 18:48:36 -05:00
Isaac Connor 28d463b325 Merge pull request #5913 from AJ0070/api-snapshot-tag-saves
fix: API snapshots and tags index, save errors and tag delete
2026-11-14 18:46:41 -05:00
Isaac Connor e2b3550b1b Merge pull request #5919 from AJ0070/api-admin-resource-saves
fix: id pinning and validation errors in API resource saves
2026-11-14 18:05:45 -05:00
Jash 001f97069a fix: answer the API event data add and edit in JSON with the result and validation errors refs #5918 2026-11-14 23:05:47 +05:30
Jash 65b56bc90b fix: pin the API encoder template id on save, answer a failed save with 422 and require Params on create refs #5918 2026-11-14 23:05:47 +05:30
Jash 4f14a7fc29 fix: serialize the API zone preset view, pin its id on save and answer a failed add or edit with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Jash e599232ff5 fix: look up an API server stat by its own alias in view, pin its id on save and answer a failed add or edit with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Jash dbc664a6f4 fix: pin the API manufacturer and model id on save, refuse duplicate names and answer a failed add with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Jash 0d2cdc7dbc fix: pin the API storage id on save, answer a failed add or edit with the validation errors and refuse to delete a storage area in use refs #5918 2026-11-14 23:05:46 +05:30
Jash 5866cdc6eb fix: pin the API server id on save and answer a failed server add or edit with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Jash 7c466cee05 fix: use the Id column as the API log key, apply named filters to the logs index, serialize the log view and require the not null log fields refs #5916 2026-11-14 23:05:29 +05:30
Jash 651e107f41 fix: read EventIds from a flat or JSON API tag add so the events are linked refs #5912 2026-11-14 23:05:16 +05:30
Jash a37b7c0952 fix: answer a failed API tag add or edit with the validation errors, refuse a duplicate tag name and let a tag with events be deleted refs #5912 2026-11-14 23:05:16 +05:30
Jash da502b0a5e fix: read EventIds from a flat or JSON API snapshot add so the events are linked refs #5912 2026-11-14 23:05:16 +05:30
Jash 9bb77bbf6b fix: stop the API snapshots index repeating a snapshot per event, return the events in associations and the validation errors on a failed add or edit refs #5912 2026-11-14 23:05:16 +05:30
Isaac Connor 40ada52b42 Merge pull request #5835 from AJ0070/api-input-validation
fix: validate API input against the column types before saving
2026-11-14 11:59:38 -05:00
Isaac Connor 7ba565221a Merge pull request #5827 from AJ0070/api-filter-fixes
fix: API filter parsing for intervals, IS NULL, operators and ambiguous columns
2026-11-14 11:52:07 -05:00
Isaac Connor a4daebd2a6 Merge pull request #5829 from AJ0070/api-host-fixes
fix: API daemon control permission level, daemonCheck error and daemonStatus
2026-11-14 11:51:22 -05:00
Isaac Connor dd9134dcdd Merge pull request #5831 from AJ0070/api-groups-fixes
fix: API group parent loops and add/edit error responses
2026-11-14 11:50:52 -05:00
Isaac Connor 0796ccd825 Merge pull request #5833 from AJ0070/api-edit-responses
fix: API configs and zones edit responses
2026-11-14 11:50:23 -05:00
Jash 001891a5f1 fix: ignore non-string token and password request values refs #5858 2026-11-14 19:16:47 +05:30
Jash 78f591b721 fix: build the legacy plain credentials from the authenticated user refs #5858 2026-11-14 19:16:47 +05:30
Jash 0434acc1fb fix: serialize the roles index for JSON responses refs #5858 2026-11-14 19:16:47 +05:30
Jash 66619319d9 fix: validate number, date and enum values in API saves so a bad value is a field error and not a 500 refs #5834 2026-11-14 18:57:35 +05:30
Jash 17daba318b fix: return the validation errors in the API zone edit response instead of printing them refs #5832 2026-11-14 18:57:29 +05:30
Jash 89a9de0e92 fix: answer the API config edit in JSON instead of an empty body or the template source refs #5832 2026-11-14 18:57:28 +05:30