-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
News does not remember last viewed version without undocumented option #3391
Comments
Thanks! @tbabej, I think you originated the |
Oh, and another interesting bit of behavior, I'm now getting news reminders for 3.0.2 because my config news version is 3.0.1, even though there aren't any unread news items, so a reasonable user could see this:
Which in turn will continue to pop-up occasionally because of all the logic for marking new versions as read. |
The original intent of the Similarly, displaying the major items should be sufficient. Using |
Can't dive deeper right now but my suspicion would be that the bug revolves around the fact that in @Bckempa if you have capacity to double check and produce a PR with a fix, that would be highly appreciated! |
Maybe it's best to get rid of the minor/major distinction and just include major, then? |
Might take me a few days to find the cycles, but I'm happy to take swing at this. |
Running taskwarrior 3.0 and 3.0.1 I've been getting random reminders to read the version news, despite having read both
task news
andtask news 3.0.1 minor
. I would expect that to satisfy the automatic news version tracking.Checking with
task show | grep version
I noticed that thenews.version
variable had not been updated. I had to check theCmdNews
source to discover that the saved "read version" is only updated whentask news all
is run, but the "all" specifier doesn't seem to be documented anywhere?Logically something seems off, it only reverts the signal handler and asks for donations if the "all" command is used?
Not sure exactly what the intended behavior is and if that ending if case needs to be rescoped but I think at minimum reading the news should update the config flag. As a minimal change, maybe the "all" setting that updates the config flag should be the default?
I am willing to contribute a PR for this if given guidance on the preferred behavior.
The text was updated successfully, but these errors were encountered: