Datatype configuration refactor (#13605)
* Moved refactor from V12 based branch * Remove obsolete config property to avoid obsoletion warnings * Clean up test models * Make the datatype API a little less confusing by introducing explicit models for create and update * Remame "Configuration" to "Data" to make FE happy :) * Safeguard deserialization of empty configs * Less strict number handling for deserialization * Prepare for data type config migrations * Attempt to have contextual config serializers * Update OpenAPI spec with (temporary) data type controller * Fix unit tests * Update compat suppressions (allow breakage for datatype and configuration editor) * Make the duplicate JsonObjectConverter implementation private
This commit is contained in:
@@ -80,7 +80,7 @@ public class ListViewContentAppFactory : IContentAppFactory
|
||||
throw new NullReferenceException("The property editor with alias " + dt.EditorAlias + " does not exist");
|
||||
}
|
||||
|
||||
IDictionary<string, object?> listViewConfig = editor.GetConfigurationEditor().ToConfigurationEditorNullable(dt.Configuration);
|
||||
IDictionary<string, object> listViewConfig = editor.GetConfigurationEditor().ToConfigurationEditor(dt.ConfigurationData);
|
||||
|
||||
// add the entity type to the config
|
||||
listViewConfig["entityType"] = entityType;
|
||||
@@ -122,7 +122,7 @@ public class ListViewContentAppFactory : IContentAppFactory
|
||||
Value = null,
|
||||
View = editor.GetValueEditor().View,
|
||||
HideLabel = true,
|
||||
ConfigNullable = listViewConfig,
|
||||
Config = listViewConfig,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user