topcoder-platform / community-app

React webapp for serving Topcoder Community
125 stars 212 forks source link

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

Open VanitaW opened 4 years ago

VanitaW commented 4 years ago

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):

Smartphone (please complete the following information):

luizrrodrigues commented 4 years ago

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

image

tmalbonph commented 4 years ago

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

tmalbonph commented 4 years ago

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

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

tmalbonph commented 4 years ago

@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 commented 4 years ago

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

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

luizrrodrigues commented 4 years ago

@urwithat Can you help in this one? https://github.com/topcoder-platform/community-app/issues/4794#issuecomment-684296507

urwithat commented 4 years ago

@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 commented 4 years ago

@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: https://github.com/topcoder-platform/community-app/issues/4947#issuecomment-694458962

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

crazyk07 commented 4 years ago

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

This is an automated message for crazyk via Topcoder X

crazyk07 commented 4 years ago

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 commented 4 years ago

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

cagdas001 commented 4 years ago

@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 https://github.com/topcoder-platform/community-app/issues/4947#issuecomment-694458962 for detailed info