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

[WIP] Allow limitless description and annotation lengths (option B) Resolve #441. #438

Conversation

ryneeverett
Copy link
Collaborator

@ryneeverett ryneeverett commented Jan 29, 2017

This is presented as another alternative to #436.

This could lead to more-difficult-to-debug errors if people pass no
value to other configuration options, because the error will likely be
in bugwarrior failing to handle None rather than ConfigParser raising a
validation error on their config file. However, I don't see a clear
alternative. I did play around with subclassing ConfigParser to just
allow no value for integers, but the extra complication might not be
worth it.
See second commit.

  • Tests

This is presented as an alternative to GothenburgBitFactory#436.

This could lead to more-difficult-to-debug errors if people pass no
value to other configuration options, because the error will likely be
in bugwarrior failing to handle None rather than ConfigParser raising a
validation error on their config file. However, I don't see a clear
alternative. I did play around with subclassing ConfigParser to just
allow no value for integers, but the extra complication might not be
worth it.
@ryneeverett ryneeverett changed the title Allow limitless description and annotation lengths Allow limitless description and annotation lengths (option B) Jan 29, 2017
@ryneeverett
Copy link
Collaborator Author

ryneeverett commented Feb 22, 2017

According to this comment my use of allow_no_value is probably misguided. Removing that line-diff should eliminate my primary concern with this patch without altering the intended behaviour.

As @coddingtonbear (our local ini file expert) pointed out,
`allow_no_value=True` allows the omission of the equals sign; omitting
a value is permitted by default.
@ryneeverett ryneeverett changed the title Allow limitless description and annotation lengths (option B) Allow limitless description and annotation lengths (option B) Resolve #441. Feb 25, 2017
@ryneeverett ryneeverett changed the title Allow limitless description and annotation lengths (option B) Resolve #441. [WIP] Allow limitless description and annotation lengths (option B) Resolve #441. Feb 25, 2017
@ryneeverett
Copy link
Collaborator Author

Good thing I tried to test this. I should have realized that I still need the modified version of getint if we're going to accept a null value because an empty string is still not an integer. Closing in favor of #437.

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.

1 participant