Skip to content

bundle/dms: record deployment_mode on the deployment version#5445

Merged
shreyas-goenka merged 1 commit into
shreyas-goenka/deployment-metadata-servicefrom
ilya-kuznetsov/dms-version-mode
Jun 4, 2026
Merged

bundle/dms: record deployment_mode on the deployment version#5445
shreyas-goenka merged 1 commit into
shreyas-goenka/deployment-metadata-servicefrom
ilya-kuznetsov/dms-version-mode

Conversation

@ilyakuz-db
Copy link
Copy Markdown
Contributor

Changes

Record the bundle target deployment mode on each DMS version. Adds a deployment_mode field (and the DEPLOYMENT_MODE_DEVELOPMENT / DEPLOYMENT_MODE_PRODUCTION enum) to tmpdms.Version, and sets it in the CreateVersion request from bundle.mode.

Not set on the deployment: Deployment.deployment_mode is derived server-side from the most recent version's mode (output-only), so the CLI only sets it on the version. A target with no mode maps to an empty value, which is omitted (the server treats it as unspecified) — we don't fabricate a default.

Why

The SDK's bundle.Version already carries deployment_mode ("captured at the time of this version"), but the CLI never populated it, so every version recorded a null mode. This stamps it so each version records whether it was a development or production deployment.

Tests

Added a unit test for the mode mapping (development / production / unset). The bundle/dms acceptance outputs are unchanged because those targets don't set a mode. Verified live against a workspace: a mode: development target now records deployment_mode: DEPLOYMENT_MODE_DEVELOPMENT on the created version.

This pull request and its description were written by Isaac, an AI coding agent.

@shreyas-goenka shreyas-goenka merged commit 06061ae into shreyas-goenka/deployment-metadata-service Jun 4, 2026
22 checks passed
@shreyas-goenka shreyas-goenka deleted the ilya-kuznetsov/dms-version-mode branch June 4, 2026 14:41
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.

2 participants