Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

As a member, my calendar will automatically update if the event changes #436

Closed

Description

@allella

Quincy was targeting a feature to integrate with Google Calendar to update events when they are changed or cancelled.

In the Nov 7th meeting, we talked about not using Google Auth, or depending on Google services.

In that case, iCal and similar techniques are the way to add a calendar to various calender tools.

Fran asked about only using email authentication and event notifications, plus using iCal for the add-to-calendar feature. He mentioned Google Calendar users can now link to an iCal, through webcal:// or https://, using a feature which will use the link to keep the event in sync based on regular synchronization interval. This would be instead of a one-time importing of an iCal file or an "Add to Google" button (example) that uses a query string to save the event to Google but where never updates again. For this to work the iCal/webcal link would need to be persistent and updated in real-time with each request. See "Subscribe to an Online Calendar" section for an example.

Activity

  1. allella commented on Nov 7, 2020

    @allella
    ContributorAuthor

    @Zeko369 @Ryuno-Ki does this look like a good characterization of what was suggested as a new MVP issue?

  2. Ryuno-Ki commented on Nov 7, 2020

    @Ryuno-Ki
    Contributor

    I'll try to put it in my own words.
    Perhaps it helps getting a more complete picture.

    What is the problem we want to solve?

    If I RSVP to an event at my chapter, I want to be able to have that in my calendar.
    There are two ways here:

    1. Downloading an ICS (or iCal, as Apple called it) file and import that into my calendar (could be Google, Microsoft, Nextcloud, whatever).
    2. Importing an webcal URL to my Calendar (webcal is a protocol that wraps ics).

    The second option would allow for updates if the organiser change things (like moving date or venue or even cancelling the event).

    The „add to Google button” prefills Google calendar with event details via Query Parameters. The user only needs to confirm the addition. The alternative discussed was more involved (adding for permission to access the calendar on the user's behalf. Making a decision which calendar to add an event to etc).

    When downloading the file, I'd miss those updates. So I could take a trip just to learn, that the event isn't going to happen. We want to avoid that if possible.

  3. Ryuno-Ki commented on Nov 7, 2020

    @Ryuno-Ki
    Contributor

    I talked with @Zeko369 on Discord about it more in-tech.

    Since Google (or another provider) would crawl the ICS file periodically, it needs permission to do so.
    One option would be to achieve that via auth token, that gets passed along side a ICS URL by chapter.
    In fact, there could be several of those URLs:

    • /calendars/user?auth
    • /calendars/venue?auth
    • /calendars/chapter?auth

    (the exact structure is open for discussion).

    Since anybody with that URL will have access to that subscription it is important to stress, that this URL must only be pasted into the calendar (e.g. Google calendar, see link in original post) and NOT SHARED.
    Additionally, it is important to blacklist put a token on a denylist if it got leaked by some means.

    Lastly, I could imagine keeping an auth trail akin to https://github.com/settings/security-log to see, who accessed the link (with timestamp and User Agent?). This way, suspicious behaviour could be detected. It shouldn't be limited to auth tokens generated in this context.

  4. allella commented on Nov 7, 2020

    @allella
    ContributorAuthor

    So, is the idea for MVP to use a feed-based link that has all of a member's event subscriptions, or have the member copy and paste a link to their calendar for each specific event?

    The authorization tokens above sound more applicable to a specific person's calendar feed and not as much for a single event link. True?

    Fran, was the link you used for your university for a specific event, or did you have a link with a feed of all events

  5. allella commented on Nov 7, 2020

    @allella
    ContributorAuthor

    Also, if the idea is to have a feed link with calendar data for multiple events, we'd want to decide if we're talking about a link with all events which are happening for a specific chapter, or only events the member registered to attend.

  6. Zeko369 commented on Nov 7, 2020

    @Zeko369
    Contributor

    One event => not updatable, simple to add (one click or download .ics)
    Whole calendar => updatable, generate url (generate token per say), copy paste link into gcal/icloud/outlook/whateverCal.inc

    We can have whatever customisation you want on the /user feed, but you can also subscribe to specific venue/chapter (more for information stuff / ie that Hackgreenville thingy)

  7. allella commented on Nov 7, 2020

    @allella
    ContributorAuthor

    Thanks. I was thinking your initial example was a replacement for the "Add to Google Calendar" button, but a link for a single event where that single event was kept up to date. Never heard of that and I didn't realize you were talking about feeds.

    Technically, you could have a feed URL specific to an event, so that would be possible, but probably not an ideal implementation for the feed provider or consumer.

  8. Zeko369 commented on Nov 7, 2020

    @Zeko369
    Contributor

    Pretty sure google calendar only supports adding calendars dynamically, so I don't really know how we would implement updatable events.

    I could be wrong though.

  9. allella commented on Nov 7, 2020

    @allella
    ContributorAuthor

    I'm not saying it's a good idea, but I was that you could create a webcal / feed with just one event. People would need to add each feed link and the calendar would have a lot more feeds to keep in sync, but seems like it's doable since it would just be a feed with n=1.

  10. Zeko369 commented on Nov 7, 2020

    @Zeko369
    Contributor

    Image:

    Gcal image

    image

    This is my gcal sidebar, I don't really think adding a calendar for each event is a good idea haha

  11. Zeko369 commented on Nov 7, 2020

    @Zeko369
    Contributor

    Also if you only have one event it would still show in your "user" calendar

  12. allella commented on Nov 7, 2020

    @allella
    ContributorAuthor

    Yeah, I agree. Though, in a different tool / interface / use case it would be feasible and may actually be a neat protocol. I've never used it but I wonder if that would be similar to having a https://github.com/pubsubhubbub/ on a single thing you want to track.

  13. Ryuno-Ki commented on Nov 9, 2020

    @Ryuno-Ki
    Contributor

    For reference: PubSubHubBub is now known as WebSub in some parts of the web.

  14. changed the title [-]As a member, I can copy an iCal or webcal link to add an event to my calendar that auto-refreshes [/-] [+]As a member, I can copy an iCal / webcal link to add an auto-refreshing events feed to my calendar [/+] on Nov 9, 2020
  15. 14 remaining items

  16. added and removed
    Roadmap
    on May 13, 2022
  17. changed the title [-]As a member, I can copy an iCal / webcal link to add an auto-refreshing events feed to my calendar [/-] [+]As a member, my calendar will automatically update if the event changes[/+] on May 13, 2022
  18. allella commented on May 13, 2022

    @allella
    ContributorAuthor

    As with Quincy's Google calendar invite for today's meeting, it's necessary to send an .ics file with
    METHOD:REQUEST
    to have any chance of the .ics files within an email actually updating the calendar.

    Google manages to make this work, and it may still be a decent standard, but there are questions about if it's the best approach for Chapter.

    image

  19. allella commented on May 13, 2022

    @allella
    ContributorAuthor

    Quincy is most interested in exploring the Google Calendar API as there are questions on if the iCal / webcal method is reliable.

  20. allella commented on May 14, 2022

    @allella
    ContributorAuthor

    @ojeytonwilliams

    As mentioned in the last comment, we determined Quincy and others aren't convinced the .ics file protocol for auto-updating calendar events is the way to go.

    It may work okay, but this also assumes we're able to send a .ics file to an email that uses the METHOD:REQUEST and does not include a "Will you attend?" (Yes, No, Maybe).

    As mentioned above, we could easily confuse a user if they are clicking (Yes, No, Maybe) in their local calendar, but setting a false assumption that their local calendar response will update their RSVP in Chapter.

    .ics would be less of an issue if it works and we can send an "invite" without the (Yes, No, Maybe) options, which may not be possible. This may also be why Meetup and Eventbrite don't send an invite through .ics because it could easily confuse people. In particular, if there's a wait list for an event and you send an "invite" to a local calendar, then someone may assume that's a confirmation when it was just a reminder of the event details.

    I'm not sure if a Google Calendar API approach will avoid these potential pitfalls, but checking that out seems to be the next step after today's meeting.

  21. ojeytonwilliams commented on May 19, 2022

    @ojeytonwilliams
    Contributor

    I'm not sure if a Google Calendar API approach will avoid these potential pitfalls, but checking that out seems to be the next step after today's meeting.

    @allella Neither am I, to be honest, but testing out the Google Calendar API is very high priority right now. We'll know soon enough if it's workable and if it addresses these concerns. If not, we can do some thinking about how to avoid them.

  22. gikf commented on Jun 26, 2022

    @gikf
    Member

    Is there a more specific expected/ideal workflow for this?

    Looking at the documentation, generally two pieces are needed to be able to edit events - calendar id and event id. Event id can be defined when creating event. For calendar id there's couple options:

    • Require user to provide calendar id of the existing calendar.
    • Use the primary calendar of user.
    • Create new calendar for user. This option would require slightly higher scope (permission).
  23. ojeytonwilliams commented on Jun 27, 2022

    @ojeytonwilliams
    Contributor

    I've only just started looking into this, but it seems that basically everything of interest requires a sensitive scope and must be audited by Google before the app can be published. Even if we want to create events on calendars that we own, we'd still need to access a sensitive scope: /auth/calendar.events.owned

    The exception is /auth/calendar.app.created which lets you

    Make secondary Google Calendars and see, create, change and delete events on them

    In principle this is enough, but I've not tested it yet.

    However, Google's guide recommends using the https://www.googleapis.com/auth/calendar scope - which gives you full access, so I'm not sure if secondary calendars will work. We'll see.

    Anyways, to your comment:

    For calendar id there's couple options:

    • Require user to provide calendar id of the existing calendar.
    • Use the primary calendar of user.
    • Create new calendar for user. This option would require slightly higher scope (permission).

    @gikf I could be wrong, but I believe the user in question would be a chapter admin. The calendar should be one they have access to. i.e. when a Chapter is created someone will need to create a Calendar for it and then admins would be granted access. We can store that calendar id in the db and use it when creating events. Ideally all of this would be on a secondary calendar, so that we don't need any sensitive scopes.

    All of this comes with the caveat that I'm still learning the Google Calendar API, but this is my current understanding.

  24. gikf commented on Jun 27, 2022

    @gikf
    Member

    If calendar would be created externally https://www.googleapis.com/auth/calendar.events scope might be enough - https://developers.google.com/calendar/api/v3/reference/events/insert, but that's also sensitive scope.

    After event is created on the Chapter calendar, how that would be connected with the user taking part in the event? Do they add manually add Chapter calendar, or would be adding individual events?

  25. ojeytonwilliams commented on Jun 27, 2022

    @ojeytonwilliams
    Contributor

    If calendar would be created externally https://www.googleapis.com/auth/calendar.events scope might be enough - https://developers.google.com/calendar/api/v3/reference/events/insert, but that's also sensitive scope.

    It would be sensitive, so assuming the secondary calendar approach fails, we'll need sensitive scopes. However, I'd very much prefer to avoid using https://www.googleapis.com/auth/calendar if possible and, yeah, https://www.googleapis.com/auth/calendar.events might be enough.

    After event is created on the Chapter calendar, how that would be connected with the user taking part in the event? Do they add manually add Chapter calendar, or would be adding individual events?

    My understanding is that the Chapter admin would create an event where the attendees are all the users that RSVP'd to that event. They'd still have to confirm/reject the invite, but once they've confirmed it should be added to their calendar. At that point it's Google's responsibility to keep them updated with any changes to the event.

    https://developers.google.com/calendar/api/concepts/sharing#inviting_attendees_to_events explains this (and a few other things)

  26. ojeytonwilliams commented on Jul 13, 2022

    @ojeytonwilliams
    Contributor

    Related: #1004 in that we want to make sure we and Google collectively only send one reminder. Also, I think people would expect unsubscribing to prevent them getting any notifications, including ones from Google Calendar.

  27. ojeytonwilliams commented on Oct 6, 2022

    @ojeytonwilliams
    Contributor

    @allella since the Google calendar integration seems to be working, I think we have enough functionality for the MVP. As we get user feedback, I'll add more issues, but I think this issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions