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

Some events have no title when exported to ical #310

Open
galenguyer opened this issue Feb 13, 2020 · 1 comment
Open

Some events have no title when exported to ical #310

galenguyer opened this issue Feb 13, 2020 · 1 comment

Comments

@galenguyer
Copy link
Member

Example: Narwhal Systems visit on Feb 18:

@gavrielrh
Copy link
Contributor

This is pretty weird.
So the ics (ical) file is served via an API request to our node-api, more specifically the [GET] / route where the request header accepts ics: https://github.com/rit-sse/node-api/blob/ef75c7c8aeb013fbe99bf32b1914f0a1f4e716de/routes/events.js#L26
All the site does is have an anchor to the aforementioned endpoint:

<a href="/api/v2/events.ics" rel="noopener" className="float-right" style={{marginTop: "4px", marginRight: "4px"}}>

This route grabs all events from the db via sequelize, scoped by whatever the request specifies and then just sends the events as a calendar.ics file. There isn't any specific logic that mutates how an event would display, so I'm really not sure why your event is showing up with no title.

I double checked the prod-db and your event has all of the fields I would expect it to have.
The API also returns back normal results:
https://sse.rit.edu/api/v2/events?name=Narwhal%20Systems

If you'd like to poke around and see what you can figure out, the Event model is located here: https://github.com/rit-sse/node-api/blob/ef75c7c8aeb013fbe99bf32b1914f0a1f4e716de/models/event.js#L10

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