Open jochenklar opened 3 years ago
Hey @MyPyDavid, I still think this whole Attribute mess is something for 2025 ... but I got some ideas today.
What we could do is create some opaque id for each Attribute once, like a UUID but based on the hash of the current URI. Then we can use migrations to create those ids to for attribute independently.
We can then remove the whole tree of keys and just store the uri_path
and uri_prefix
for each attribute. And we can rename attributes and add field for alternative identifiers or aliases.
What do you think?
Just an idea: Maybe we need one new model/table Alias
, which maps URIs to other things. We will have the problem not only with attributes, but also with options (e.g. new version of the DFG Fachsystematik).
This would enable us to provide compatibility between old and new attributes.