OpenMetadata
OpenMetadata copied to clipboard
Custom properties bug update with existing wrong values
• There was values updated without the validation on the custom properties in versions <1.5x
• In versions >1.6x we try to update values from one custom property and if other custom property different that the one we try to update has a wrong value then raise an error and don't allow to update the one we are targeting.
To reproduce the error you can follow this steps: Install 1.5.x version on the platform and the SDK Create a database, let's call it "TESTING_DATABASE" Assign that database the value "wrongValue" to the custom property "certified" throw API to TESTING_DATABASE (It will be accepted because in 1.5.x it hadn't validations on custom properties) Update version to 1.6x, try to add a value in other custom property from the TESTING_DATABASE. For example to "Sensivity" assign "internal" It will raise an error that "certified" has wrong value on it. Even when you are just trying to update/assign "Sensivity" custom property value
Suggestion:
Since it is prod - user doesn't want to add wrong values, we will have to provide a way to edit other properties without throwing error for the wrong properties we should allow update for right values even if it means changing from wrong value to right value but not the other way around