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

1762780: fix bug, when reporter_id is empty; ENT-1706 #247

Merged
merged 1 commit into from Jan 14, 2020
Merged

Conversation

@jirihnidek
Copy link
Collaborator

@jirihnidek jirihnidek commented Jan 10, 2020

@jirihnidek jirihnidek added the WIP label Jan 10, 2020
@jirihnidek
Copy link
Collaborator Author

@jirihnidek jirihnidek commented Jan 10, 2020

It needs more testing, because I changed validation method.

result = ('warning', '%s is not set to a valid string, using default: %s' %
(key, self.defaults[key]))
else:
result = ('warning', '%s is not set to a valid string and has default value: %s' % key)

This comment has been minimized.

@wottop

wottop Jan 13, 2020
Member

has no default value?

This comment has been minimized.

@jirihnidek

jirihnidek Jan 14, 2020
Author Collaborator

Good point. Thanks.

* BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1762780
* Validation using _validate_non_empty_string did not have side
  effect of setting default value and debug print also didn't
  print default value
* Added two unit tests for _validate_non_empty_string method
@jirihnidek jirihnidek force-pushed the jhnidek/1762780 branch from 4d7e69a to abd9a20 Jan 14, 2020
@jirihnidek jirihnidek removed the WIP label Jan 14, 2020
@wottop
Copy link
Member

@wottop wottop commented Jan 14, 2020

ack

@wottop wottop merged commit 41986b3 into master Jan 14, 2020
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@jirihnidek jirihnidek deleted the jhnidek/1762780 branch Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.