← Back to team overview

gtg team mailing list archive

[Bug 583021] Re: All tasks count is wrong

 

The title bar updates the count by calling:

        count = self.req.get_main_n_tasks()

Whereas the tagtree.py code is using this call:

        return self.active_workview_filtered_tree.get_nodes_count()

However we can't use get_main_n_tasks() here for a few reasons.  First,
it shows the total number of tasks being *displayed* so as you click on
things the number varies and doesn't always reflect the All tasks count.
Second, it's a routine that uses browser functionality, whereas we want
tagtree.py to work independently of the browser.  And third, it doesn't
fix the notags case.

-- 
'All tasks' count is wrong
https://bugs.launchpad.net/bugs/583021
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: New

Bug description:
The counts for 'All tasks' and 'Tasks with no tags' appears to be wildly off, and seem to be set to a different value each time the program is restarted with WorkView turned on.  I've seen 233, 760, 494, and 405 reported, when gtg 0.2.x is (correctly, consistently) reporting 130 or so.  The total number of tasks I have is some amount over 700.

The counts for the individual tag entries are all correct, it's just the two filter-based items that are inaccurate.

If I switch off Work View, it also reports incorrect numbers.  It shows the total as 1143 when it should be in the 700's.  Toggling WorkView on and off seems not to cause the numbers to recalculate, it just switches between 494 and 1143 or whatever.





References