Closed skks1212 closed 8 months ago
Hey @skks1212, I have a couple of questions,
In the above description, you mentioned adding user_id
as a foreign key, but as the chat itself is user-specific, do we need that? :thinking:
Second is more like clarification, we should also have thumbs down, right? And as far as storing value goes, liked === null, no feedback; liked === true, thumbs up; and liked === false, thumbs down;
Hey @khavinshankar yes we can leave out the user field. And as liked is Boolean, thumbs-up will be ===true and thumbs down will be ===false. It will be a not null field
Hey @skks1212, about /feedback
endpoint, is just an endpoint enough or do we need a dedicated screen in the frontend, if so where?
@khavinshankar we need the feedback buttons on the chat UI (👍,👎) and a way to list feedbacks in the admin panel, preferably in its own page
Users should be able to provide feedback to the chat. This should be handled by a
Feedback
model, which hasChatMessage
User
Make relevant views and serializers. Feedback should be listed with
/feedback
url, with possible filters -Only admins should be able to list and retrieve all feedback. Normal users can only list their own. Feedbacks cannot be deleted.