Skip to content

Conversation

@dontcallmedom
Copy link
Owner

close #67

@dontcallmedom dontcallmedom force-pushed the support-discussions branch 2 times, most recently from e1ec0fd to 5f68022 Compare August 26, 2025 09:56
Copy link
Collaborator

@tidoust tidoust left a 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)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"commentscount": discussion.get("comments", {}).get("totalCount", len(comments)),
"commentscount": comments.get("totalCount", len(comments)),

}}
createdAt
updatedAt
comments(first: 10) {{
Copy link
Collaborator

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.

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.

GitHub Discussions

3 participants