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

create test folder with parent id of the default root folder id zero #5689

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

brianhatchl
Copy link
Contributor

@brianhatchl brianhatchl commented Jul 24, 2023

I encountered a broken UI after running core tests that inserted folder with a null parent_id. I may still add some code to the UI to assume this state as the root (id=0) folder as parent.

But investigating which tests were inserting folders with a null parent_id (updated to zero in this PR) led me to this #4461.

So wondering why we didn't just do this update back then instead of all the special null handling we introduced.

@brianhatchl
Copy link
Contributor Author

The 'root' folder gets created in this liquibase changelog https://github.com/ngageoint/hootenanny/blob/master/hoot-services/src/main/resources/db/changelogs/022-FolderMapMappings.xml#L18-L34

so I think it should always be available for these tests.

@brianhatchl brianhatchl merged commit c657a5b into master Aug 2, 2023
@brianhatchl brianhatchl deleted the test_data_folder_parentid branch August 2, 2023 14:02
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.

1 participant