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

fix(flow): parent job cannot be replaced #2417

Merged
merged 5 commits into from
Feb 13, 2024

Conversation

roggervalf
Copy link
Collaborator

@roggervalf roggervalf commented Feb 9, 2024

while adding a duplicated job, we can replace the parent job if this job had one, while replacing a parent value, we will end with an orphan parent, we must throw an error in this case

@roggervalf roggervalf marked this pull request as ready for review February 10, 2024 02:30
Copy link
Contributor

@manast manast left a comment

Choose a reason for hiding this comment

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

LGTM, just a small comment.

@@ -444,6 +444,10 @@ export class Scripts {
return new Error(
`Lock mismatch for job ${jobId}. Cmd ${command} from ${state}`,
);
case ErrorCode.ParentJobCannotBeReplaced:
return new Error(
`Parent job from job ${jobId} cannot be replaced. ${command}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

The grammar does not seem to be correct here, this should be better: "The parent job of job ${jobId} cannot be replaced."

@roggervalf roggervalf merged commit 2696ef8 into master Feb 13, 2024
11 checks passed
@roggervalf roggervalf deleted the fix-parent-cannot-be-replaced branch February 13, 2024 01:56
github-actions bot pushed a commit that referenced this pull request Feb 13, 2024
## [5.1.11](v5.1.10...v5.1.11) (2024-02-13)

### Bug Fixes

* **flow:** parent job cannot be replaced (python) ([#2417](#2417)) ([2696ef8](2696ef8))
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