Skip to content

[$40]Member Profile: Stats History- Rating history graph, Challenge URL is in incorrect format #4420

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

Closed
SathyaJayabal opened this issue May 26, 2020 · 18 comments

Comments

@SathyaJayabal
Copy link
Collaborator

https://test-community-app.topcoder-dev.com/members/Standlove/details/?track=DEVELOP&subTrack=DESIGN
User: jcori/appirio1234

Mouse over on the Rating history graph data points and click on challenge name

Expected URL Format: https://test-community-app.topcoder-dev.com/challenges/018d629e-f550-4ed4-bedd-0972433de5ad
Actual URL Format: https://test-community-app.topcoder-dev.com/challenges/30000431
cc @lakshmiathreya
stats history.mov.zip

@SathyaJayabal SathyaJayabal added Member Profiles P2 Important (resolve within 3 days) v5-intgration-sub-code Test Env Environment labels May 26, 2020
@SathyaJayabal SathyaJayabal changed the title Member Profile: Stats History- Rating history graph, Challenge URL is in correct format Member Profile: Stats History- Rating history graph, Challenge URL is in incorrect format May 26, 2020
@SathyaJayabal
Copy link
Collaborator Author

Also applicable for other sub tracks

@sushilshinde sushilshinde changed the title Member Profile: Stats History- Rating history graph, Challenge URL is in incorrect format [$40]Member Profile: Stats History- Rating history graph, Challenge URL is in incorrect format May 26, 2020
@crazyk07
Copy link

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

This is an automated message for crazyk via Topcoder X

@sushilshinde
Copy link
Collaborator

sushilshinde commented May 26, 2020

@topcoder-platform/topcodercompetitors @topcoder-platform/tcxcommunity this is open for pickup

Submit in 8 hours and PR to

https://github.com/topcoder-platform/community-app/tree/integration-v5-challenge-api
https://github.com/topcoder-platform/topcoder-react-lib/tree/integration-v5-challenge-api

@PrakashDurlabhji PrakashDurlabhji self-assigned this May 26, 2020
@crazyk07
Copy link

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

This is an automated message for crazyk via Topcoder X

@sushilshinde
Copy link
Collaborator

@PrakashDurlabhji please PR in 8 hours

@PrakashDurlabhji
Copy link
Contributor

PrakashDurlabhji commented May 26, 2020

@sushilshinde are we allowed to change member-api repo? as it may require change over that repo I will explain in detail in below comment with flow and propose solution in detail

@PrakashDurlabhji
Copy link
Contributor

PrakashDurlabhji commented May 26, 2020

@sushilshinde

  1. Each and every point on rating history graph represents following object as given in red box.

Capture

  1. and "challengeId" field is used to construct the url on tooltip as mentioned in code

  2. we need 1 more additional field such as "id" or any name as we keep, in object we receive as highlighted in red box.

  3. topcoder-react-lib require no changes because call is directly passed to member api repo without any manipulation of response as mentioned here.
    https://github.com/topcoder-platform/topcoder-react-lib/blob/47f435df2bae4894d74b9724b3a35db2f15a1754/src/services/members.js#L107

  4. so now in member-api repo, we can see ES query is made which gives history array, also seed data can be seen here
    https://github.com/topcoder-platform/member-api/blob/800d857fc0e315a467c219d1157bc43ed61d85a1/src/scripts/seed-data.js#L135
    and Swagger defines properties which can be seen here https://github.com/topcoder-platform/member-api/blob/800d857fc0e315a467c219d1157bc43ed61d85a1/docs/swagger.yaml#L2079

so we need 1 more property in the object to solve this as I am aware v5 has introduced legacy object in challenge response. so am I allowed to change member-api repo? @urwithat

OR

Also, If above adding of a property is not possible, then is something else expected?
e.g

  1. taking each challenge id, call getChallengeDetails and then pick id from it? and form the new property and merge it in each object respectively?

such a solution expected?

or if anything i am missing ? Kindly confirm I will make a PR immediately.

@lakshmiathreya lakshmiathreya added P1 Urgent (resolve within 24 hours) and removed P2 Important (resolve within 3 days) labels May 27, 2020
@PrakashDurlabhji
Copy link
Contributor

@rootelement my previous comment

@sushilshinde
Copy link
Collaborator

@PrakashDurlabhji this call is failing

https://api.topcoder-dev.com/v5/challenges?perPage=50&page=1&status=Active&memberId=Standlove

can you please pass id instead of the handle?

@sushilshinde
Copy link
Collaborator

sushilshinde commented May 27, 2020

@rootelement @urwithat please help here

All stats are brought by this call
https://api.topcoder-dev.com/v3/members/Standlove/stats

Which returns only legacy challenge Ids (in challenge API v5 context).

In order to work this correctly, it has to return new IDs.

@PrakashDurlabhji
Copy link
Contributor

@sushilshinde can you please pass id instead of the handle?

sure I will, can you please tell me on which page is it failing? this will give me more idea

@sushilshinde
Copy link
Collaborator

@PrakashDurlabhji check console

#4420 (comment)

@PrakashDurlabhji
Copy link
Contributor

@sushilshinde your comment implemented in PR #4432

@sushilshinde
Copy link
Collaborator

Thanks @PrakashDurlabhji will merge later today

@sushilshinde
Copy link
Collaborator

@SathyaJayabal This issue will be resolved by #4435

@PrakashDurlabhji you will be paid for your efforts on this ticket

@PrakashDurlabhji
Copy link
Contributor

@sushilshinde thanks

@SathyaJayabal
Copy link
Collaborator Author

@crazyk07
Copy link

crazyk07 commented Jun 6, 2020

Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30126688

This is an automated message for crazyk via Topcoder X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants