-
Notifications
You must be signed in to change notification settings - Fork 24
Send websocket message for comments #3835
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
base: master
Are you sure you want to change the base?
Conversation
def to_representation(self, value): | ||
return None | ||
try: | ||
return instance_to_string(value) | ||
except Exception: | ||
pass |
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.
Dont know why GenericRelationField
was write-only, it prevented comments from returning content_target
. If it should stay how it was, it is easy enough to add it to the websocket meta data instead of this.
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.
Nice job
Description
Send websocket messages for new comments and deleted comments.
Currently a bit unsure of how i should implement the groups.
There should imo be a seperate group for each comment section, such that you only get messages from those you have access to (eg. "comments-events.event-1"). The issue is that always connecting to all groups a user has access to seems inefficient since there exists so many events, meetings etc.
Testing
Resolves ABA-1465