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

Delete BreadcrumbTree rows when parent Model is deleted #351

Merged
merged 5 commits into from
Aug 6, 2022

Conversation

joe-crawford
Copy link
Contributor

Closes gh-350.

Previously when deleting ReferenceDataModels and CodeSets, their child BreadcrumbTrees were deleted, but for DataModels and Terminologies only the top level BreadcrumbTree row was deleted. Add child BreadcrumbTree rows to multiple delete SQL and add clean-up migration SQL.

- Add migration SQL to clear invalid core.breadcrumb_tree rows
…dcrumbs (gh-350)

- Change these tests to functional tests from integration tests to work around issue with session rollback.
@joe-crawford
Copy link
Contributor Author

Failing test on PR build is unrelated. Have stopped the branch build to save time.

@joe-crawford joe-crawford marked this pull request as ready for review August 4, 2022 14:35
Copy link
Contributor

@jamesrwelch jamesrwelch left a comment

Choose a reason for hiding this comment

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

I've looked through the code, done some testing, and this is a really good job, in very short time. Excellent! :)

@jamesrwelch jamesrwelch merged commit d03d6ae into develop Aug 6, 2022
@jamesrwelch jamesrwelch deleted the feature/gh-350 branch August 6, 2022 04:58
@joe-crawford
Copy link
Contributor Author

Thanks @jamesrwelch !

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.

Child BreadcrumbTrees not deleted when parent Model is deleted
2 participants