-
-
Notifications
You must be signed in to change notification settings - Fork 886
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
Adding combined inbox #5257
base: main
Are you sure you want to change the base?
Adding combined inbox #5257
Conversation
* add pagination cursor * store timestamp instead of id in cursor (partial) * Revert "store timestamp instead of id in cursor (partial)" This reverts commit 89359dd. * use paginated query builder
…into combined_tables_2
…into combined_tables_2
Co-authored-by: dullbananas <[email protected]>
Co-authored-by: dullbananas <[email protected]>
|
||
Ok(Json(PersonCommentMentionResponse { | ||
person_comment_mention_view, | ||
})) |
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.
How about changing the return values of mark as read to simply SuccessResponse? Then it would also make sense to switch to a single mark_as_read endpoint so clients dont have to differentiate between comment, post, etc.
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.
On updates and creates, its really helpful to get back the changed / new item. Then the front end can replace that object after a success, and make the findAndReplace function generic, instead of having a bunch of specific ones for each action, where the response tells you nothing about what changed.
Context: #2444