Skip to content
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

Add support for applying same decorator to multiple properties in the same model with single command #709

Closed
lathanallabolu opened this issue Sep 6, 2023 · 0 comments · Fixed by #713

Comments

@lathanallabolu
Copy link

Feature Request 🛍️

Add support for applying same decorator to multiple properties in the same model with single command. If the properties are of same type I can use one single command to apply same decorator to multiple properties within the same model.

Use Case

I want to add FieldsExplorerHide decorator to status, side, buyers etc in the same model with single command instead of adding multiple commands?
Ex: {
"$class" : "org.accordproject.decoratorcommands.Command",
"type" : "APPEND",
"target" : {
"$class" : "org.accordproject.decoratorcommands.CommandTarget",
"namespace" : "[email protected]",
"declaration" : "ReTransaction",
"property" : " buyers,sellers" ---> which are arrays here and want to hide them in fieldsexplorer
},
"decorator" : {
"$class" : "concerto.metamodel.Decorator",
"name" : "FieldsExplorerHide",
"arguments" : []
}
},

Possible Solution

Accept an array or comma separated strings for "property" element in the target element

Context

Detailed Description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant