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

207 api getwhyranksandpointsdiscussionidround mostids leastids cb ranks points #245

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ldgze
Copy link
Contributor

@ldgze ldgze commented Nov 11, 2024

No description provided.

Copy link
Contributor

@ddfridley ddfridley left a comment

Choose a reason for hiding this comment

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

Looking good. I appreciate the use of Promises.all() see inline comments.

@ldgze ldgze marked this pull request as ready for review November 24, 2024 20:53
Copy link
Contributor

@ddfridley ddfridley left a comment

Choose a reason for hiding this comment

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

When I npm run test get-why-ranks-and-points I see this failing 3 tests:

Test Suites: 1 failed, 1 total                                                                                                                                                                                                                                                                                            
Tests:       3 failed, 2 passed, 5 total                                                                                                                                                                                                                                                                                  
Snapshots:   0 total
Time:        12.737 s

On think I see is the difference between whys: undefined and whys: [], whys should be undefined if data hasn't been fetched from the db yet. But mostly with this api, whatever it returns is after the fetch, so it should return whys: [].

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.

api getWhyRanksAndPoints(discussionId,round, mostIds, leastIds, cb( {ranks: [], points: [] })
2 participants