Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically pull in data from google calendars to make Events #5557

Open
nomadscientist opened this issue Nov 21, 2024 · 2 comments
Open

Comments

@nomadscientist
Copy link
Collaborator

No description provided.

@nomadscientist
Copy link
Collaborator Author

Then we don't have to make google calendar stuff AND ALSO events pages for everything.

@hexylena
Copy link
Member

hexylena commented Dec 9, 2024

Copying the discussion from DMs for preservation purposes:

Current Progress

This was my first attmept at extracting that data:

---
layout: event
title: "\U0001F596\U0001F3FDSPOC | Write-a-thon"
date_start: 2024-12-10
date_end: 2024-12-10
tags:
- google-calendar
- single-cell
mode: online
async: false
---
Details
here: [https://docs.google.com/document/d/179G-VDl7NggXr2AhMPQ8UPrYwoa7KgPd29Us6G74O7U/edit?usp=sharing][1]{:
target="_blank"}  
  
<p dir=\"ltr\">**Join Zoom Meeting**

<p
dir=\"ltr\">[<u>https://us02web.zoom.us/j/87443808126?pwd=QjZ3TEJmSVBpdHgrQUQwOGkraFM2UT09</u>][2]{:
target="_blank"} 

<p dir=\"ltr\">Meeting ID: 874 4380 8126

<p
dir=\"ltr\">Passcode: nerdsunite

[1]: https://www.google.com/url?q=https://docs.google.com/document/d/179G-VDl7NggXr2AhMPQ8UPrYwoa7KgPd29Us6G74O7U/edit?usp%3Dsharing&amp;sa=D&amp;source=calendar&amp;usd=2&amp;usg=AOvVaw2mun8adrKegH4ttYbxmzbK
[2]: https://www.google.com/url?q=https://us02web.zoom.us/j/87443808126?pwd%3DQjZ3TEJmSVBpdHgrQUQwOGkraFM2UT09&amp;sa=D&amp;source=calendar&amp;usd=2&amp;usg=AOvVaw2AHNJMr7ikkQ2XJ8tDg1Qa

https://github.com/galaxyproject/training-material/tree/aardvark-hops the code is here for anyone who wants to work on it, but I have the sneaking suspicion that we would have to sit down and engineer this feature properly.

Known Issues

  1. every thing in the GTN events calendar is marked as a Course. It is annotated as such in the JSON-LD and propagated to TeSS. For non-course events such as meetings we'd want to selectively disable all of that infrastructure just for your events.
  2. Maybe we could achieve this through a "Meeting" layout, but then, do we show meetings alongside events? intermingled?
    1. We'll also have to disable the "add to your calendar" because that isn't ideal. Or, find a way to generate the add-to-cal link specifically for the source calendar's engine (google), and then use ours for others (O365/MS, apple)
    2. and instructor zone.
  3. should all events be there? only some?
  4. are they all async? all online? How will we know if they're not? you aren't using the e.g. Location field so, we can't pull from that.
  5. we have two fields in the GTN: the description (appears in the event list, useful for providing context), and then the contents of the event post. The calendar has ONE. We could pull the first line, but, you'd have to be consistent about providing a good description as the first line.
  6. GTN framework doesn't have support for times in the events, only Days, so, everything will appear as on a specific day, and it'll be up to the viewer to check the time on the event itself., Or we need to implement support for future event times which is....complex.
  7. I need a fancier way to strip the HTML that's included, thanks Google.
  8. we've got duplicate events currently, one a day long, one an hour long. They have different purposes so we need a way to select correctly. ("I'd put one for easier to nab calendar invite for people doing it in other timezones on the day but not during, so that's an edge case that can be removed")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants