-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
DCS with namespace target, don't apply decorators on top of the namespace. #874
Comments
I lean towards option one as well. Perhaps controlled by a new flag passed to DecoratorManager? |
Something like |
I'll also like to propose the use of |
|
I had an assumption that we could target decorators at |
Bug Report 🐛
The following model definition is valid...
Current Behavior
When we apply decorator using dcs targeting the namespace,
We get the following output
Expected Behavior
We should get the following output:
Possible Solution
applyToAllDeclarationsInNamespace
or something better, which defaults to true. Can be set tofalse
if we don't want to apply to declaration and only at the top of the namespace. Validation could be tricky and would be confusing for users to pickup.target: "something-new"
, which would target only the namespace,I'm more inclined towards the first options if we are able check if the impact is minimal or null. Or else the 3rd option, but I feel we will have to come up with some property value for the target that signal that this is for applying decorator at the top of a namespace, which I feel
namespace
itself conveys the best.Steps to Reproduce
https://replit.com/@sanketshevkar/AccordProjectConcerto-Decorator-Command-Set
Context (Environment)
Desktop
Detailed Description
Possible Implementation
The text was updated successfully, but these errors were encountered: