Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: add conditionFilter on lists #778

Draft
wants to merge 4 commits into
base: 2.7
Choose a base branch
from
Draft

Conversation

Grafikart
Copy link
Collaborator

@Grafikart Grafikart commented Nov 9, 2023

This is a DRAFT that serves as a proof of concept on how to handle filter in list for various component in Lunatic

Bowie Issue InseeFr/Bowie#52

CheckboxGroup

For checkbox group we could add a new conditionFilter for every response in responses

{
	"id": "new_id_4",
	"label": {
		"value": "\"Vous étiez à la retraite ou proche de la retraite\"",
		"type": "VTL"
	},
+	"conditionFilter": { "value": "cast(AGE, number) >= 50", "type": "VTL" },
	"response": { "name": "CHECK6" }
},

CheckboxOne / Radio / Dropdown

For unique checkbox / radio we could add a new conditionFilter for every option in options

{
  "id": "check6",
  "label": {
    "value": "\"Vous étiez à la retraite ou proche de la retraite\"",
    "type": "VTL"
  },
+ "conditionFilter": {
+   "value": "cast(AGE, number) >= 50",
+   "type": "VTL"
+ },
  "value": "CHECK6"
},

Copy link

sonarcloud bot commented Nov 9, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant