Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Changing conditional to only return an error when the conditional input variable does not exist in the config.json variable list #884

Merged

Conversation

andressaabreuzup
Copy link
Contributor

Signed-off-by: Finzi andressa.abreu@zup.com.br

Description

Formulas with nested conditional inputs were returning an unnecessary error.
When there were two flows of nested conditionals, for example, consequently one of them was not satisfied. But an error was returned when the variables of the alternative flow conditionals were tested. The error said that such variables did not exist, however, they existed. They just weren't being filled by belonging to that other flow that didn't happen.

How to verify it

Test nested conditional inputs with a alternative flow. (Not a error)
Test conditional inputs that not exists. (A error)

Changelog

Changing conditional to only return an error when the conditional input variable does not exist in the config.json variable list

…al input variable does not exist in the config.json variable list

Signed-off-by: Finzi <andressa.abreu@zup.com.br>
Signed-off-by: Finzi <andressa.abreu@zup.com.br>
@andressaabreuzup andressaabreuzup self-assigned this Mar 10, 2021
@andressaabreuzup andressaabreuzup linked an issue Mar 10, 2021 that may be closed by this pull request
@andressaabreuzup andressaabreuzup added 🔨 improvement Improvement in features ✔️ ready-for-review ready for review 🪲 bug Report a bug encountered while operating Ritchie and removed 🔨 improvement Improvement in features labels Mar 10, 2021
Copy link
Contributor

@henriquemoraeszup henriquemoraeszup left a comment

Choose a reason for hiding this comment

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

Hey @andressaabreuzup ! Nice description, thank you. Really helped understand the problem. I am good to go but it seems there is a lint problem 😄

Signed-off-by: Finzi <andressa.abreu@zup.com.br>
Signed-off-by: Finzi <andressa.abreu@zup.com.br>
@andressaabreuzup andressaabreuzup force-pushed the fix/nested-conditional-error branch from e7957d1 to e2e78f8 Compare March 11, 2021 18:20
@andressaabreuzup
Copy link
Contributor Author

Hey @andressaabreuzup ! Nice description, thank you. Really helped understand the problem. I am good to go but it seems there is a lint problem 😄

It was a spacing problem, I fixed it, now it's 100% :)

Copy link
Contributor

@brunasilvazup brunasilvazup left a comment

Choose a reason for hiding this comment

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

👍

@henriquemoraeszup
Copy link
Contributor

/merge qa

@ritchie-bot
Copy link
Contributor

ritchie-bot bot commented Mar 11, 2021

👌 Merged branch fix/nested-conditional-error into qa

@henriquemoraeszup henriquemoraeszup merged commit 1bdc50a into ZupIT:master Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🪲 bug Report a bug encountered while operating Ritchie ✔️ ready-for-review ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

config.json crash when have multiples conditional variables
3 participants