feat: add questions API with tests#1711
Conversation
…ackend into feat/questions-answers-api
…ackend into feat/questions-answers-api
|
Updated the description |
|
Can you mention the PR for data models and api contracts? |
|
All Typescript codes are written in strict mode? |
didn't get this one |
…ackend into feat/questions-answers-api
…Dev-Squad/website-backend into feat/questions-answers-api
Ajeyakrishna-k
left a comment
There was a problem hiding this comment.
Can you please help me understand how will this work for the following cases:
- When there are more than one event happening simultaneously.
- If we have deployed more than one instances of our server.
Currently as per requirements there will be only event that will happen at a time so it's build like that. |
Can you add a comments with link to detailed ticket explaining these limitations |
Created a wiki page for the overall feature and added the limitations in it here - https://github.com/Real-Dev-Squad/website-www/wiki/%5BFeature%5D-%E2%80%90-Realtime-Word-Cloud-Questions-Answers-Feature |
Please add this link in comments on clients array and questions api routes. |
Date: 25-12-2023
Developer Name: Satyam Bajpai
Issue Ticket Number:-
Description:
This PR contains questions API which will be needed for word cloud feature. The get request is server sent event API that's why you wil see the code little different from normal API.
Usage
This API will be used in live-site question answers where host can ask question to connected peers in realtime and connected peers and answer the question in realtime and the approved responses will be used to form word cloud in realtime in every clients screen.
Sequence diagram - https://lucid.app/lucidspark/02e146bd-6d0f-4d4e-a425-f811c9289e49/edit?viewport_loc=-5030%2C-192%2C3515%2C2201%2C0_0&invitationId=inv_4a2f8f42-57df-473f-86a1-caea4c57d619
API contracts - RealDevSquad/website-api-contracts#166
The test for SSE API is not written in this PR I will handle this in the ticket mentioned below,
Is Under Feature Flag
Database changes
Breaking changes (If your feature is breaking/missing something please mention pending tickets)
Is Development Tested?
Tested in staging?
Add relevant Screenshot below ( e.g test coverage etc. )