-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add address to results #10362
Add address to results #10362
Conversation
Replaced sequelize query with plain sql and replaced output schema with CommentsView |
Why do we need to modify the query? Passing |
we are refactoring queries to use plain sql and return "views".... also note that this query is not used by the app, just the external api |
We are using view where necessary. I wasn't aware we had decided to convert everything to raw SQL. In this case the Sequelize query is much cleaner IMO.
Right so all the more reason to not remove arguments... |
ok, then we can close this without merging and create another PR to fix the query |
I'm fine with going with raw query I just hadn't realized we had made that an explicit goal. That said, if we go with raw query we should probably add |
I'm ok with both, but prefer raw queries to have more control over model... sequelize is not bullet proof I don't see the scenario where you want a comment without the user details included, and the performance hit is minimal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting some zod errors, but the query works. I have a related PR #10441 where I can get these zod issues fixed.
Link to Issue
Closes: #10356
Description of Changes
"How We Fixed It"
Test Plan
FIXME()
call.Deployment Plan
Other Considerations