Skip to content

CBG-5715: attach the compaction phase enum to phase, not dry_run - #8655

Merged
torcolvin merged 1 commit into
mainfrom
CBG-5715-07-compact-status-phase
Sep 7, 2026
Merged

torcolvin merged 1 commit into
mainfrom
CBG-5715-07-compact-status-phase

Conversation

@torcolvin

@torcolvin torcolvin commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

CBG-5715

Split out of #8589 — stack 7/9, based on #8654.

The mark/sweep/cleanup enum was indented one property too far down, so it constrained dry_run (a bool in Go, previously also documented as a string) while phase — the field that actually carries those values — was documented as an unconstrained string.

Move the enum onto phase, document each value, and correct dry_run to boolean.

Evidence: db/background_mgr_attachment_compaction.go:42 — _phase string // current phase: "mark", "sweep", "cleanup", or "" when idle, and :327 — DryRun bool json:"dry_run,omitempty".

Pre-review checklist

  • Logging sensitive data? N/A — docs only
  • Updated relevant information in the API specifications in docs/api

🤖 Generated with Claude Code

@factory-droid

factory-droid Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Droid finished @torcolvin's task —— View job


Review (Pass 2: validation): approved

No candidate inline comments were provided to validate. The PR diff is small and the schema changes look consistent (phase enum stays on phase, and dry_run is documented as boolean).

Copilot AI lite review requested due to automatic review settings August 23, 2026 18:33
@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from 945f83f to 7f83e18 Compare August 23, 2026 18:33
@torcolvin
torcolvin requested a review from a team August 23, 2026 18:33
@github-actions

github-actions Bot commented Aug 23, 2026 •

Copy link
Copy Markdown

Redocly previews

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects the OpenAPI schema for attachment compaction status so that the documented response matches the Go implementation: the mark/sweep/cleanup enum is applied to the phase field (where those values are actually used), and dry_run is correctly documented as a boolean.

Changes:

  • Move the mark/sweep/cleanup enum from dry_run to phase in Compact-status.
  • Add x-enumDescriptions documenting each compaction phase.
  • Fix dry_run schema type from string to boolean.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from 7f83e18 to 9b91edd Compare August 23, 2026 18:44
@torcolvin
torcolvin requested a review from bbrks August 23, 2026 18:52
bbrks
bbrks previously approved these changes Aug 24, 2026
@torcolvin
torcolvin dismissed bbrks’s stale review August 24, 2026 17:31

The merge-base changed after approval.

@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from 9b91edd to cf547b9 Compare August 24, 2026 17:31
@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from cf547b9 to ad2c0e2 Compare August 24, 2026 20:37
@bbrks bbrks removed their assignment Aug 25, 2026
@bbrks bbrks self-assigned this Sep 4, 2026
bbrks
bbrks previously approved these changes Sep 7, 2026
@bbrks
bbrks force-pushed the CBG-5715-07-compact-status-phase branch from ad2c0e2 to 941b02a Compare September 7, 2026 12:44
@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from 941b02a to 01dc126 Compare September 7, 2026 18:24
@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from 01dc126 to 0c98347 Compare September 7, 2026 19:32
@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from 0c98347 to 8679c97 Compare September 7, 2026 20:02
@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from 8679c97 to 7c8c51b Compare September 7, 2026 20:16
@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from 7c8c51b to a03294a Compare September 7, 2026 20:27
Base automatically changed from CBG-5715-06-string-type-fixes to main September 7, 2026 20:55
The `mark`/`sweep`/`cleanup` enum was indented one property too far down,
so it constrained `dry_run` (a `bool` in Go, previously also documented as
a string) while `phase` — the field that actually carries those values —
was documented as an unconstrained string.

Move the enum onto `phase`, document each value, and correct `dry_run` to
boolean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@torcolvin
torcolvin force-pushed the CBG-5715-07-compact-status-phase branch from a03294a to f7a64c7 Compare September 7, 2026 20:55
@torcolvin
torcolvin merged commit 3ef1bdb into main Sep 7, 2026
53 checks passed
@torcolvin
torcolvin deleted the CBG-5715-07-compact-status-phase branch September 7, 2026 21:19
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.

3 participants