Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphman: validate deployment before activating #5784

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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.

Disallow activating a deployment that is being copied
2 participants