-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include the 'default' profile in the options for the profile to be edited #578
Comments
A "default profile" does not exist as such, but there may be ways to pretend or intercept that idea using profiles, but treated differently.
However, if it could be treated like any other profile, then the bulk editor should just work by adding additional tabs to the existing edit interface. Things to consider though:
|
After some architecture review of the current bulk editor, here is my proposal to support "default" profiles. Profile ObjectWhen using the {
"id": "1234",
"domainType": "DataModel",
"label": "Profile name",
"sections": [
{
"name": "Section 1",
"fields": [
{
"metadataPropertyName": "keyName",
"fieldName": "Display name",
"dataType": "string",
"currentValue": "Hello"
}
]
}
]
} The issue with a "default" profile is that such a profile would actually map to concrete data fields in a catalogue item: {
"description": "Some text",
"author": "A. User",
} So my thinking is to create a a fake profile object to represent the "default" profile: {
"id": "1234",
"domainType": "DataModel",
"label": "Default profile",
"sections": [
{
"name": "Default",
"fields": [
{
"metadataPropertyName": "description",
"fieldName": "Description",
"dataType": "string",
"currentValue": "Some text"
},
{
"metadataPropertyName": "author",
"fieldName": "Author",
"dataType": "string",
"currentValue": "A. User"
}
]
}
]
} This would be a special
Bulk edit abstraction layerTo intercept this special profile object, first the bulk editor components need to have an abstraction layer added between the UI components and the Mauro API. This will allow the UI to continue functioning when the abstraction layer can then be refactored without affecting other components/services. Profile servicesTwo Angular services can then be created that map to a common function interface:
These two services combined can then combine to handle the same operations required for the bulk editor to work, namely:
By treating the "default" profile as just another Next steps
|
All issues (sub-tasks) under this main task have now been completed/merged, this issue can also be closed now. |
Overview
The current bulk-editor only supports profiles defined by a profile service - it would be nice if we could also include the 'default profile' as an option. This may need to be hand-coded, but bulk-editing descriptions will be an important use-case.
Tasks
The text was updated successfully, but these errors were encountered: