Lunatic: insert question business name in question components
- Dominant language
- Java
- Stars
- 17
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Lunatic components that correspond to questions defined in Pogues doesn't hold the information of the business question name.
- This makes debugging harder.
- This prevents to make a clear link between "FILTER_RESULT" variables and the component they are associated with. (cf. kraftwerk @loichenninger )
I suggest to add the information in the model, something like:
```json
{
"id": "foo",
"componentType": "Input",
"name": "FOO_QUESTION",
"response": {
"name": "FOO_RESPONSE"
}
}
```
Proposals: `"name"` / `"questionName"` (I prefer the first one since its shorter, yet we have to make sure it doesn't conflict existing properties of Lunatic's model)
Note: In most cases, question business name and response are identical. Yet, in Pogues, nothing prevents the user from changing the question name after having generated the variables. Also, there is the "FILTER_RESULT" link issue for questions with multiple responses.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.