You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We know that files should be "duplicated"/symliked in a lix in a the future.
unblocks use cases like "this markdown file should be stored in /dev-rel/intro.md for writing and /source-code/website/static/blog/intro.md for ease of publishing"
Proposal
We could define a file.path as a relation to FilePaths. A file id points to a list of file paths. Each file path must be unique. (Don't forget, we can use FOREIGN Keys to ensure consistency LIX-134)
(+) get the data structure "right" from the get go to enable
(-) risk of not getting it right :D
Migration is simpler from N -> 1. Than 1 -> N.
The risk of defining a file path as singular seems higher than defining it as multiple. A system that can handle one file under N paths is able to handle a (migrated) system that can handle a file with 1 path.
The text was updated successfully, but these errors were encountered:
On conflict methods are otherwise not possible. And, it's logical that a path should be unique (as long as we have a "a file only has one path" constraints opral/inlang-sdk#140)
Context
We know that files should be "duplicated"/symliked in a lix in a the future.
unblocks use cases like "this markdown file should be stored in
/dev-rel/intro.md
for writing and/source-code/website/static/blog/intro.md
for ease of publishing"Proposal
We could define a
file.path
as a relation toFilePaths
. A file id points to a list of file paths. Each file path must be unique. (Don't forget, we can use FOREIGN Keys to ensure consistency LIX-134)Migration is simpler from N -> 1. Than 1 -> N.
The risk of defining a file path as singular seems higher than defining it as multiple. A system that can handle one file under N paths is able to handle a (migrated) system that can handle a file with 1 path.
The text was updated successfully, but these errors were encountered: