Skip to content

[$25] Ongoing challenge bucket also includes open for registration challenges #4975

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 Sep 21, 2020 · 22 comments

Comments

@SathyaJayabal
Copy link
Collaborator

Ongoing challenge bucket also includes open for registration challenges
Screenshot 2020-09-21 at 8 10 12 PM

@SathyaJayabal SathyaJayabal added P1 Urgent (resolve within 24 hours) listing:re-implementation labels Sep 21, 2020
@Oanh-and-only-Oanh Oanh-and-only-Oanh added this to the Release by 10/1/2020 milestone Sep 21, 2020
@LieutenantRoger
Copy link
Collaborator

@rootelement

Currently the On Going Challenge is requested like this:

Request URL: https://api.topcoder-dev.com/v5/challenges/?status=Active&currentPhaseName=Submission&perPage=10&page=1&sortBy=updated&sortOrder=desc&tracks[]=Dev&tracks[]=Des&tracks[]=DS&tracks[]=QA

Please advise if we have another filter to exclude the 'Open For Registrationchallenges fromOn Going Challenges`

@LieutenantRoger LieutenantRoger added the Need clarification Need clarification to proceed fixing the issue further label Sep 21, 2020
@Oanh-and-only-Oanh
Copy link

Just to clarify, we do not want Ongoing Challenges filter to show Open for Registration challenges. The behavior in PROD right now seems to be the same- they are separate.

@Oanh-and-only-Oanh Oanh-and-only-Oanh added P2 Important (resolve within 3 days) and removed P1 Urgent (resolve within 24 hours) labels Sep 22, 2020
@Oanh-and-only-Oanh Oanh-and-only-Oanh changed the title Ongoing challenge bucket also includes open for registration challenges [$70] Ongoing challenge bucket also includes open for registration challenges Sep 22, 2020
@crazyk07
Copy link

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

This is an automated message for crazyk via Topcoder X

@luizrrodrigues
Copy link
Collaborator

@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/feature-refactor-challengelist
https://github.com/topcoder-platform/topcoder-react-lib/tree/feature-refactor-challengelist

run npm run test before PR

@cagdas001 cagdas001 self-assigned this Sep 22, 2020
@crazyk07
Copy link

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

This is an automated message for crazyk via Topcoder X

@luizrrodrigues luizrrodrigues removed the Need clarification Need clarification to proceed fixing the issue further label Sep 22, 2020
@cagdas001
Copy link
Collaborator

@luizrrodrigues We were handling the bucket filtering at frontend before, but I now see these filtering codes are commented out with this commit: dc52de0 What is your purpose by this? You're intending to handle filtering with a pure backend solution? (i.e. with query parameters)

@Oanh-and-only-Oanh
Copy link

Yes, this whole revamp is to improve the performance of the challenge listings page (filters, buckets, tags, search, etc) on this page using backend solution.

@luizrrodrigues
Copy link
Collaborator

Yes, filters will be done in backend side, so ever when apply a filter will call the api to get results.

@cagdas001
Copy link
Collaborator

I got your point, but this call (#4975 (comment)) itself cannot purely handle the filtering for ongoing challenges. Because some challenges may have both Registration and Submission phases (so both phases are open) in currentPhaseNames field. For instance, http://api.topcoder-dev.com/v5/challenges/c5d082e2-8045-49c3-82c1-054d4a1dd537 As you can see, "currentPhaseNames":["Registration","Submission"] So backend will return such challenges, even if you use ?currentPhaseName=Submission filter

I can add a small filter at frontend in addition to this call, to filter out such challenges. But in this case we cannot maintain the default PAGE_SIZE of 10. (it currently loads 10 challenges for each scroll) There'll be less challenges in each call, since we'll filter out some of them at frontend.

@cagdas001
Copy link
Collaborator

While this filter should work in theory, but V5 Challenge API has some issues with these date fields (registrationEndDate etc.) I have explained it in one of previous issues: #4755 (comment) So it will probably end up with wrong challenges in bucket and a QA Fail if I apply this filter.

For e.g. the challenge I have shown in the above comment will be affected from this issue. The real registration end date is 2020-10-08T06:26:00Z (check the scheduledEndDate of registration phase) But challenge.registrationEndDate is 2020-09-21T06:32:33Z

@cagdas001 cagdas001 added the Need clarification Need clarification to proceed fixing the issue further label Sep 23, 2020
@luizrrodrigues
Copy link
Collaborator

@cagdas001 Checking...

@Oanh-and-only-Oanh Oanh-and-only-Oanh modified the milestones: Release by 10/1/2020, by 10/15/2020 Sep 29, 2020
@luizrrodrigues
Copy link
Collaborator

luizrrodrigues commented Oct 1, 2020

@cagdas001 Please use this filter: #4975 (comment) and any other available filter here: https://github.com/topcoder-platform/challenge-api/blob/6c897144a90e56ea6148fd5f415dacfd0aeadf76/docs/swagger.yaml if needed.

If we have issue with API, I'll request help from API team.

Thanks.

@cagdas001
Copy link
Collaborator

Okay, it now calls https://api.topcoder-dev.com/v5/challenges/?status=Active&currentPhaseName=Submission&registrationEndDateEnd=2020-10-01T17%3A56%3A54.698Z&perPage=10&page=1&sortBy=updated&sortOrder=desc&tracks[]=Dev&tracks[]=Des&tracks[]=DS&tracks[]=QA to load ongoing challenges. During the call, registrationEndDateEnd is being set to new Date().toISOString() So, it should theoretically return the Active challenges that registration phase has ended & Submission phase is open

If you notice any defect (missing/wrong challenge etc), first check if this endpoint returning challenges correctly

@cagdas001
Copy link
Collaborator

The commit (c0c7eeb) is pushed directly to upstream (feature-refactor-challengelist branch).

@Oanh-and-only-Oanh Oanh-and-only-Oanh removed the Need clarification Need clarification to proceed fixing the issue further label Oct 5, 2020
@luizrrodrigues
Copy link
Collaborator

@luizrrodrigues
Copy link
Collaborator

Contest https://www.topcoder.com/challenges/30143199 has been updated - luizrrodrigues has been unassigned.

This is an automated message for luizrrodrigues via Topcoder X

@SathyaJayabal
Copy link
Collaborator Author

We are hiding this bucket.

@SathyaJayabal
Copy link
Collaborator Author

#5073

@luizrrodrigues
Copy link
Collaborator

This ticket was not processed for payment. If you would like to process it for payment, please reopen it, add the tcx_FixAccepted label, and then close it again

This is an automated message for luizrrodrigues via Topcoder X

@SathyaJayabal
Copy link
Collaborator Author

reopening for payment processing

@SathyaJayabal SathyaJayabal reopened this Oct 8, 2020
@Oanh-and-only-Oanh Oanh-and-only-Oanh changed the title [$70] Ongoing challenge bucket also includes open for registration challenges [$25] Ongoing challenge bucket also includes open for registration challenges Oct 8, 2020
@luizrrodrigues
Copy link
Collaborator

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

This is an automated message for luizrrodrigues 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

6 participants