Commit Graph
650 Commits
Author SHA1 Message Date
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
Jash cd48a6967d fix: accept the webm output container when saving a monitor through the API refs #5928 2026-11-15 09:47:15 +05:30
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
Isaac Connor 2e3fd5e7e8 Merge pull request #5915 from AJ0070/api-resource-routes
fix: map API storage, camera_models and zone_presets resources
2026-11-14 18:05:23 -05:00
Isaac Connor 312a16447c Merge pull request #5917 from AJ0070/api-log-key
fix: use Id as the API log key and fix logs view, add and filters
2026-11-14 18:05:02 -05:00
Isaac Connor 07153c73d8 Merge pull request #5811 from AJ0070/notifications-validation
fix: validate Notifications API input
2026-11-14 15:38:41 -05:00
Jash b5fa1aa4b3 fix: check string lengths against the schema in API saves so an over-long value is a field error and not a 500 refs #5918 2026-11-14 23:05:47 +05:30
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 737377d90c fix: map the API storage, camera_models and zone_presets resources to their controllers refs #5914 2026-11-14 23:05:22 +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 23daf1e42c fix: validate username uniqueness and length on the User model 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 d0531a5072 fix: return a validation error instead of a 500 for an API state without a definition or a zone without coords refs #5834 2026-11-14 18:57:35 +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
Jash b98818e5bf fix: include the save result in the API group edit response refs #5830 2026-11-14 18:57:23 +05:30
Jash 3657a7e2f4 fix: answer with the validation errors instead of a 500 when an API group add fails refs #5830 2026-11-14 18:57:23 +05:30
Jash 3221599a3f fix: refuse an API group edit that puts a group under itself or its descendants refs #5830 2026-11-14 18:57:23 +05:30
Jash 27e0da25f4 fix: report a monitor daemon as running in the API only when zmdc says it is refs #5828 2026-11-14 18:57:17 +05:30
Jash 950009dd5b fix: call ZM\Error for invalid daemon characters in the API host controller and reset the count refs #5828 2026-11-14 18:57:16 +05:30
Jash accde152ed fix: let an account with System Edit use the API daemonControl check and status commands refs #5828 2026-11-14 18:57:16 +05:30
Jash 0cd93c72e8 fix: qualify the API groups index filter fields so filtering on Id is not ambiguous refs #5826 2026-11-14 18:57:10 +05:30
Jash 6aa2f9b984 fix: qualify the API events index filter fields so Id or MonitorId with a GroupId or Tag filter is not ambiguous refs #5826 2026-11-14 18:57:10 +05:30
Jash 66534da715 fix: accept IS NULL in API named filters and answer 400 for operators that always failed refs #5826 2026-11-14 18:57:10 +05:30
Jash 9e8dea5c88 fix: answer 400 for an unknown interval unit in the API events search and consoleEvents refs #5826 2026-11-14 18:57:10 +05:30
Jash 79f9f593b8 fix: validate Notifications token, platform and numeric fields so bad input returns 400 not 500 refs #5810 2026-11-14 18:42:35 +05:30
Jash a6a0cb33f4 fix: reload the capture daemon when a zone is edited or deleted through the API refs #5802 2026-11-14 18:30:09 +05:30