-
Notifications
You must be signed in to change notification settings - Fork 212
[$80] Marathon Leaderboard displays Max Rating(SRM, MM) should display MM Rating #4947
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
Comments
@Oanh-and-only-Oanh |
Contest https://www.topcoder.com/challenges/30142336 has been created for this ticket. |
Submit in 8 hours and PR to: https://github.com/topcoder-platform/community-app/tree/milestone-20200924 run npm run test before PR |
Contest https://www.topcoder.com/challenges/30142336 has been updated - it has been assigned to cagdas001. |
@cagdas001, please resolve this ticket first #4875. The other is high priority. |
@Oanh-and-only-Oanh its waiting for API Team |
@Oanh-and-only-Oanh which branch I'll target for this one? Milestone is |
It basically shows whatever it gets from resources-api in the For e.g. https://api.topcoder.com/v5/resources?challengeId=457fe241-0687-4f60-a379-a3979a0d7210&roleId=732339e7-8e30-49d7-9198-cccf9451e221 You can take the member Kriii for reference, as the issue exists & reproducible with this member. resources-api gets the https://github.com/topcoder-platform/resources-api/blob/4edee0c7e666439e99e984c551f3753c447a9e0e/src/services/ResourceService.js#L148 If you're intending to show particular ratings for each track/challenge, I currently don't see such a response structure in resources-api So, either it should return something like the following, so we can get particular ratings ratings: {
"SRM": 2878,
"MARATHON_MATCH": 1791,
...
} or should detect the challenge track/type based on |
Ops. sorry for confusion. resource-api doesn't call member-api. directly queries from db https://github.com/topcoder-platform/resources-api/blob/4edee0c7e666439e99e984c551f3753c447a9e0e/src/common/helper.js#L154 Edited the above comment accordingly as well |
@cagdas001, member registration tab shows MAX Rating out of all the rating member has and Submission tab shows MM Rating. They should not how different ratings. Both tabs should show MM Rating. |
@Oanh-and-only-Oanh on my side, submissions tab also shows wrong rating.
The issue is that, resource-api returns maxRating. It should work in one of the ways I explained in my comment (#4947 (comment)) for us to show particular ratings:
|
@cagdas001 looks like MM ratings was fixed not long ago before it's now broken again. check out this closed ticket. #4730 Maybe it can help? Also @luizrrodrigues was the member who fixed it so maybe he can shed some light. |
@Oanh-and-only-Oanh This issue has been closed without fixing the wrong rating issue: #4730 (comment)
Additionally, I guess #4794 is about member-api. We're getting rating from resource-api here. |
@rootelement this a resource api issue and that it should return the maxRating instead of particular rating for the track. Please help. |
Hi, @Oanh-and-only-Oanh Any updates on this? :) |
Instead of resources API use member API. Update CA frontend to call different API. |
@rootelement , can you help with this issue during cool down? |
@sushilshinde @rootelement tldr; (from the above discussions)
|
Resource api will not be updated to house that information. That's not relevant to the resource, and |
Use the member api to fetch the specific rating based on what type of challenge is needed. The api exists and here is the curl for it: |
@bug-bash-helper assign me |
@nursoltan-s 🛑 this issue is not included in the Bug Bash. You may only pickup issues which are included in this Bug Bash and open for pick up. |
@Oanh-and-only-Oanh |
hi @nursoltan-s, it's picked up by @rakibansary for now. thanks! |
got it. |
The user rating displayed on MM (Registrant and Submission Tab) is max(SRMrating, MMrating), should be MM rating.
Description: Member registration tab shows MAX Rating out of all the rating member has and the Submission tab shows MM Rating on a Marathon Match Type Challenge. Both should show MM Rating.
The text was updated successfully, but these errors were encountered: