-
Notifications
You must be signed in to change notification settings - Fork 13
feat(comments): add comment retrieval functions #117
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
|
Hi @bramdelta 👋 Thanks for your opening your first PR into For this first pass I'll just stick to architecture stuff. I couldn't help but notice that right now the comments stuff is exposed as multiple separate functions for consumers to use. We want to try to keep a 1:1 mapping between api-js and RAWeb, both for maintainability and backwards compatibility purposes. Ideally, api-js is as thin of wrapper as possible, with limited abstractions. A good example of this is I think we should condense all the comments functions down into a single function, ie: Don't worry too much about #3156. I'm not sure what's happening with that PR presently. |
|
@wescopeland They're now all merged into a single |
|
Cool! I should have time tomorrow to sit down and do a review. |
wescopeland
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.
Looks good - just a few quick things to work through and I think we'll be all set.
Ah, apologies for the confusion here. This lives in https://github.com/RetroAchievements/api-docs. |
|
@wescopeland Other than the comment above, I think everything is resolved now. Thank you for the review! I'm still getting the hang of typescript I'm afraid |
wescopeland
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. Thanks!
getCommentsResolves: #107
A few things:
commentsmodule the right way to do it, or should that have been split up per-scope, like movinggetCommentsOnAchievementWallto theachievementmodule?Edit: Just saw this PR to add sort order to comment retrieval: RetroAchievements/RAWeb#3156
Maybe this PR should wait until that's done, so it can be updated to also allow sort ordering?