Closed Bug 918493 Opened 11 years ago Closed 11 years ago

Only show accept/decline for unprocessed REQUEST invitations

Categories

(Calendar :: Provider: Local Storage, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Fallen, Assigned: Fallen)

References

Details

Attachments

(1 file, 2 obsolete files)

STR:

A little complicated to describe. Requires a server that updates the calendar before the email invitation comes in. See also http://ci-obm.linagora.com/jira/browse/OBMFULL-5269


Steps:
1. boss invites you to a single meeting
2. boss updates the meeting date multiple times
3. calendar server updates the item in your calendar
4. you receive emails for the updates

Results:

each email shows Accept/Decline buttons

Expected:

only the latest email, i.e the one that is unprocessed should show the accept/decline buttons.
Blocks: ltn261
Attached patch Fix - v1 (obsolete) β€” β€” Splinter Review
Ok, this patch takes care. Here is the new behavior. Lets say you have three invitation emails about an event you already have in your calendar (i.e updates):

Scenario 1: Server does not process invitations, you get everything via email:

- Initially, all three emails say its an update and allow accept/decline/...
- Lets say you accept the second one, but then turn it back to NEEDS-ACTION
  - The first email will say ...event that has already been processed
  - The second one says ..event that you have not yet responded to
  - The third one is again an update and allows accept/decline


Scenario 2: Server processes invitations
- As the server has processed the invitations already, the first and second 
  email will say ...event that has already been processed
- The third email matches dtstamp and will allow accept/decline
Attachment #813163 - Flags: review?(matthew.mecca)
Comment on attachment 813163 [details] [diff] [review]
Fix - v1

Review of attachment 813163 [details] [diff] [review]:
-----------------------------------------------------------------

Untested with server-side processing but looks good codewise. r=mmecca

::: calendar/base/modules/calItipUtils.jsm
@@ +1207,5 @@
>                                              let foundAttendee = firstFoundItem.getAttendeeById(att.id);
>  
> +                                            // If the the user hasn't responded to the invitation yet and we
> +                                            // are viewing the current representation of the item, show the
> +                                            // accep/t/decline buttons. This means newer events will show the

There's an extra "/" in the comment.
Attachment #813163 - Flags: review?(matthew.mecca) → review+
Attached patch Fix - v1 (for checkin) (obsolete) β€” β€” Splinter Review
Attachment #813163 - Attachment is obsolete: true
Attachment #813999 - Flags: review+
Attachment #813999 - Flags: approval-calendar-release+
Attachment #813999 - Flags: approval-calendar-beta+
Attachment #813999 - Flags: approval-calendar-aurora+
Attached patch Fix - v1 (for checkin) β€” β€” Splinter Review
Attachment #813999 - Attachment is obsolete: true
Attachment #814000 - Flags: review+
Attachment #814000 - Flags: approval-calendar-release+
Attachment #814000 - Flags: approval-calendar-beta+
Attachment #814000 - Flags: approval-calendar-aurora+
Please land attachment 814000 [details] [diff] [review] on c-c, c-a, c-b and comm-esr24.
Keywords: checkin-needed
Target Milestone: --- → 2.6.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: