Closed Bug 1829340 Opened 2 years ago Closed 1 year ago

undo archive via ctrl-z does not unarchive expected message

Categories

(Thunderbird :: Folder and Message Lists, defect, P2)

Thunderbird 113

Tracking

(thunderbird_esr102 unaffected, thunderbird_esr115? fixed, thunderbird116? wontfix, thunderbird117? verified)

RESOLVED FIXED
117 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird_esr115 ? fixed
thunderbird116 ? wontfix
thunderbird117 ? verified

People

(Reporter: bugzilla.mozilla.org, Assigned: babolivier)

References

()

Details

(Keywords: regression, Whiteboard: [TM: 115.1.1][Supernova3p])

Attachments

(2 files)

Steps to reproduce:

This was supposedly fixed in Bug 1823748 , but there seems to be a regression in v113.

STR:

  • Open Thunderbird and navigate to inbox
  • use the a shortcut to archive a few emails
  • use the ctrl-z shortcut twice to unarchive the emails

Actual results:

The emails are not unarchived

Expected results:

The emails should be moved back to the inbox in the reverse order of how they were archived:

Shortcut timeline:

  • a = message 1 archived
  • a = message 2 archived
  • ctrl-z = message 2 unarchived
  • ctrl-z = message 1 unarchived
Keywords: regression
See Also: → 1823748
Whiteboard: [Supernova]
Whiteboard: [Supernova] → [Supernova3p]

Just updating to report that this is still an issue in v113.0b6

Meichthys, does this still reproduce wth 115.0b3?

Flags: needinfo?(bugzilla.mozilla.org)

Hi Wayne, Yes it does still reproduce on v115.0b3 👍

Flags: needinfo?(bugzilla.mozilla.org)

I can confirm that I've seen behavior like this.

The pattern of use here, which I suspect I share with others, is to go through my email hitting Del & J on messages till I get to something I read and then usually hit A on, and as others also point out sometimes the fingers are a bit quick and a Command-Z is needed to get one or more back.

I've tried, but failed, to reliably reproduce it when I do things slowly, so there may be a timing issue, for sure I've seen the wrong message reinserted into the listing, and had had to dig into the Archives and Trash and sure enough found messages there.

Given the other problems with message listing - wrong messages, wrong headers etc, its hard to actually separate what is the Undo not working, and what is A/Del/J being used on a wrong message - i.e. does it apply to the message shown in the list, or the one whose text is displayed below?

Hope this is helpful in tracking it down.

My pattern of usage is to archive everything (zero inbox method). I use the a key repeatedly as i archive mail in my inbox, but often want to undo the archive to read an email more fully. When i try to ctrl-z to undo it usually does nothing, but i have seen times when it will undo a much older message.

Steve, can you reproduce?

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(steve)
Assignee: nobody → brendan
Status: NEW → ASSIGNED
Priority: -- → P2

I can advise that in 116.0b1 undo from the edit menu does not undo a message delete (message move to bin).
I also confirm that in 116.0b1 this original bug is still present.

Flags: needinfo?(steve)
Attachment #9344436 - Attachment description: WIP: Bug 1829340 - Keep a reference to the transaction manager when archiving a message. r=#thunderbird-reviewers → Bug 1829340 - Keep a reference to the transaction manager when archiving a message. r=#thunderbird-reviewers
Target Milestone: --- → 117 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b8c2ae757640
Keep a reference to the transaction manager when archiving a message. r=leftmostcat

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Pushed by john@thunderbird.net: https://hg.mozilla.org/comm-central/rev/10362909d481 follow-up - Prevent bad interaction between tests. r=#thunderbird-reviewers

Comment on attachment 9344436 [details]
Bug 1829340 - Keep a reference to the transaction manager when archiving a message. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): Bug 1744657
User impact if declined: Users cannot undo after archiving
Testing completed (on c-c, etc.): On c-c
Risk to taking this patch (and alternatives if risky): The functional change itself is low-risk as it is small and covered by a test. This patch must be pushed together with the patch in attachment 9345979 [details], to avoid introducing undesirable side-effects in other tests.

Attachment #9344436 - Flags: approval-comm-esr115?
Attachment #9344436 - Flags: approval-comm-beta?

Comment on attachment 9345979 [details]
Bug 1829340 follow-up - Prevent bad interaction between tests. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): Follow-up patch to fix side effects in tests introduced by the patch in attachment 9344436 [details].
User impact if declined: No user impact.
Testing completed (on c-c, etc.): On c-c
Risk to taking this patch (and alternatives if risky): There shouldn't be any, as this patch fixes the setup for a new test introduced in attachment 9344436 [details].

Attachment #9345979 - Flags: approval-comm-esr115?
Attachment #9345979 - Flags: approval-comm-beta?

Didn't make last beta

Whiteboard: [Supernova3p] → [TM: 115.1.1][Supernova3p]
Attachment #9345979 - Flags: approval-comm-beta?
Attachment #9344436 - Flags: approval-comm-beta?
Duplicate of this bug: 1847109
Duplicate of this bug: 1847676

Comment on attachment 9344436 [details]
Bug 1829340 - Keep a reference to the transaction manager when archiving a message. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr115

Attachment #9344436 - Flags: approval-comm-esr115? → approval-comm-esr115+

Comment on attachment 9345979 [details]
Bug 1829340 follow-up - Prevent bad interaction between tests. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr115

Attachment #9345979 - Flags: approval-comm-esr115? → approval-comm-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: