parentId is not respected on import of backup
Describe the bug When exporting bookmarks via Linkwarden then importing the backup.json file, sub-collections become collections (i.e. all nested structures are lost). I can see in the original backup.json that the sub-collections have a "parentID" field to denote them as a sub-collection. When I export the bookmarks again after re-importing backup.json the "parentID" field is now null.
To Reproduce Steps to reproduce the behavior:
- Export Data from the user settings
- Sign in with a new account
- Import Linkwarden data from user settings
- Sub-collections are now treated as regular collections
Expected behavior Sub-collections persist across backup/restore.
Desktop (please complete the following information):
- OS: Docker
- Version 2.5.2
Additional context I am a HW developer, not SW so maybe I'm off base here, but the implicit IDs of collections via the collectionOrder schema seems non-ideal. I would expect each collection to have an identifier within its schema instead of the ID being implicitly defined by the display order.
Source: linkwarden/linkwarden