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

Delete Friend From Invitation Modal #237

Merged

Conversation

samarth52
Copy link
Contributor

Summary

Resolves: #236
Sibling PR: gt-scheduler/firebase-conf#6

We need a function to remove mappings of a given user and friend for a given schedule version and term, from the friends and friend-invites collections.

Checklist

Functional Requirements

  • Create a Firebase function that:
    • deletes any friend-invites record that corresponds to the current user, friend, term, and schedule version.
    • updates the friend's friends record such that the current user's schedule version is removed from the accessibleSchedules[userId] array for the chosen term
  • Integrate the Firebase function with the handleDelete method in src/components/InvitationModal

How to Test

  1. Use the Firebase emulator on branch Samarth/delete-invitation of the Firebase conf repo.
  2. Update the link in the handleDelete function in src/components/InvitationModal/index.tsx.
  3. Test out the invitation modal

@github-actions
Copy link

github-actions bot commented Apr 22, 2023

PR Preview Action v1.4.4
🚀 Deployed preview to https://gt-scheduler.github.io/website/pr-preview/pr-237/
on branch gh-pages at 2023-10-20 07:15 UTC

@samarth52 samarth52 changed the base branch from bog-changes-s23 to bog-changes-s23-merged October 20, 2023 02:20
@samarth52 samarth52 merged commit 780c4de into bog-changes-s23-merged Oct 20, 2023
3 checks passed
@samarth52 samarth52 deleted the Samarth/236-delete-friend-invitation branch October 20, 2023 07:19
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.

1 participant