Previous versions of dams, had indexAlias in their constructor,
this.writeIndexAlias = 'foo'
This messes up code, and shouldn't be allowed. Specifically, the cupdate function eg. uses this.writeIndexAlias while the setAlias function fixes up names that that don't match.
Easiest fix is to disallow renaming? This is one potential fix in FinEsDataModel
Object.defineProperty(this, "readIndexAlias", {
value: modelName+'-read',
writable: false, // This makes the property read-only
enumerable: true,
configurable: false // This prevents reconfiguration of the property
});
Object.defineProperty(this, "writeIndexAlias", {
value: modelName+'-write',
writable: false, // This makes the property read-only
enumerable: true,
configurable: false // This prevents reconfiguration of the property
});
Previous versions of dams, had indexAlias in their constructor,
This messes up code, and shouldn't be allowed. Specifically, the cupdate function eg. uses
this.writeIndexAlias
while thesetAlias
function fixes up names that that don't match.Easiest fix is to disallow renaming? This is one potential fix in
FinEsDataModel