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

Feat/v3 loop with except #727

Merged
merged 4 commits into from
Sep 26, 2023
Merged

Feat/v3 loop with except #727

merged 4 commits into from
Sep 26, 2023

Conversation

nsenave
Copy link
Contributor

@nsenave nsenave commented Sep 26, 2023

#722

Context

In Pogues UI, the user can define an 'except' expression in linked loops.

It is designed to filter occurences in the linked loop, based on the answers in the main loop.

Done

  • Adapt DDI mapping: in this case, the loop object has a reference towards a "IfThenElse" (filter) (it is a sequence otherwise)
  • + implement tests for this

@nsenave nsenave requested a review from laurentC35 September 26, 2023 07:20
@nsenave nsenave self-assigned this Sep 26, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nsenave nsenave linked an issue Sep 26, 2023 that may be closed by this pull request
Copy link
Contributor Author

@nsenave nsenave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handling of loop & filter objects from DDI to Lunatic is still quite complex... It is not easy find which classes are involved in the transformation of a DDI loop to a Lunatic loop.

Note to myself: write an entry in technical docs to give an overview of this (or find a refactor that would make things easy, but I don't have a neat way to do this for now)

@nsenave nsenave merged commit c6854f8 into v3-develop Sep 26, 2023
3 checks passed
@nsenave nsenave deleted the feat/v3-loop-with-except branch September 26, 2023 11:39
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.

[Eno V3] Condition "sauf" dans une boucle non fonctionnelle ?
1 participant