#2743: user's availability calendar now reflects RSVP'd meetings #3640
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
When users RSVP to a meeting (i.e. provide their availability for a design review meeting), as soon as the meeting time is selected by the host, all attendee's availability calendars get updated to reflect the meeting, i.e. the time block of the meeting shows as no longer available.
Notes
It seems that availability dates stored in the db are typically off by ~1 day, so as a temporary measure until this behavior is fixed, I offset the date/time by 1 day to account for the error, but once resolved, that logic can simply be removed (I left in the code that should work as a comment).
I'm putting up this PR now just to have progress and so I can move onto other ticket, but might want to wait on merging this until that date bug gets resolved.
Screenshots
Here's a walkthrough of the full process, just so it's clear when the availability gets adjusted and how it appears to the user:
demo.mp4
Checklist
It can be helpful to check the
ChecksandFiles changedtabs.Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
yarn.lockchanges (unless dependencies have changed)Closes #2743