Skip to content

Fix missing filter var#357

Merged
Hajarel-moukh merged 7 commits into
mainfrom
fixMissingFilterVar
Dec 18, 2025
Merged

Fix missing filter var#357
Hajarel-moukh merged 7 commits into
mainfrom
fixMissingFilterVar

Conversation

@Hajarel-moukh

Copy link
Copy Markdown
Contributor

This PR adds support for missing and filter variables in metadata by merging Lunatic data into the existing DDI metadata.

}
return questionnaireMetadataModels.getFirst().metadataModel();

saveMetadata(questionnaireId.toUpperCase(), mode, metadataModel);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you don't have to save if the metadata are already stored

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You're right i have modified, thank you


if (questionnaireMetadataModels.isEmpty() || questionnaireMetadataModels.getFirst().metadataModel() == null) {
metadataModel = readMetadatas(campaignName, mode.getModeName(), fileUtils, errors);
} else {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

avoid else if not necessary

@Hajarel-moukh Hajarel-moukh merged commit 979b5bf into main Dec 18, 2025
8 checks passed
@alexisszmundy alexisszmundy deleted the fixMissingFilterVar branch December 22, 2025 15:01
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.

2 participants