Skip to content
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

Draft
wants to merge 68 commits into
base: main
Choose a base branch
from
Draft

Adding combined inbox #5257

wants to merge 68 commits into from

Conversation

dessalines
Copy link
Member

@dessalines dessalines commented Dec 12, 2024

Context: #2444

dessalines and others added 30 commits November 2, 2024 13:04
* 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
@dessalines dessalines changed the title Combined inbox Adding combined inbox Dec 12, 2024

Ok(Json(PersonCommentMentionResponse {
person_comment_mention_view,
}))
Copy link
Member

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.

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants