googleapis / googleapis/google-api-nodejs-client

Updating an event with attendees when you're not the organizer returns successfully but doesn't change the event

Offen
#2,989 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
priority: p3 type: question
Vorherrschende Sprache
TypeScript
Sterne
12.2k
Forks
2k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
24

Beschreibung

Hi,
I'm using the Calendar API to try to do the equivalent of deleting "this and following events" from a recurring event with attendees.
To do that, I update the recurrence rule of event series to add or update the UNTIL value to the date before the events that needs to be deleted.
For example, if the event recurs every Tuesday and Friday and never expires and we want to delete the events from June 24th and beyond then we would update the the recurrence rule from: `RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU,FR;WKST=SU` to `RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU,FR;WKST=SU;UNTIL=20220623T035959Z`

Using `googleapis.calendar(...).events.update(...)` works if the users if the organizer but returns the original event data if the user is an attendee.

I've tried using the patch method instead but it's the same issue:
`googleapis.calendar(...).events.patch({recurrence: 'RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU,FR;WKST=SU;UNTIL=20220623T035959Z'})`

I've also been able to reproduce this from the API doc page for patch when trying to change the recurrence or the summary or the end date: https://developers.google.com/calendar/api/v3/reference/events/patch

I've also tried setting `privateCopy` to true but it made no difference.

No error message is returned so I have no idea why this doe

This works as expected if the user is the meeting organizer but seems to have no effect if the user is just an attendee.

Is this the proper way to replicate the **delete of "this and following events"** for an event attendee?
If this is a known issue, what's the workaround to be able to perform this operation?

**Environment details**
- Node.js version: v17.7.1
- googleapis version: @100.0.0

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the Calendar API events.update and events.patch calls described in the issue, then compare their behavior for organizers and attendees using the supplied recurrence rule. Done means establishing whether attendee updates are supported and identifying a documented workaround or the relevant API limitation; no repository file or test is named.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
nodejs, typescript
Bereich
api
Issue-Typ
Bug
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.