Closed
Bug 405499
Opened 17 years ago
Closed 17 years ago
Task list behaves erratic after deleting multiple tasks at once
Categories
(Calendar :: Tasks, defect)
Calendar
Tasks
Tracking
(Not tracked)
VERIFIED
FIXED
0.8
People
(Reporter: ssitter, Assigned: michael.buettner)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.01 KB,
patch
|
dbo
:
review+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.10pre) Gecko/2007112606 Calendar/0.8pre Steps To Reproduce: 1. Start Sunbird with clean profile 2. Create 2 new dummy tasks named "1" and "2". 3. Select all 2 tasks and press Delete keyboard button 4. Create a new task named "3" 5. Click Title row header to sort tasks by title 6. Click Title row header to sort tasks by title again 7. Click Title row header to sort tasks by title again Actual results: after step 3: task list is empty after step 4: task "2" is shown again after step 5: task "2" is still shown after step 6: task "3" is shown after step 6: task "2" is shown again Expected results: after step 4 and following: task "3" is shown
Reporter | ||
Comment 1•17 years ago
|
||
Regression Range: WORKS in Sunbird 0.8pre (2007-11-21-05) FAILS in Sunbird 0.8pre (2007-11-22-05) Checkins during regression range: http://tinyurl.com/32ko8c Seems to be caused by the checkin for Bug 253396.
Keywords: regression
Reporter | ||
Comment 2•17 years ago
|
||
Minor regression compared to Sunbird 0.7 but might lead to missed tasks due to the incorrect display. In my opinion this should be fixed for 0.8.
Flags: wanted-calendar0.8?
Updated•17 years ago
|
Flags: wanted-calendar0.8? → wanted-calendar0.8+
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → michael.buettner
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
OS: Windows 2000 → All
Hardware: PC → All
Comment 3•17 years ago
|
||
Also when you delete completed tasks from task mode list in lightning they don't disappear at once. Some of the deleted tasks are still visible. You need to switch to different window and back to Lightning to remove them
Assignee | ||
Comment 4•17 years ago
|
||
The initial problem is that the internal data is held in an array (items listed by index) and an associative array (items sorted by hash-id). the latter is used for o(1) lookup in case we're given an item and need it's index in the array (which identifies its position in the tree). deleting an item removes the element from both data structures, but the indices held in the map are no longer valid. in this case it's necessary to recreate the map (this is what the attached patch does). unfortunately this defeats the whole purpose of the map in the first place. but i'm leaving the optimization of the task view for some other day and move ahead with more important stuff.
Attachment #292422 -
Flags: review?(daniel.boelzle)
Comment 5•17 years ago
|
||
Comment on attachment 292422 [details] [diff] [review] patch v1 >+ >+ this.binding.recreateHashTable(); looks a bit brute-force to me, but r=dbo
Attachment #292422 -
Flags: review?(daniel.boelzle) → review+
Assignee | ||
Comment 6•17 years ago
|
||
patch checked in on trunk and MOZILLA_1_8_BRANCH -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Target Milestone: --- → 0.8
Version: Mozilla 1.8 Branch → unspecified
Reporter | ||
Comment 7•17 years ago
|
||
Verified using Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.12pre) Gecko/2007121105 Calendar/0.8pre.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•