-
Notifications
You must be signed in to change notification settings - Fork 20
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
Refactor critical Resql queries #483
Comments
Most Critical Queries:Chatbot Module
Analytics Module
Notes:
|
This was referenced May 10, 2024
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AS AN Architect
I WANT some of Bürokratt's current critical Resql queries to be refactored
SO THAT they wouldn't crash the system
Acceptance Criteria
NoJOIN
queries can be used in SQL queriesUPDATE
queries can be used in SQL queriesDELETE
queries can be used in SQL queriesOnlyINSERT
andSELECT
queries can be used in SQL queriesOnlydenormalized databases
can be usedSELECT *
is not allowedEvery request must containLIMIT from, to
when listing resultsJOIN
queries to minimumScope of work
Chatbot
get-cs-all-active-chats.sql
Postgres query #564get-cs-all-ended-chats.sql
Postgres query #565get-cs-all-pending-chats.sql
Postgres query #566get-cs-all-unavailable-ended-chats.sql
Postgres query #567SELECT *
withSELECT {field_name}
#583UPDATE
queries withINSERT
andSELECT
#584DELETE
queries withINSERT
andSELECT
#585Analytics Module
csa-chat-forwards.sql
Postgres query Analytics-Module#213feedback-chats-with-negative-feedback.sql
Postgres query Analytics-Module#214SELECT *
withSELECT {field_name}
Analytics-Module#222UPDATE
queries withINSERT
andSELECT
Analytics-Module#223DELETE
queries withINSERT
andSELECT
Analytics-Module#224Training Module
SELECT *
withSELECT {field_name}
Training-Module#486UPDATE
queries withINSERT
andSELECT
Training-Module#487DELETE
queries withINSERT
andSELECT
Training-Module#488Service Module
SELECT *
withSELECT {field_name}
Service-Module#276UPDATE
queries withINSERT
andSELECT
Service-Module#277DELETE
queries withINSERT
andSELECT
Service-Module#278The text was updated successfully, but these errors were encountered: