Skip to content

[$140] SSF: Results are loaded only after waiting for more than 40 seconds, when Development filter alone is chosen. #2695

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
nithyaasworld opened this issue Jul 1, 2019 · 60 comments

Comments

@nithyaasworld
Copy link
Collaborator

Prerequisite: User is logged in

  1. Go to https://beta-community-app.topcoder.com/challenges
  2. Turn off the Design and DataScience filter
  3. Observe

Actual:
It takes more than 45 seconds, to load the results. This also happen when switching between the options present in the right panel, with Dev Filter alone turned on.

Expected:
It should not take such long time to load the results.

Video: will be attached shortly.

@nithyaasworld nithyaasworld added the P1 Urgent (resolve within 24 hours) label Jul 1, 2019
@nithyaasworld
Copy link
Collaborator Author

@sushilshinde
Copy link
Collaborator

@nithyaasworld is this new?

@nithyaasworld
Copy link
Collaborator Author

Yes @sushilshinde , It seems so!

@nithyaasworld
Copy link
Collaborator Author

This issue happens for the following combination of filters too:

image

@ThomasKranitsas ThomasKranitsas changed the title SSF: Results are loaded only after waiting for more than 40 seconds, when Development filter alone is chosen. [$100] SSF: Results are loaded only after waiting for more than 40 seconds, when Development filter alone is chosen. Jul 2, 2019
@ThomasKranitsas
Copy link
Contributor

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

PR on ’ssf-merged-to-new-develop’ branch

@codeMinter codeMinter self-assigned this Jul 2, 2019
@ThomasKranitsas
Copy link
Contributor

[500]: Challenge for the updated issue 2695 is creating, rescheduling this event

This is an automated message for thomaskranitsas via Topcoder X

@ThomasKranitsas
Copy link
Contributor

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

This is an automated message for thomaskranitsas via Topcoder X

@ThomasKranitsas
Copy link
Contributor

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

This is an automated message for thomaskranitsas via Topcoder X

@ThomasKranitsas
Copy link
Contributor

Contest https://www.topcoder.com/challenges/30094893 has been updated - the new changes has been updated for this ticket.

This is an automated message for thomaskranitsas via Topcoder X

@codeMinter codeMinter removed their assignment Jul 2, 2019
@ThomasKranitsas ThomasKranitsas changed the title [$100] SSF: Results are loaded only after waiting for more than 40 seconds, when Development filter alone is chosen. [$140] SSF: Results are loaded only after waiting for more than 40 seconds, when Development filter alone is chosen. Jul 3, 2019
@ThomasKranitsas
Copy link
Contributor

Contest https://www.topcoder.com/challenges/30094893 has been updated - the new changes has been updated for this ticket.

This is an automated message for thomaskranitsas via Topcoder X

@ThomasKranitsas
Copy link
Contributor

@topcoder-platform/tcxcommunity @topcoder-platform/topcodercompetitors prize increased on this one! Go for it!

@codeMinter
Copy link
Contributor

FYI - the issue is when we do this, it hits backend to fetch approx 5000 challenges, we need to fix logic so it hits backend only upto allChallenges count which is just 600 approx.

@ThomasKranitsas sorry I couldn't put much time so opened it, but above analysis will help someone who picks next.

@nithyaasworld
Copy link
Collaborator Author

nithyaasworld commented Jul 11, 2019

@sushilshinde @ThomasKranitsas Can we please merge this PR if ready and deploy to beta for testing? As every request to fetch_matching_results takes more than 45 seconds, its getting hard for me to verify the "Ready for QA" tickets.

Thanks.

Edit: Added "tcx_ReadyForReview" label based on the last comment by @gets0ul

@sushilshinde
Copy link
Collaborator

@ThomasKranitsas please review the submission

@ThomasKranitsas
Copy link
Contributor

The implementation is not correct. What you're doing is:

  • Load the first set of challenges
  • Load every other set recursively and show everything at once

Sorry if my explanation wasn't clear enough. What I mean in my previous post is, we need to load and display all pages one by one.

I'm assuming the best way to do that is to move the recursion to the frontend.

The flow should be:

  • Load and show the first set of challenges
  • Load and show the next set of challenges until there are no more challenges.

You need to show the results from each page right after you get the API response. We don't want to wait until everything is loaded.

@gets0ul
Copy link
Collaborator

gets0ul commented Jul 11, 2019

we need to load and display all pages one by one.

You need to show the results from each page right after you get the API response.

This is exactly what the current develop tree of topcoder-react-lib is doing right now, it loads and displays page one by one.

No need for a fix. Just revert the changes in src/actions/challenge-listing.js from this commit topcoder-platform/topcoder-react-lib@f02ed92#diff-8cf4059b48130a5066e66e4a473bb4a6

The flow should be:

Load and show the first set of challenges
Load and show the next set of challenges until there are no more challenges.

That's what I did with my submission while still keeping the changes from said commit above.
Have you test it? The long loading time is gone.

@gets0ul
Copy link
Collaborator

gets0ul commented Jul 11, 2019

As the issue is urgent, you can unassign me for now so maybe others can jump in with a more fitted solution.
Thank you.

@ThomasKranitsas
Copy link
Contributor

I just tested. Seems to be working

@ThomasKranitsas
Copy link
Contributor

@sushilshinde can you also test on your end just to be sure?

@sushilshinde
Copy link
Collaborator

ok I'll

@nithyaasworld
Copy link
Collaborator Author

@sushilshinde @ThomasKranitsas @gets0ul

Issues stated here and here still exists. Can you please check?

@sushilshinde
Copy link
Collaborator

@gets0ul please refer to the code https://github.com/topcoder-platform/community-app/tree/server_side_filtering

Let us know if you can submit the fix today

@gets0ul
Copy link
Collaborator

gets0ul commented Jul 12, 2019

@sushilshinde I am not sure if Ifollow. Did you mean I should make changes to server_side_filtering branch instead of ssf-merged-to-new-develop?

@nithyaasworld
Did you you do your check on https://beta-community-app.topcoder.com/challenges?
I see that it still has the problem.
Are you sure that it runs with updated build with my fix?

@sushilshinde
Copy link
Collaborator

@gets0ul no, the same thing was working on server_side_filtering branch when @nithyaasworld tester, but after merge with the release branch this issues started popping up.

@gets0ul
Copy link
Collaborator

gets0ul commented Jul 12, 2019

@sushilshinde I submit the PR to develop branch of topcoder-react-lib, so I didn't include the dist build in it. You need to build by yourrself.
Have you run the build before publish the topcoder-react-lib npm run build?
Thanks.

@ThomasKranitsas
Copy link
Contributor

Closing this one. I'll take care of the remaining fixes.

@ThomasKranitsas
Copy link
Contributor

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

This is an automated message for thomaskranitsas via Topcoder X

@ThomasKranitsas ThomasKranitsas added tcx_Paid and removed P1 Urgent (resolve within 24 hours) Performance tcx_Assigned tcx_Feedback labels Jul 12, 2019
@lakshmiathreya
Copy link

@ThomasKranitsas @Oanh-and-only-Oanh @kkartunov - Listing latency issue seems resolved. Pls confirm if this fix is moving to Prod today? If so - we need to review the need for regression testing based on the following:-

  1. Are there other changes going to Prod alongwith this change?
  2. What were the changes made to improve performance - any possible functional impact?

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

8 participants