Closed brianhatchl closed 1 year ago
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.
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 https://github.com/ngageoint/hootenanny/pull/4461.
So wondering why we didn't just do this update back then instead of all the special null handling we introduced.