ResourceModules icon indicating copy to clipboard operation
ResourceModules copied to clipboard

[Feature Request]: Leverage the ".?" operator for condition checks for objects

Open ahmadabdalla opened this issue 3 years ago • 2 comments

Description

Based on a new Bicep feature referred to as the .? operator. It can be used to check if a value contains a particular property or element. We should align with this new model in our conditions in the repository. This is more prominent when we call child modules from the parent.

image

See screenshot for example

ahmadabdalla avatar Mar 06 '23 20:03 ahmadabdalla

@ahmadabdalla Before implementing this on scale we should run a PoC to see where we can use this feature (e.g. only contains functions), also our parameters, how consistency will be affected, etc.

AlexanderSehr avatar Mar 07 '23 16:03 AlexanderSehr

We implemented this in many places now, during the migration to AVM and after. It's not implemented everywhere yet, though we could argue it's now up to the module owner to decide. Will hence close this at least here in CARML for now.

AlexanderSehr avatar Jun 14 '24 15:06 AlexanderSehr