-
Notifications
You must be signed in to change notification settings - Fork 18
Add support for discussions to digests #83
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: main
Are you sure you want to change the base?
Conversation
e1ec0fd to
5f68022
Compare
5f68022 to
febee27
Compare
tidoust
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.
On top of better support for recent comments, it would be great to start with new discussions, then to list discussions that received new comments.
| disc_comments = { | ||
| "discussion": disc_data, | ||
| "comments": comments, | ||
| "commentscount": discussion.get("comments", {}).get("totalCount", len(comments)), |
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.
| "commentscount": discussion.get("comments", {}).get("totalCount", len(comments)), | |
| "commentscount": comments.get("totalCount", len(comments)), |
| }} | ||
| createdAt | ||
| updatedAt | ||
| comments(first: 10) {{ |
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.
No pagination might be fine, but comments should probably be ordered by descending updated date to get new comments instead of always the first 10 ones.
close #67