-
Notifications
You must be signed in to change notification settings - Fork 208
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
Allow setting default priority to empty #426
Comments
I agree 1 doesn't seem clean. I don't feel strongly about 2 but I suspect the impact of changing a default like that is not worth it. I don't think 3 is a problem -- to me it's normal ini-file weirdness. |
Totally voting for 3 here. Being able to write |
Just to add a little detail to this discussion: what the
I'm not at all opposed to turning on |
Oh gosh, I'm now wondering if this worked all along and I just haven't been using it, in which case I'm going to feel very silly indeed! |
I had the same impression as @pjf. Apparently we don't need to make any change to the config parsing but perhaps just need to handle the |
While the misconception was cleared up it would be good to document proper syntax in Common Service Configuration Options and perhaps add test(s) that the empty value works. |
Apparently the empty value does not currently work. See #795. |
Hi, I haven't been actively using bugwarrior for a while now, but I am setting it up into my daily workflow again. I have been lying around local changes for quite a while now, one is for actually handling this, I think. It's been 2.5 years when I made that change, I can't really follow my reasoning back then, but for me it does the job, so that could be a starting point. I use it in conjunction with gitlab, having the following line in my
I've also done some other changes that fit my workflow better, but cherry-picking this ontop of develop doesn't explode for me and doesn't add priorities to any of my tasks. So, this might be a starting point. I'd open a pull-request if desired. Edit: I tried to get behind my reasoning back then and without those modifications, it works as well. |
To clarify, I think this issue is about allowing people to change the |
Hey there. I tried pretty much every thing before googling and finding this page.
As said by @ryneeverett I simply want the |
Contrary to my apparent previous assumptions, configparser returns an empty string rather than None when encountering an empty assignment, making this a fairly trivial solution.
Contrary to my apparent previous assumptions, configparser returns an empty string rather than None when encountering an empty assignment, making this a fairly trivial solution.
This needs better documentation. I tried everything I could think of and it does not allow me to set it empty no matter what I do
|
Yeah, we should probably have a code block of examples in the Common Service Configuration Options section. My recollection:
|
I'm pretty sure I tried both, and none worked, had to use |
@adriangalilea The fix for this bug has not yet been released and I suspect you're using the latest 1.8.0 stable release. |
Actually, no, empty string doesn't work in develop branch either. I am using toml config with |
@Rahlir Maybe this should be opened then. |
Yikes. Thanks for the report! |
Contrary to my apparent previous assumptions, configparser returns an empty string rather than None when encountering an empty assignment, making this a fairly trivial solution.
Hi, I want to set my default priority to none/empty, but this is currently not possible because ConfigParser always reads a string and taskw only accepts
'L'
,'M'
,'H'
or theNone
literal.I checked out the project and got it fixed, but before I can do a pull request, I am asking how do you prefer it to be fixed. This are the alternatives I can think of, from best to worse:
'None'
as a string and change it to a literal. (Cons: doesn't feel like a clean solution)None
thedefault_priority
instead of'M'
. (Cons: It will change the current expected behavior of bugwarrior)allow_no_value
flag in ConfigParser. (Cons: it could make it difficult to spot and debug errors in the bugwarriorrc file)P.S. Thanks for bugwarrior it is really useful
The text was updated successfully, but these errors were encountered: