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 regression of clean up degenerate deployments #3596

Conversation

WeiQuan0605
Copy link
Contributor

The Clean up degenerate deployments might fail because the foreign key constraint exists. So first the child records should be deleted, then the parent records. With this PR the delete problem can be fixed

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@WeiQuan0605 WeiQuan0605 force-pushed the clean-up-degenerate-deployments branch from e929d61 to fef5367 Compare January 12, 2024 14:33
* If a foreign key constraint exists, first delete the child records, then delete the parent records.

Co-authored-by: Philipp Thun <[email protected]>
@philippthun philippthun force-pushed the clean-up-degenerate-deployments branch from fef5367 to 38e88b2 Compare January 12, 2024 15:45
@WeiQuan0605 WeiQuan0605 force-pushed the clean-up-degenerate-deployments branch from 0bf64d3 to 2edbb33 Compare January 15, 2024 10:23
@WeiQuan0605 WeiQuan0605 force-pushed the clean-up-degenerate-deployments branch from 2edbb33 to 54bb059 Compare January 15, 2024 10:28
Copy link
Contributor

@johha johha left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@philippthun philippthun merged commit 340aa3e into cloudfoundry:main Jan 15, 2024
14 checks passed
@WeiQuan0605 WeiQuan0605 deleted the clean-up-degenerate-deployments branch January 15, 2024 12:37
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.

3 participants