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

Improve performance of signups calendar #4430

Merged
merged 2 commits into from
Nov 9, 2024
Merged

Conversation

kitsuta
Copy link
Member

@kitsuta kitsuta commented Nov 8, 2024

This should (hopefully) dramatically improve the performance of the signups calendar by rewriting the call for assigned shifts so it stops generating so many DB queries.

There's less that we can immediately do about the call for available jobs, since there's so much processing that happens to figure out what jobs you can actually sign up for. We'll want to tackle that later, but in the meantime, we've added caching to the page so that switching to List view no longer re-fetches jobs from the server (thank you Hayley!).

We also now update the "you are signed up for X hours" text when you sign up for and drop a shift, so people don't have to refresh the page to see their current hours total.

Also returns your new weighted hours so we can keep that updated.
Also fades the text in and out for your weighted hours.
@kitsuta kitsuta requested a review from bitbyt3r November 8, 2024 14:11
@kitsuta
Copy link
Member Author

kitsuta commented Nov 8, 2024

The build here is expected to fail as this branch was started before the build fix was pushed into the main branch.

@bitbyt3r bitbyt3r merged commit 021b6ef into main Nov 9, 2024
1 of 3 checks passed
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