Skip to content

Conversation

@shiyasmohd
Copy link
Contributor

Fixes #4460

@shiyasmohd shiyasmohd self-assigned this Jan 30, 2025
@shiyasmohd shiyasmohd force-pushed the shiyasmohd/disallow-activating-for-copying-deployment branch from b60ce63 to ce430bc Compare January 30, 2025 01:29
"copying is queued but has not started or no copy operation for {} exists",
deployment.id.0
);
return Ok(());
Copy link
Collaborator

Choose a reason for hiding this comment

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

In that case, don't we want the activate to actually do something?

store.activate(&deployment)?;
println!("activated copy {}", deployment);
} else {
println!("copying is not finished yet");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add some more information to the error, like

the deployment sgdNNN is being copied from sgdNNN and can therefore not be activated yet

@github-actions
Copy link

This pull request hasn't had any activity for the last 90 days. If there's no more activity over the course of the next 14 days, it will automatically be closed.

@github-actions github-actions bot added the Stale label May 15, 2025
@github-actions github-actions bot closed this Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disallow activating a deployment that is being copied

3 participants