Skip to content

Reduce database work during edits and skip documentation-only staging deploys - #1908

Merged
rdimitrov merged 1 commit into
mainfrom
codex/reduce-registry-edit-and-staging-work
Nov 23, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
codex/reduce-registry-edit-and-staging-work

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Status updates now choose the latest version from version, status, and publication time. This avoids fetching and decoding every server document under the per-server lock. Existing version ordering and the all-deleted fallback still apply.

Metadata edits validate packages before opening a database transaction. After acquiring the existing write lock, the registry checks the status and modification time of the version the handler authorized. A concurrent edit, takedown, or restoration returns HTTP 409 so the client can fetch the version again.

Staging skips automatic builds and deployment when every changed path is a documentation page covered by the filter or the production stack config. Mixed source and documentation changes still deploy. Manual staging operations remain available.

Verified with PostgreSQL service, database, and handler tests, regression tests for stale edits and validation failures, Go lint for the affected packages, and actionlint for the staging workflow.

@rdimitrov
rdimitrov marked this pull request as ready for review November 23, 2026 13:33
@rdimitrov
rdimitrov enabled auto-merge (squash) November 23, 2026 13:33
@rdimitrov
rdimitrov merged commit 1a17789 into main Nov 23, 2026
9 checks passed
@rdimitrov
rdimitrov deleted the codex/reduce-registry-edit-and-staging-work branch November 23, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant