Switch to API endpoint for calendar updates #272
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update switches the logic that was driving a Puppeteer instance to create and update calendar entries to a less convoluted logic that leverages the newly available API endpoint.
The
W3C_LOGINandW3C_PASSWORDvariable and secret are no longer needed with that new approach, but a newW3C_TOKENsecret needs to be set. That token is returned by the admin interface when a big meeting is created (and can be reset by an admin afterwards as needed).The logic remains the same otherwise: calendar entries continue to get added to the description of an issue, and that information gets used afterwards to avoid duplicating calendar entries for a given meeting.
One thing still missing: The API endpoint does not yet allow one to check or uncheck the "Limit 'show' selection below to those people who registered..." option in the "Joining" section. That option needs to be checked for group meetings and restricted breakout sessions (if any). That option needs to be unchecked for breakout sessions otherwise. To be addressed by the Systems team. This PR should not be merged until that gets fixed (hence the "draft PR" status). Cc @jean-gui
Calendar updates get done by the CLI command as before, typically called through a GitHub workflow. A next iteration could perhaps run the update from the spreadsheet but:
Additional notes: