Skip to content

Improve boolean field handling #327 - #358

Closed
chinyeungli wants to merge 1 commit into
developfrom
327_boolean_field_value
Closed

Improve boolean field handling #327#358
chinyeungli wants to merge 1 commit into
developfrom
327_boolean_field_value

Conversation

@chinyeungli

@chinyeungli chinyeungli commented Nov 16, 2018

Copy link
Copy Markdown
Contributor

Fixed the bugs that's reported in the comment on Jun 12 in #327

It will now report the 'no' in both gen and inventory.
After some thought, I think we should just keep the y, yes, n, no and
ignore everything else. Some users may use 'x' to represent False and
'tick' as True, so we cannot assume 'x' to be True.
Current behavior:
y or yes will consider as True
n or no will consider as False
'blank' will gives warning saying the field is present but empty

Signed-off-by: Chin Yeung Li tli@nexb.com

Fixed the bugs that's reported in the comment on Jun 12. It will now
report the 'no' in both `gen` and `inventory`.
After some thought, I think we should just keep the `y, yes, n, no` and
ignore everything else. Some users may use 'x' to represent False and
'tick' as True, so we cannot assume 'x' to be True.
Current behavior:
`y or yes` will consider as True
`n or no` will consider as False
'blank' will gives warning saying the field is present but empty


Signed-off-by: Chin Yeung Li <tli@nexb.com>
@pombredanne pombredanne changed the title Fixed #327 Improve boolean field handling #327 Nov 16, 2018
@pombredanne

Copy link
Copy Markdown
Member

From what I see #327 has been fixed with this commit instead fbeeb07
So we can close this PR and delete this branch

@pombredanne
pombredanne deleted the 327_boolean_field_value branch November 16, 2018 08:24
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