Repository navigation
Reduce database work during edits and skip documentation-only staging deploys - #1908
Merged
Merged
Conversation
rdimitrov
marked this pull request as ready for review
November 23, 2026 13:33
rdimitrov
enabled auto-merge (squash)
November 23, 2026 13:33
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.
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.