-
Notifications
You must be signed in to change notification settings - Fork 78
Property flatten support in modular #3586
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
base: main
Are you sure you want to change the base?
Conversation
| if (!property.flatten) { | ||
| return false; | ||
| } | ||
| return ["properties"].includes(property.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, this is to only honor the @flattenProperty decorator if the property being flattened is called "property"... Can we just flatten any property decorated with @flattenProperty? The decorator is already deprecated/legacy so that should be enough warning for customers, this way we don't put ourselves into a corner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're still concerned about folks using this in a breaking way (e.g. another ARM service with flatten use that would cause conflicts) I think we could add another emitter flag to gate this behavior. I don't believe (though we should check) that Compute specifically has flatten use other than properties
No description provided.