InseeFr / InseeFr/Pogues

Check if a variable used in a control is declared

Open
#518 0 comments 0 reactions 0 assignees View on GitHub
Area: Refonte P2 Type: Feature
Dominant language
JavaScript
Stars
23
Forks
19
Avg merge
19h 49m
Merged PRs (30d)
14

Description

A lot of error happening when generating a questionnaire are due to missing variables in control expressions.

In order to smooth the process, we will implement a global check in Pogues :

1. when a designer click on the "Validate" button of a sequence or question
2. when a variable is deleted
a. when a question is deleted (thus the variable(s) it contains)
b. when a collected, calculated or external variable is deleted

The resulting error should be displayed in the questionnaire structure view, as it is done for example for structural problems (eg a questionnaire without any sequence)

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by tracing the Validate actions for sequences and questions, along with question and variable deletion flows, then inspect how structural errors appear in the questionnaire structure view. Done means missing variables in control expressions are detected in each listed case and the resulting error is displayed there.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.