simphony / simphony-common

The native implementation of the Simphony cuds objects
BSD 2-Clause "Simplified" License
7 stars 5 forks source link

Change of CUBA enumeration values breaks compatibility #339

Closed stefanoborini closed 7 years ago

stefanoborini commented 7 years ago

I just observed that the CUBA enumeration values change. This is BAD, because these values uniquely identify the meaning of that key. If the value changes, the meaning changes too if it gets persisted and retrieved. This means that any change to the meta files can completely break compatibility, even a simple addition at the end of the file. This is because the traversal may introduce the new entity in the middle of the cuba list, effectively shifting all entries down one value.

mehdisadeghi commented 7 years ago

What if we use unique string values instead?

stefanoborini commented 7 years ago

Working on this.