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

Creating a Match #38

Open
1 of 4 tasks
brandondionisio opened this issue Nov 7, 2024 · 0 comments
Open
1 of 4 tasks

Creating a Match #38

brandondionisio opened this issue Nov 7, 2024 · 0 comments
Assignees

Comments

@brandondionisio
Copy link
Collaborator

brandondionisio commented Nov 7, 2024

Categorizing the tutees as matched and unmatched

Summary 💻

For this ticket, you are tasked with implementing the createMatch() function in /backend/src/index.ts.

This function creates a match between a tutor and tutee given their ids by first checking if they both exist in the unmatched table and then creating a new row in the approved_matches table.

Deliverables 🚀

  • Schedule at least two meetings as a pair
  • Create a new branch using the "create a branch" button
  • Implement the function
  • Open a PR and request review from @brandondionisio.

Tips for success 📈

  • If either the tutor_id or tutee_id doesn't exist in the unmatched table, your function should throw an error.
  • If they both exist in the unmatched table, move those ids to the matched table and add a row in the approved_matches table that contains both ids.
  • Duplicate ids in the unmatched and matched tables are ok.
  • Visit the Resources link in the notion to find help when working with the backend.

Where to get help!

Reach out to @dilanurbayraktar and @brandondionisio.

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

No branches or pull requests

3 participants