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

Make ical feed generation of meetings not slow #3321

Merged
merged 2 commits into from Apr 25, 2023
Merged

Conversation

LudvigHz
Copy link
Member

@LudvigHz LudvigHz commented Apr 19, 2023

The lookup for participating was very expensive and slow. It would cause
timeouts so some users' calendars would not load.

UNTESTED

This is my theory at least. I just wrote this code and haven't had the time to test it. But events
does not suffer from this problem so I hope my suspicions are correct.

Tested the code in staging with a hotpatch. Works great now :)

Fixes ABA-448

@LudvigHz LudvigHz force-pushed the meeting-ical-speed branch 2 times, most recently from 8f6ddcc to 5a18f21 Compare April 25, 2023 19:59
@LudvigHz LudvigHz marked this pull request as ready for review April 25, 2023 20:02
The lookup for participating was very expensive and slow. It would cause
timeouts so some users' calendars would not load.
@LudvigHz
Copy link
Member Author

Sorry about the noise in the diff. I also fixed some types here and there when I was working :))

@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Patch coverage: 96.77% and no project coverage change.

Comparison is base (a6f64c3) 88.34% compared to head (16c3fdb) 88.34%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3321   +/-   ##
=======================================
  Coverage   88.34%   88.34%           
=======================================
  Files         661      661           
  Lines       20938    20949   +11     
=======================================
+ Hits        18498    18508   +10     
- Misses       2440     2441    +1     
Impacted Files Coverage Δ
lego/apps/ical/utils.py 100.00% <ø> (ø)
lego/apps/permissions/permissions.py 90.16% <94.73%> (-0.36%) ⬇️
lego/apps/events/permissions.py 97.77% <100.00%> (ø)
lego/apps/ical/viewsets.py 100.00% <100.00%> (ø)
lego/apps/permissions/utils.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@ollfkaih ollfkaih left a comment

Choose a reason for hiding this comment

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

LGTM🥃

Copy link
Member

@eikhr eikhr left a comment

Choose a reason for hiding this comment

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

LGTM, much needed!

@eikhr eikhr merged commit 3f8784b into master Apr 25, 2023
3 checks passed
@eikhr eikhr deleted the meeting-ical-speed branch April 25, 2023 20:47
@linear
Copy link

linear bot commented Apr 25, 2023

ABA-448 Fix slow ical feed generation breaking calendar sync

It has broken the calendar sync for many people

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.

None yet

3 participants