atomicdata-dev / atomic-server

An open source headless CMS / real-time database. Powerful table editor, full-text search, and SDKs for JS / React / Svelte.
https://atomicserver.eu
MIT License
933 stars 44 forks source link

Migrate trailing slash base URLs #895

Open joepio opened 2 months ago

joepio commented 2 months ago

In #505, we finally start parsing requested URLs as URLs instead of Strings. This will give all "home" URLs a trailing slash. E.g. https://atomicdata.dev ==> https://atomicdata.dev/.

This means that existing URLs to the main drives may not longer work.

In order to prevent users from getting issues, we should update their subjects when they switch to this newer system. I think that means we should add a function to migration.rs.

Commits

If the user has made commits to home instead of home/, then the commits no longer contain the correct Subject. Their contents need to be rewritten, which means the signatures no longer match the contents. So if someone would play back the commits, they would throw errors. A different approach is to

joepio commented 2 months ago

https://github.com/atomicdata-dev/atomic-data-docs/issues/137