-
Notifications
You must be signed in to change notification settings - Fork 10
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
api getWhyRanksAndPoints(discussionId,round, mostIds, leastIds, cb( {ranks: [], points: [] }) #207
Comments
@ldgze How is this going? |
Hi David, I’m still working on the issue and plan to commit the code later today. |
Hi David @ddfridley, I have a question about when we should call Just want to make sure I align with the requirements. Thanks for clarifying! |
There may not be 5, then just get all there are.
Get BlueMail for Android
…On Nov 5, 2024, 12:51 PM, at 12:51 PM, Dongze Li ***@***.***> wrote:
Hi David @ddfridley,
I have a question about when we should call randomWhys for each mostId
and leastId. Specifically, do we need to call randomWhys only when an
ID has no existing "why," or should we ensure that each ID
has at least 5 "whys" by calling randomWhys to make up any
shortfall?
Just want to make sure I align with the requirements. Thanks for
clarifying!
--
Reply to this email directly or view it on GitHub:
#207 (comment)
You are receiving this because you were mentioned.
Message ID:
***@***.***>
|
Hi David, I’ve implemented the Implementation Steps
My Questions
Thanks for your time and guidance! |
@ldgze Hi! I see my responding to this got dropped, And I haven't seen you for a while. Are you still able to work on it? I hope your having a good new year! |
Hi David, Happy New Year! I’ve been busy with job hunting recently, but I’ll take a look at the code today and provide an update. |
mostIds and leastIds are 'main-points' that the user has ranked as most/least important. We only have one collection for points, because the format is the same, and in other situations there could be deeper nesting, main-point, why-point, sub-why-point, sub-sub-why-point. etc. Ie in another discussion we could ask people why they think that's the most important why point. -- it's common in human discussion. I hope this helps. Thanks! |
see https://docs.google.com/spreadsheets/d/1hVsobuGFElsuzuKR0Hx4-htCmAQ-POFkHHt9ZGLcmZY/edit?gid=1364079177#gid=1364079177&range=C32:D32
getWhyRanksAndPoints(discussionId,round, mostIds, leastIds, cb( {ranks: [], whys: [] })
from rank, match userId, discussionId, stage: why, round.
If some found, fetch the correspoding why-points by the parentId in the rank.
if there is a why-point for all mostIds and leastIds then return ranks and whys
else get randomWhys for each mostId and leastId and return ranks and whys
The text was updated successfully, but these errors were encountered: