Skip to content

[$60] Rating on default profile does not match the rating on the rating history graph #4794

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

Open
VanitaW opened this issue Aug 20, 2020 · 12 comments
Labels
API-issue Member Profiles P2 Important (resolve within 3 days)

Comments

@VanitaW
Copy link

VanitaW commented Aug 20, 2020

Describe the bug

Rating on default profile does not match the rating on the rating history graph

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://www.topcoder.com/challenges
  2. Scroll down to 'Open for registration".
  3. Click on any active coding challenge with registrants.
  4. Click on the 'Registrants' tab.
  5. Click on any username in the list with a rating
  6. Scroll down to the 'Code' tab under 'Development Activity'.
  7. Observe the rating.
  8. Click on the 'Code' tab.
  9. Scroll down to the rating graphs.
  10. Click on the last point (circle) on the graph
  11. Observer the rating

Expected behavior
The rating on the default profile page should match the current rating the rating history graph.

Actual behavior
The ratings on the default profile page is different than the current rating on the history graph.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 10, macOS 10.15.6
  • Browser Chrome Version 84.0.4147.135
  • Browser Safari Version 13.1.2 (15609.3.5.1.3)

Smartphone (please complete the following information):

  • Device: iPad Air 2
  • OS: iPad OS 13
  • Browser Chrome 84.0.4147.122
  • Browser Safari Version 13
@luizrrodrigues
Copy link
Collaborator

@rootelement API returning different rating in /MEMBER/stats and /MEMBERS/stats/history:

image

@tmalbonph
Copy link

Why are the latest ratings' history values have lower values?

@tmalbonph
Copy link

Last February 15 2020 at around 7:48:12 PHT time, I have 1941 ratings

Screenshot from 2020-02-15 07-48-12

@tmalbonph
Copy link

@luizrrodrigues @Oanh-and-only-Oanh Also check this on March 17, 2020 at around 12:17:32 PHT, I won an F2F and my rank color is still YELLOW

Screenshot from 2020-03-17 12-17-32

@tmalbonph
Copy link

@Oanh-and-only-Oanh @luizrrodrigues The V5 maximumRating: 1669, it should be maximumRating: 1941

Screenshot from 2020-09-03 02-35-24

@Oanh-and-only-Oanh Oanh-and-only-Oanh added the P2 Important (resolve within 3 days) label Sep 2, 2020
@luizrrodrigues
Copy link
Collaborator

@urwithat Can you help in this one?
#4794 (comment)

@urwithat
Copy link
Contributor

urwithat commented Sep 18, 2020

@cagdas001 - v3 member stats should be working fine but seems the v5 stats need a fix. Figuring out the root cause will take a couple of days.

@cagdas001
Copy link
Collaborator

@cagdas001 - v3 member stats should be working fine but seems the v5 stats need a fix. Figuring out the root cause will take a couple of days.

@urwithat if you're talking about the issue #4947 we're getting the rating from resources-api there. The issue is that resources-api returns the maxRating instead of particular rating for the track. Neither frontend nor the resources-api calls member-api. resources-api directly gets/queries Member Stats from DB.

You can take a look at this comment: #4947 (comment)

but seems the v5 stats need a fix.

By the way, for the V5 stats endpoint, I realized yesterday when I was working on the #4947, it actuslly returns all ratings along with maxRating so you can access particular ratings as well. Just take a look at the response structure, all ratings are there

@Oanh-and-only-Oanh Oanh-and-only-Oanh modified the milestones: By 9/24/2020, Release by 10/1/2020 Sep 21, 2020
@Oanh-and-only-Oanh Oanh-and-only-Oanh changed the title Rating on default profile does not match the rating on the rating history graph [$60] Rating on default profile does not match the rating on the rating history graph Sep 21, 2020
@crazyk07
Copy link

Contest https://www.topcoder.com/challenges/30142851 has been created for this ticket.

This is an automated message for crazyk via Topcoder X

@crazyk07
Copy link

Contest https://www.topcoder.com/challenges/30142851 has been updated - it has been assigned to cagdas001.

This is an automated message for crazyk via Topcoder X

@Oanh-and-only-Oanh
Copy link

@cagdas001, so is this a resource api issue and that it should return the maxRating instead of particular rating for the track?

@cagdas001
Copy link
Collaborator

@cagdas001, so is this a resource api issue and that it should return the maxRating instead of particular rating for the track?

What I wrote applies to #4947 This issue is another story I guess, have not investigated this one. In #4947 , you're right we're getting rating from resources-api so it's a resources-api issue. Take a look at this comment #4947 (comment) for detailed info

@Oanh-and-only-Oanh Oanh-and-only-Oanh modified the milestones: Release by 10/1/2020, By 10/29/2020 Sep 29, 2020
@SathyaJayabal SathyaJayabal removed this from the By 10/29/2020 milestone Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API-issue Member Profiles P2 Important (resolve within 3 days)
Projects
None yet
Development

No branches or pull requests

8 participants