multiday selection not cleared when switching between weeks, and selection appears locked
Categories
(Calendar :: Calendar Frontend, defect)
Tracking
(thunderbird_esr91+ fixed, thunderbird94 wontfix)
People
(Reporter: henry-x, Assigned: henry-x)
Details
Attachments
(4 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
16.98 KB,
patch
|
wsmwk
:
approval-comm-esr91+
|
Details | Diff | Splinter Review |
Steps to Reproduce
- Open calendar week view.
- Create an event (not all day).
- Select the event with a mouse click.
- Move one week forward using the arrows.
- Move one week back.
Result
The event is still selected. Moreover, it cannot be visually unselected.
Expect
The event doesn't need to still be selected, and it should be possible to unselect it.
Origin
When the view is refreshed, the calendar-event-column
mEventInfo
is emptied https://searchfox.org/comm-central/rev/a2472c026fcf9bc25733330e9fa1e26c0429be3c/calendar/base/content/calendar-multiday-view.js#3402 but the other metadata is not. Specifically mSelectedItemIds
is not emptied, which means that it accumulates event ids, and reselects them when they are displayed again https://searchfox.org/comm-central/rev/a2472c026fcf9bc25733330e9fa1e26c0429be3c/calendar/base/content/calendar-multiday-view.js#646
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
These are unused.
Assignee | ||
Comment 2•3 years ago
|
||
We keep all the event metadata in one object, which is accessed through the event's hashId. This ensures each event has one set of data, which is easier to track.
Also, stopped using properties for some variables that are only used in one method.
Depends on D129491
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/4f752113a2ed
Drop startMinute and endMinute properties. r=darktrojan
https://hg.mozilla.org/comm-central/rev/b1cd2e09b0e3
Move calendar-event-column event metadata into eventDataMap. r=darktrojan
Comment 4•3 years ago
|
||
You broke a test, so something isn't quite right.
Sample test log: https://treeherder.mozilla.org/logviewer?job_id=356232871&repo=comm-central&lineNumber=2647
There's two failures in the log, only the first one is because of this bug.
Assignee | ||
Comment 5•3 years ago
|
||
There is a small window between an event item being added to the column and it's corresponding element being created. In this window, it is technically possible that selectEvent is called, so we no longer assume the element is created in this method.
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/c091d2828691
Allow selecting an element in calendar-event-column before it has been created. r=darktrojan
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Comment on attachment 9247725 [details]
Bug 1737569 - Drop startMinute and endMinute properties. r=darktrojan
[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: Calendar event selection can appear locked, and then does not correspond to the actual underlying selection status.
Testing completed (on c-c, etc.): No known tests.
Risk to taking this patch (and alternatives if risky): Medium risk. The patches introduce some refactoring.
NOTE: land with the other patches.
Assignee | ||
Comment 8•3 years ago
|
||
Comment on attachment 9247726 [details]
Bug 1737569 - Move calendar-event-column event metadata into eventDataMap. r=darktrojan
[Approval Request Comment]
See comment 7
Assignee | ||
Comment 9•3 years ago
|
||
Comment on attachment 9248223 [details]
Bug 1737569 - Allow selecting an element in calendar-event-column before it has been created. r=darktrojan
[Approval Request Comment]
See comment 7
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 10•3 years ago
|
||
Sorry, just realised 94 was already marked as wontfix, and these are already in 95, so I changed the request to esr91.
Comment 11•3 years ago
|
||
Comment on attachment 9247725 [details]
Bug 1737569 - Drop startMinute and endMinute properties. r=darktrojan
[Triage Comment]
Approved for esr91
Comment 12•3 years ago
|
||
Comment on attachment 9247726 [details]
Bug 1737569 - Move calendar-event-column event metadata into eventDataMap. r=darktrojan
[Triage Comment]
Approved for esr91
Comment 13•3 years ago
|
||
Comment on attachment 9248223 [details]
Bug 1737569 - Allow selecting an element in calendar-event-column before it has been created. r=darktrojan
[Triage Comment]
Approved for esr91
Comment 14•3 years ago
•
|
||
Comment on attachment 9248223 [details]
Bug 1737569 - Allow selecting an element in calendar-event-column before it has been created. r=darktrojan
The patches in this bug will need to be reworked for comm-esr91 due to changes in bug 1731209 where calendar-multiday-view.js was merged with calendar-event-column.js.
Please provide a patch and re-request uplift. Thanks.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 15•3 years ago
|
||
Here's the patches merged together and 'rebased' onto 91. It just required applying the patches to 91, and then applying the rejected hunks to calendar-event-column.js
.
Before I request the esr91 approval, given that I didn't have to make any manual changes, does this need a separate review?
Comment 16•3 years ago
|
||
No, a second review after a rebase isn't usually necessary go ahead and request uplift.
Assignee | ||
Comment 17•3 years ago
|
||
Comment on attachment 9251876 [details] [diff] [review]
bug1737569-esr91.patch
[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: Calendar event selection can appear locked, and then does not correspond to the actual underlying selection status.
Testing completed (on c-c, etc.): No known tests.
Risk to taking this patch (and alternatives if risky): Medium risk. The patch introduce some refactoring.
Comment 18•3 years ago
|
||
Comment on attachment 9251876 [details] [diff] [review]
bug1737569-esr91.patch
[Triage Comment]
Approved for esr91
Comment 19•3 years ago
|
||
bugherder uplift |
Thunderbird 91.4.0:
https://hg.mozilla.org/releases/comm-esr91/rev/f9bae337b66f
Description
•