Project

General

Profile

Actions

Architecture #11216

open

Variable generation in multi instance technique

Added by Benoît PECCATTE over 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Config management
Effort required:
Name check:
Fix check:
Regression:

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.

Actions #1

Updated by Nicolas CHARLES over 6 years ago

As seen with Felix, use case is to have following data in Directive:
  • Name1
  • File1
  • File2
  • File3
  • Name2
  • File3
  • File4

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
  • ???
Actions #2

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.0~rc1 to 4.2.0~rc2
Actions #3

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.0~rc2 to 4.2.0
Actions #4

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.0 to 4.2.1
Actions #5

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.1 to 4.2.2
Actions #6

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.2 to 4.2.3
Actions #7

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.2.3 to 4.2.4
Actions #8

Updated by Benoît PECCATTE about 6 years ago

  • Target version changed from 4.2.4 to Ideas (not version specific)
Actions

Also available in: Atom PDF