Skip to content

Support cross-project service forks from the CLI - #481

Open
Shubham-Padkonde wants to merge 1 commit into
aiven:mainfrom
Shubham-Padkonde:fix/cross-project-service-forks
Open

Shubham-Padkonde wants to merge 1 commit into
aiven:mainfrom
Shubham-Padkonde:fix/cross-project-service-forks

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

About this change: What it does, why it matters

Add --project-to-fork-from to avn service create and forward it as user_config.project_to_fork_from. This makes the CLI accept the cross-project forking command already described in the service forking documentation.

The destination remains the project selected by --project. Omitting the new flag preserves the current request, and the flag works alongside --recovery-target-time.

Fixes #392.

Validation on Windows / Python 3.12.6:

  • The four new CLI regression cases cover same-project and cross-project forks, each with and without point-in-time recovery. Before the fix, the two cross-project cases failed because the parser rejected the flag; both same-project cases passed.
  • Full suite: python -m pytest tests -q — 244 passed.
  • python -m ruff check aiven tests and python -m ruff format --check aiven tests passed.
  • python -m mypy aiven tests — no issues in 29 source files.
  • git diff --check passed.

The creation-request boundary is mocked in these tests. No paid service was created and no live restore was performed.

Prepared and validated with Codex assistance.

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.

AVN: Fork to a different project

1 participant