-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
Update libshared to get new weekstart #3623
Comments
@djmitche Thanks for picking this up, I was planning to make an issue to bump libshared in Taskwarrior, now that the weekstart change was merged. Note that the libshared change only affects week number parsing, whereas sonw/sopw/etc should still use Monday regardless of It looks like all these functions would need changes for that:
When were you targeting 3.2 ? I might be able to look into doing this, depending on your timeline. |
Ah, that sounds like more work than I anticipated! If you can work on it, that would be great. I think it's fine for this to be "done when it's done" so don't rush to get it into 3.2.0. |
It's not strictly necessary to get those additional changes in. Merely updating the libshared peg and propagating Let me look at how hard I think it would be to fix the aliases too and I'll get back to you on whether an intermediate release doing the more limited change is warranted in the meantime. Give me a little bit, thanks. |
Sounds good, take your time :) |
Before Maybe it can assist any of you |
It looks like GothenburgBitFactory/libshared#83 will need a libshared update as well. Do you want to do those updates separately or at the same time? |
Let's do the lesser for now, I'm changing continents at the moment. I'll look at the rest later. So to bump libshared and have least-surprise, I suggest we pass in the user's I think I have that working, but when I ran the TW tests, it revealed a bug in the new libshared code. Could you merge GothenburgBitFactory/libshared#84 first (and also the GothenburgBitFactory/libshared#83 you mentioned, if you're planning on it)? And then I have a patch that passes down |
I've merged both of those PRs. |
mainly those visible changes, and miscellaneous others see GothenburgBitFactory#3623 (weekstart) see GothenburgBitFactory#3651 (epoch limit defines) see GothenburgBitFactory/libshared#73 (eopww fix)
This enables use of newer libshared code that can parse week numbers according to ISO8601 instead of existing code which is always using Sunday-based weeks. To get ISO behavior, set rc.weekstart=monday. Default is still Sunday / old algorithm, as before, since Sunday is in the hardcoded default rcfile. Weekstart does not yet fix week-relative shortcuts, which will still always use Monday. See GothenburgBitFactory#3623 for further details.
#3654) * libshared: bump for weekstart, epoch defines, eopww fix mainly those visible changes, and miscellaneous others see #3623 (weekstart) see #3651 (epoch limit defines) see GothenburgBitFactory/libshared#73 (eopww fix) * Initialize libshared's weekstart from user's rc.weekstart config This enables use of newer libshared code that can parse week numbers according to ISO8601 instead of existing code which is always using Sunday-based weeks. To get ISO behavior, set rc.weekstart=monday. Default is still Sunday / old algorithm, as before, since Sunday is in the hardcoded default rcfile. Weekstart does not yet fix week-relative shortcuts, which will still always use Monday. See #3623 for further details.
From GothenburgBitFactory/libshared#81
The text was updated successfully, but these errors were encountered: