Skip to content

Local-events CRUD - #28

Merged
danctila merged 8 commits into
mainfrom
backend/local-events/eric
Oct 13, 2025
Merged

danctila merged 8 commits into
mainfrom
backend/local-events/eric

Conversation

@eric-kitagawa

@eric-kitagawa eric-kitagawa commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

Description

Link to Ticket

Please include a summary of the changes and the related issue. Please also
include relevant motivation, context, and images!

How Has This Been Tested?

Running endpoint testing on the dev db.
Screenshot 2025-10-10 at 2 14 22 AM

Checklist

  • I have performed a self-review of my code
  • I have reached out to another developer to review my code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

@eric-kitagawa
eric-kitagawa marked this pull request as draft October 8, 2025 22:40
@alisryan alisryan linked an issue Oct 8, 2025 that may be closed by this pull request
10 tasks
@eric-kitagawa
eric-kitagawa marked this pull request as ready for review October 10, 2025 06:13
@eric-kitagawa eric-kitagawa self-assigned this Oct 10, 2025
@eric-kitagawa
eric-kitagawa marked this pull request as draft October 10, 2025 17:11
@eric-kitagawa
eric-kitagawa marked this pull request as ready for review October 10, 2025 18:09
@github-actions
github-actions Bot requested a review from danctila October 10, 2025 18:09
@eric-kitagawa

Copy link
Copy Markdown
Contributor Author

All of my local-events tests pass locally but some user auth and tmdb tests are failing. My endpoints and their tests are isolated so these can probably be reviewed but please check Slack

@alisryan alisryan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your work looks good! A bunch of schema changes need to be made though, basically you nuked the schema for movies/users/ratings etc. when you rebased. No big deal but this needs to be fixed before merging for sure!

Comment on lines -69 to -73
model UserProfile {
userId String @id @db.Uuid
username String?
preferredLanguages String[] @default([])
preferredCategories String[] @default([])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the auth tests are failing because you deleted the schema, can you revert this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could change this locally but I'm curious how to solve this in a permanent way. Every time I run the docker script they're getting rewritten because it's pulling from the prod DB.

web_authn_credential Json?
web_authn_aaguid String? @db.Uuid
mfa_challenges mfa_challenges[]
users auth_users @relation(fields: [user_id], references: [id], onDelete: Cascade, onUpdate: NoAction)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we changing auth_users to users at all of these places?

Comment thread backend/prisma/schema.prisma Outdated
title String?
description String?
numRatings String?
model local_event {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I think when you rebased you nuked all the changes to the schema besides yours that happened since you opened your branch, can you undo this?

alisryan
alisryan previously approved these changes Oct 10, 2025

@alisryan alisryan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@danctila danctila left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐐 LGTM 🐐

@danctila
danctila merged commit 5ef5870 into main Oct 13, 2025
@danctila
danctila deleted the backend/local-events/eric branch October 13, 2025 22:05
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.

Backend: Local Events

3 participants