Architecture #11216
open
Variable generation in multi instance technique
Added by Benoît PECCATTE over 7 years ago.
Updated almost 7 years ago.
Category:
Web - Config management
Description
We currently have no multi instance technique with mono and multi valued variables.
It should be possible and useful (for example to have a common parameter for a directive but not for the whole technique).
Currently, mono instance techniques can have mono and multi-valued variables.
This generates
- a string for the mono valued variables
- an array of the size of the trackingkey for the multi-valued variable
If we apply this on multi-instances techniques we get:
- an array of the size of the directive count (which cannot be matched with trackingkeys) for the mono valued variables
- an array of the size of the trackingkey for the multi-valued variable
I would like this to be;
- an array of the size of the trackingkey for the mono-valued variable
- an array of the size of the trackingkey for the multi-valued variable
This should be done only for multi-instance techniques, otherwise, we would break compatibility with existing mono-instance techniques.
As seen with Felix, use case is to have following data in Directive:
And be able in the generated code to associate Name1 and File1, File2, File3
Workaround was to have Trackingkey on File variable, and get an unique extract (with bash) for the Trackingkey, and use to to match for Name variable. This is tedious and inefficient :(
As we don't have a way to store hierarchical data, or complex data, from Directive, we need to find an easier process... Ideas are:
- define that a monovalued variable has the same "size" as a multi-valued variable (so, well have 3 Name1 and 2 Name2)
- have an optionnal secondary trackingkey, on another variable
- ???
- Target version changed from 4.2.0~rc1 to 4.2.0~rc2
- Target version changed from 4.2.0~rc2 to 4.2.0
- Target version changed from 4.2.0 to 4.2.1
- Target version changed from 4.2.1 to 4.2.2
- Target version changed from 4.2.2 to 4.2.3
- Target version changed from 4.2.3 to 4.2.4
- Target version changed from 4.2.4 to Ideas (not version specific)
Also available in: Atom
PDF