Skip to content

Add support for questions with no default options#649

Merged
imobachgs merged 2 commits intoagama-project:masterfrom
imobachgs:questions-optional-default
Jul 6, 2023
Merged

Add support for questions with no default options#649
imobachgs merged 2 commits intoagama-project:masterfrom
imobachgs:questions-optional-default

Conversation

@imobachgs
Copy link
Copy Markdown
Contributor

The Questions service crashes if no default options are given. It was supported in the Ruby-based version, so we need to fix the new service to support it.

According to a comment on the code, we should stop using an array for the default options, forcing a default option anyway. But let's discuss that later.

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 5, 2023

Coverage Status

coverage: 72.505% (-0.01%) from 72.515% when pulling 6722fd6 on imobachgs:questions-optional-default into ad2255d on openSUSE:master.

Copy link
Copy Markdown
Contributor

@teclator teclator left a comment

Choose a reason for hiding this comment

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

LGTM. I tested the patch and it fixes the issue, thanks!! 🥳

@imobachgs
Copy link
Copy Markdown
Contributor Author

Thanks for testing it!

@imobachgs imobachgs merged commit f6152b0 into agama-project:master Jul 6, 2023
@imobachgs imobachgs deleted the questions-optional-default branch July 6, 2023 08:21
@imobachgs imobachgs mentioned this pull request Aug 2, 2023
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.

3 participants