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

Pull remote calendar information on a month by month basis. (Fixes #186) #206

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

MelissaAutumn
Copy link
Member

Very simple fix, I think we originally pulled an entire year to save on google api calls, but I'm not sure that matters. I don't cache the calendar data as we don't have a way of knowing if its been updated without doing the entire request.

Eventually we'll store this data and have google tell us what's new (with occasionally double checks on our side) but for now this should speed things up quite a bit!

Copy link
Collaborator

@devmount devmount left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe at the very first version I already had that set to month, but for some reason I changed it to year-wise data retrieval, sorry for that. Some minor suggestions attached.

frontend/src/views/CalendarView.vue Outdated Show resolved Hide resolved
frontend/src/views/CalendarView.vue Outdated Show resolved Hide resolved
frontend/src/views/ScheduleView.vue Outdated Show resolved Hide resolved
frontend/src/views/ScheduleView.vue Outdated Show resolved Hide resolved
Co-authored-by: Andreas <mail@devmount.de>
@MelissaAutumn
Copy link
Member Author

Ah right, that makes sense! Thanks!

@MelissaAutumn MelissaAutumn merged commit 9e2f8f0 into main Dec 11, 2023
@MelissaAutumn MelissaAutumn deleted the features/186-dont-pull-a-full-year-at-once branch December 11, 2023 15:42
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

Successfully merging this pull request may close these issues.

2 participants