-
Notifications
You must be signed in to change notification settings - Fork 349
Development: Minimize messages response payload
#6983
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
Conversation
…m/Artemis into chore/minimize-messages-response
TimOrtel
left a comment
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.
LGTM. Very nice improvement.
This comment was marked as outdated.
This comment was marked as outdated.
tobias-lippert
left a comment
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.
Tested on ts5. Sending messages is still possible and the payload seems to be almost minimal.
I only noticed that the response for /conversations contains the type property twice for each conversation and I don't know if this is caused by this PR and can lead to problems.
9c6c215
The duplicate |
Strohgelaender
left a comment
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.
code
tobias-lippert
left a comment
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.
Tested on ts5. Still works after removing more content from the response body.
RY997
left a comment
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.
Tested on ts5, the number of REST calls looks good for me
laadvo
left a comment
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.
tested on ts1, the response payload is now a lot smaller. Writing messages, replies and reacting to them still works
Checklist
General
Server
Motivation and Context
Following #6964 we would like to decrease the payload of the messaging endpoints even further to increase performance. This PR reduces the size of the conversation Object attached to posts.
In a follow-up PR, the conversation object will be set to null completely.
Description
For GET .../messages, the .hideDetails() method from #6964 is applied to the conversation of the returned posts, including the answers. Also for the endpoints to retrieve the channel for an exercise/lecture this method is invoked.
Steps for Testing
Prerequisites:
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
Server