Commit Graph
678 Commits
Author SHA1 Message Date
Isaac Connor 49e0cc2f99 Merge pull request #6625 from singhharsh1708/fix/r1-api-group-delete-reparent
fix: deleting a group through the API keeps its children under its parent
2026-11-17 21:19:56 -05:00
singhharsh1708 6ab9e959c8 fix: deleting a group through the API keeps its children under its parent 2026-11-18 00:19:18 +05:30
singhharsh1708 007aff0529 fix: API models index filters on Name or Id without an ambiguous column error 2026-11-18 00:18:49 +05:30
Isaac Connor 623c890037 Merge pull request #6357 from AJ0070/fix-api-zones-monitors-index
fix: API zone save sets area and percent thresholds, zones and presets index filters, monitors sort
2026-11-17 08:43:48 -05:00
Isaac Connor 0f716930c2 Merge pull request #6361 from AJ0070/fix-api-misc-controllers
fix: API roles save to the URL id and work without auth, index filters, in-use deletes, tags ambiguous column
2026-11-17 08:39:28 -05:00
Isaac Connor 4ca5e08a70 Merge pull request #6359 from AJ0070/fix-api-states-servers
fix: API states save to the URL id, change requires a state, states and servers index filters
2026-11-17 08:38:27 -05:00
Isaac Connor 940b88fbf8 Merge pull request #6576 from AJ0070/fix-api-event-delete-archived
fix: API archived event delete returns 400
2026-11-17 08:18:00 -05:00
Isaac Connor f3b79301b2 Merge pull request #6574 from AJ0070/fix-api-monitor-delete-twice
fix: API delete of an already deleted monitor
2026-11-17 08:14:36 -05:00
Isaac Connor e1bc24fc1b Merge pull request #6568 from AJ0070/fix-api-events-auth-params
fix: API events index with legacy auth parameters
2026-11-17 08:14:18 -05:00
Isaac Connor 4d5ebcbfa1 Merge pull request #6570 from AJ0070/fix-api-event-stateid
fix: API event add without StateId
2026-11-17 08:12:19 -05:00
Jash 35b7d67921 fix: API refuses to delete an archived event with a 400 refs #6575 2026-11-17 10:06:19 +05:30
Jash 2922c1bee3 fix: API monitor delete answers 404 for an already deleted monitor refs #6573 2026-11-17 10:06:09 +05:30
Jash 7348cc0318 fix: API snapshot add fills CreatedBy and CreatedOn refs #6571 2026-11-17 10:05:59 +05:30
Jash 9d7f95538f fix: API event add defaults StateId to the active run state refs #6569 2026-11-17 10:05:50 +05:30
Jash 315150f0f3 fix: API events index ignores legacy auth query parameters refs #6567 2026-11-17 10:02:52 +05:30
Isaac Connor 49add21cbd Merge pull request #6464 from AJ0070/fix-api-models-assoc-unique
fix: API CameraModel manufacturer, EncoderTemplate and Role uniqueness
2026-11-16 19:00:04 -05:00
Jash 9b80e9c086 fix: API camera model manufacturer join, encoder template and role name uniqueness refs #6463 2026-11-16 17:37:08 +05:30
Jash dacc9725f5 fix: API roles save to the URL id and work without auth, index filters, in-use deletes, tags ambiguous column refs #6360 2026-11-16 12:35:16 +05:30
Jash 42837b5593 fix: API states save to the URL id, change requires a state, states and servers index filters refs #6358 2026-11-16 12:30:29 +05:30
Jash 33b4c40368 fix: API zone save sets area and percent thresholds, zones and presets index filters, monitors sort refs #6356 2026-11-16 12:28:41 +05:30
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 3860485159 Merge pull request #6197 from singhharsh1708/fix/api-model-text-rule
fix: stop the API logging a missing validation handler on every user preference and event data save
2026-11-15 20:42:15 -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 c85c87ae53 fix: stop the API logging a missing validation handler on every user preference and event data save 2026-11-16 03:05:12 +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 8599c75703 fix: return 0 for the API event fileExists and fileSize when the video is missing refs #5944 2026-11-15 11:17:26 +05:30
Jash 50b900cb57 fix: report no next page in the unpaginated API events index refs #5944 2026-11-15 11:17:26 +05:30
Jash 462409ce1a fix: validate API zone coordinates and write percentages with decimals refs #5944 2026-11-15 11:17:26 +05:30
Jash f7e16bdaa7 fix: reject a blank monitor name, zero size and unknown server or storage in the API refs #5944 2026-11-15 11:17:26 +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 a80850bd06 Merge pull request #5929 from AJ0070/encoder-form-fixes
fix: monitor form encoder list, codec filter and API webm container
2026-11-14 23:49:40 -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