Closed mattmcadoo closed 3 months ago
The tag does not get deleted so it's not a problem of the window not refreshing. All tags are still present when re-opening gtg
The tag does not get deleted so it's not a problem of the window not refreshing. All tags are still present when re-opening gtg
This is an excellent observation, but the conclusion doesn't seem to be entirely correct. If you close the program after the first delete attempt, the tag is no longer present after re-opening. (The delete finishes, but the changes are only in memory when the second delete attempt crashes the program.)
There were similar problems with the tasks rooted in the GUI update process. The TagStore
should override the remove
method to erase the Tag
object from the appropriate Gio.ListStore
. Moreover, other methods should also update the previously mentioned list. E.g., if you change the parent of a tag, it appears in two places. (The TaskStore
can serve as an example.)
The tag does not get deleted so it's not a problem of the window not refreshing. All tags are still present when re-opening gtg
This is an excellent observation, but the conclusion doesn't seem to be entirely correct. If you close the program after the first delete attempt, the tag is no longer present after re-opening. (The delete finishes, but the changes are only in memory when the second delete attempt crashes the program.)
When I initially made the report, the tag not getting deleted at all was the observed behavior (tried it several times before making the report), but right now I can't replicate that; possibly due to a dependency/package update in the last two weeks. The crash can still be induced as noted though.
Since Gentoo switched to Python 3.12 as the default, there's still some lingering packages I see that get rebuilt because of a change in it's USE flag, some related to 3.12 and some for other reasons (I default having packages rebuild for any USE flags changes).
Maybe I have something for the case when you delete the tag only once, but it is still there after a restart. When you deleted the tag only once:
(The main idea is that the deleted tags are getting reintroduced somehow.)
No open tasks when trying to delete them. No pop-ups or other types of notifications. Deleted tags reappear in the sidebar after restart.
What prompted me to delete the tags was because there were multiple ones that based on a tag but with a single letter removed. For example, there was an initial tag of "bees" I had created but there were also tags of "bee", "be", and "b" So trying to do some cleanup was what led to finding this bug.
I have found two bugs regarding tag removal, but neither of them explains the case when the tag was deleted only once. Since this happened on an updating system, and we can not reproduce the behavior, I propose we call Part 1 resolved and focus on the GUI update problem.
repository: https://github.com/getting-things-gnome/gtg.git at the commit: c501ff800e4517f66b3254f373d41bf9afd861fa
Gentoo using an ebuild I modified to pull directly from Github.
Build info: