gt-scheduler / website

Scheduling application designed to mitigate some of the pain-points present throughout Georgia Tech's registration process.
https://gt-scheduler.org
GNU Affero General Public License v3.0
92 stars 22 forks source link

Delete Friend From Invitation Modal #236

Closed samarth52 closed 6 months ago

samarth52 commented 1 year ago

Problem Description

When a user presses the cross beside an invited user, we should delete the mapping from the user record in the schedules collection, the friend record in the friends collection, and the invite record in the friend-invites collection. Currently, only the schedules collection is updated since the user schedule data is loaded client-side. Updating the other collections requires us to modify other users' records, which is not safe to do so client-side. We need to create and integrate a new Firebase function to update the other collections.

Your Goal