-
Notifications
You must be signed in to change notification settings - Fork 212
[$50]Hundreds of resource api calls made on the dashboard page #4714
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
Contest https://www.topcoder.com/challenges/30136517 has been created for this ticket. |
@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 run |
Contest https://www.topcoder.com/challenges/30136517 has been updated - it has been assigned to daga_sumit. |
Contest https://www.topcoder.com/challenges/30136517 has been updated - it has been assigned to gets0ul. |
Sorry @sumitdaga signed it first. |
Contest https://www.topcoder.com/challenges/30136517 has been updated - it has been assigned to daga_sumit. |
thanks @gets0ul |
@SathyaJayabal moreover i checked the resources api too ...it seems the filters (like thanks |
@sumitdaga , Please use the challenge-api call that is used to populate the my challenges bucket in the challenge listings page. cc @sushilshinde, please confirm if this approach is fine? |
@SathyaJayabal so in essence we don't even need to call this |
Returns all dashboard required challenges, we don't need resources calls here |
Contest https://www.topcoder.com/challenges/30136517 has been updated - it has been assigned to cagdas001. |
At the `getUserResources` function, it will fetch only Active challenges. Reference topcoder-platform/community-app#4714
PR: topcoder-platform/topcoder-react-lib#220 It will fetch only Active challenges |
topcoder-platform/community-app#4714 cagdas001 #220 1000.19.45
This should also fix the issue of My Active cHallenges displaying all active challenges before displaying only My Challenges |
@cagdas001 https://test-community-app.topcoder-dev.com/my-dashboard Still makes too many calls |
@sushilshinde I have re-checked this. I'm only seeing a limited number of requests to We need to make one request per challenge to get role details and this would be the minimum number of requests as per the API design. It doesn't allow to query multiple challenges at once, or to query the all of the resources user has We need role details for the following field(s) So, some options:
@SathyaJayabal Could you elaborate this one a bit more, please? You mean it displays all the active challenges, instead of displaying the user's challenges? |
@cagdas001 , when we access the dashboard for the first time, we dont see the correct number of My Active Challenges. After refresh we see the correct number. |
@sushilshinde @cagdas001 , in production, a member will not have more than a few active challenges. So there will not be that many resource api calls, even if we call it once per challenge. @sushilshinde Do you think we can go ahead with the above implementation? |
@SathyaJayabal I think this will be a problem with Admins/CA/CP because they is part of a lot of projects. |
@sushilshinde Need confirmation in this one. #4714 (comment) |
https://beta-community-app.topcoder.com/my-dashboard

Hundreds of resource api calls made on the dashboard page
dashboard (1).mp4.zip
The text was updated successfully, but these errors were encountered: