feat: add IaC partial ownership commands - #1226
Merged
Merged
Conversation
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.
Named IaC ownership can outlive its authoring file and block moving resources between partials or returning to whole-project management. Add
railway config partials list,release, andtransferto manage that ownership without deleting resources, changing their configuration, or redeploying them.Release and transfer support selected addresses or an entire source partial, preview every affected address, and send that exact selection with the existing
Environment.configEtag. Reuse linked-environment resolution, token authentication, partial-name validation, confirmations, and JSON behavior.--dry-runand--base-config-etagsupport separate CI review and execution without introducing another saved-plan format. Update command help and the IaC guide with configuration and re-planning guidance.Validation:
cargo test --locked: 1,692 passed, six ignored, including seven ownership unit tests and ten CLI integration tests covering terminal confirmation/cancellation, human/JSON output, scoped project tokens, selection errors, stale snapshots, old-backend errors, file preservation, and invalidation of saved config plans.cargo fmt --all -- --check,cargo clippy --locked --all-targets --all-features, nativecargo build --release --locked, andgit diff --checkpassed. Clippy reports existing warnings. The Windows cross-build is left to CI.Uses the ownership mutations added in https://github.com/railwayapp/mono/pull/40200. Backend rollout is tracked separately; unsupported servers return an API error without falling back to a resource apply. Companion documentation: railwayapp/docs#1365 (draft pending CLI release and backend availability).