Skip to content

Conversation

@razeenr05
Copy link
Contributor

Please let me know if my code for this issue is okay!
Issue: Create the generic version of query builder function #278

@mikehquan19
Copy link
Contributor

Great! Will review them soon!

@mikehquan19
Copy link
Contributor

@razeenr05 I left some comments on your PR. Please check it and reach out to me if you have any questions.

@razeenr05
Copy link
Contributor Author

@razeenr05 I left some comments on your PR. Please check it and reach out to me if you have any questions.

Okay, should I do these changes and create another pull request?

@mikehquan19
Copy link
Contributor

@razeenr05 , you just need to commit new changes, and it will auto-update the PR :))

@razeenr05
Copy link
Contributor Author

Could you check my new commits?

@mikehquan19
Copy link
Contributor

@razeenr05, I will soon! Thank you. But before that, can you resolve the merge conflicts you have?

The best way to resolve merge conflicts is pulling new changes from repo to your local and then manually resolving them. I think in your case, you would have to make some further changes to course endpoints. After that, you can commit your merge and push back.

@razeenr05
Copy link
Contributor Author

@razeenr05, I will soon! Thank you. But before that, can you resolve the merge conflicts you have?

The best way to resolve merge conflicts is pulling new changes from repo to your local and then manually resolving them. I think in your case, you would have to make some further changes to course endpoints. After that, you can commit your merge and push back.

Okay, I believe I've done so. Hopefully none of the changes I made before were lost lol. Let me know if the merge conflicts were resolved, and the next steps for my solution!

@mikehquan19
Copy link
Contributor

@razeenr05 , great progress so far. Just a few things to fix,

what does

if flag == "ById" {
   if len(professorSections) > 0 {
     respond(c, http.StatusOK, "success", professorSections[0])
   } else {
     respond[*schema.Section](c, http.StatusNotFound, "not found", nil)
   }
}

do? I don't think it's needed for reasons I've included in the review.

After resolving all these, this should be ready for merging.

@razeenr05
Copy link
Contributor Author

@razeenr05 , great progress so far. Just a few things to fix,

what does

if flag == "ById" {
   if len(professorSections) > 0 {
     respond(c, http.StatusOK, "success", professorSections[0])
   } else {
     respond[*schema.Section](c, http.StatusNotFound, "not found", nil)
   }
}

do? I don't think it's needed for reasons I've included in the review.

After resolving all these, this should be ready for merging.

Oh it was meant to return just one item for the byid case and a 404 if nothing was found. But yea you’re right since a professor can teach multiple courses it makes more sense to just return the full list. I'll do these changes you listed real quick

@mikehquan19
Copy link
Contributor

Hey @razeenr05 , your changes are functional, now 👍, just a few more things I added.

Sorry for bugging you like this, I plan on merging your PR before everything else since it should've been merged a while ago but I was just too busy with my school (I still am lol).

@razeenr05
Copy link
Contributor Author

Hey @razeenr05 , your changes are functional, now 👍, just a few more things I added.

Sorry for bugging you like this, I plan on merging your PR before everything else since it should've been merged a while ago but I was just too busy with my school (I still am lol).

Alright thanks for the help, I believe ive done those last few changes. let me know!

@mikehquan19 mikehquan19 merged commit 07cbcc5 into UTDNebula:develop Oct 11, 2025
2 checks passed
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.

2 participants