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

Feature/issue1001 #1002

Merged
merged 4 commits into from
Aug 28, 2024
Merged

Feature/issue1001 #1002

merged 4 commits into from
Aug 28, 2024

Conversation

salomon-j
Copy link
Contributor

No description provided.

@@ -437,7 +437,7 @@ class ValidationHandler implements OutputModelProcessor.Processor<ExcelValidatio

@Override
def text(Object node, ExcelValidationContext context) {
if (node.constraints) {
if (node.constraints && node.constraints instanceof org.grails.web.json.JSONObject == false) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Introducing this condition will break the download of computed constraints with options (the next if statement on line 443).
As an aside, you should be using Map as a test, not JSONObject as the issue is casting a Map to a List, not the specific implementation of a Map.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing me that out, I just saw that the ESP SMU Reporting has a computed type constraints.
I've updated the validation for the pre-populated constraints type.

@chrisala chrisala merged commit c8d39b1 into dev Aug 28, 2024
3 checks passed
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