Repository navigation
PTZ controls: drop the Type column, as ZoneMinder 1.39.39 did - #42
Open
connortechnology wants to merge 4 commits into
Open
connortechnology wants to merge 4 commits into
connortechnology wants to merge 4 commits into
Conversation
npm audit --audit-level=high now fails every branch on newly published advisories in vite (<=7.3.6), seroval (<=1.6.2) and source-map-js (1.0.0-1.2.1). `npm audit fix` moves the lockfile to vite 7.3.7, seroval 1.6.12 and source-map-js 1.2.2; package.json is unchanged. The seeded e2e job loads ZoneMinder master's schema, which dropped Controls.Type (ZoneMinder 104327349), so the seed's positional `INSERT INTO Controls VALUES` had one value too many and failed with ERROR 1136. Name the columns instead and drop Type, so a column added or removed elsewhere in Controls no longer breaks the load. Stock rows now live in db/controls.sql; the comment points there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ZoneMinder 1.39.39 dropped Controls.Type (ZoneMinder 104327349), so zm-api now returns `type: null` for every control. The PTZ controls page searched with `c.type.toLowerCase()`, which throws as soon as anything is typed in the search box; client.ts reports a TypeError as "Cannot reach the server.", which is what the seeded e2e saw. Type the field as nullable and search `c.type ?? ''`. The e2e check that the seeded row says "Ffmpeg" now checks its protocol, PelcoD, instead. The e2e job also still checked out SteveGilvarry/zm-api, which stopped moving when the project moved to ZoneMinder/zm-api; build that instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ZoneMinder 104327349 removed Controls.Type, which nothing ever read, along with its row in the controlcap edit form and its column in the control list. zm-api now returns `type: null` and ignores it on writes, so zm-web showed an always-blank Type column and an editor select whose value went nowhere. Remove the Type column (and its sort) from the list in both skins, the Type select from the editor, its default from the empty form and its key from create payloads. The search placeholder no longer offers type. `Control.type` stays as `type?: null`, since zm-api still sends the key, and is excluded from the editable field keys. The OpenAPI snapshot is patched for just ControlResponse.type, which zm-api now documents as nullable and optional. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SteveGilvarry
force-pushed
the
ci-audit-and-seed-fix
branch
2 times, most recently
from
October 29, 2026 21:31
baa6d11 to
e7b5713
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ZoneMinder 1.39.39 (ZoneMinder/zoneminder@104327349) dropped
Controls.Type, which nothing ever read, and removed it from the control list and thecontrolcapedit form. zm-api now returnstype: nulland ignores the field on create and update. As a result, zm-web showed an always-empty Type column and an editor dropdown whose value was thrown away.This PR removes Type from the UI, matching legacy:
Localdefault in the empty form.type; onlynameis required.Control.typestays astype?: null, since zm-api still sends the key, but it isn't an editable field.ControlResponse.typeis patched (nullable, no longer required), to match what zm-api publishes now. The rest of the snapshot is untouched.Stacked on #41, which makes the search handle a null
typeand fixes CI. The base branch is #41's, so this diff shows only the Type removal. Once #41 is merged, GitHub will retarget this PR tomain.Tests
type: null, as zm-api does.typeis sent.i18n:checkare clean, and all 4,051 unit tests pass.🤖 Generated with Claude Code