ARMataTeam / ARMata

ARM template visualizer
MIT License
12 stars 4 forks source link

Allow for easy dependency changing #66

Open kamil-mrzyglod opened 6 years ago

kamil-mrzyglod commented 6 years ago

Currently the only way to add/change a dependency is to directly edit a template. It would be viable to add a possiblity to select dependencies directly on the Selected resource screen.

BienioM commented 6 years ago

I think it will be difficult. Based on many templates from arm templates I see 'dependsOn' often use one of ARM templates functions like: resourceId, concat, variables or parameters.

So this doesn't look like simple select checkbox fields.

Any ideas ?

kamil-mrzyglod commented 6 years ago

@BienioM The way how parser currently works, it "compiles" all those functions based on the values provided. This way the object representation of a template contains only evaluated values - not those functions.

The idea is to somehow connect those fields to an id field, which each resource parsed by ARMata has. It might require some refactoring, hard to decide before we start implementation :)

I can provide more information if needed or we can discuss other approaches if you have your own.

kamil-mrzyglod commented 6 years ago

Is this task somehow ongoing? This is one of the main features to be done before going RC so please let me know if you'd like to still go for it.