-
Notifications
You must be signed in to change notification settings - Fork 52
[$60] user not able to delete all challenge with new status #1046
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
@vikasrohit for now there is NO technical ability to fix it. See the previous discussion #927 (comment). What is the best way to go with this? |
@maxceem I didn't understand the issue itself, can you please explain it bit more if you got it? |
@vikasrohit this ticket was created based on this issue report #927 (comment). Is short:
|
Got it, Thanks. So, what is the technical ability now that can avoid issue of multiple api calls on page load? |
Sorry, it was a typo. There is |
Hmm, then I don't think we would like to make 10 API calls to determine the resources of the challenges for this only feature, however, I think we might need that info going forward for multiple such features. If that is true, we can fetch resources for all challenges asynchronously after loading the page, I mean don't block rendering until we have the confirmation about permissions of each challenge. User can not hover over all challenges in short time, so we should be safe. In future, I think we have to put facade pattern (I have POC working for it #794) to reduce number of api calls and improve performance). @acshields Please weigh in on the importance of this feature and we can plan accordingly. |
@vikasrohit @maxceem - I would look at next steps like this:
|
This should be possible to be wrapped before 3/12 @acshields . @maxceem please chime in if you think it I am missing something here. |
Yes, @vikasrohit we can implement one of the ways which you've suggested above. If we don't need to know challenge permission for other functionalities, then I prefer to check permission only when user tries to delete a challenge following your second suggestion.
When the user click "Delete" in the Challenge List we can show confirmation modal, but show text saying "Checking if you have permissions to delete this challenge..." and "Delete" button disabled.
|
I am with this solution for now as we don't know if we have more functionalities on listing page that would require the permission check before hand. We can revisit and fix it later if we need to pre populate the permissions of all challenges. However, I am very reluctant to do that even in future until we have api facade implemented which can reduce the number of api calls and overall load time. |
@vikasrohit @maxceem - I am fine with this strategy for now. |
@maxceem go ahead with your solution. Just change the text to |
Sum up:
|
Challenge https://www.topcoder.com/challenges/6e72c802-4319-4542-ae49-16c95b16b9ed has been created for this ticket. |
@bug-bash-helper assign me |
@rashmi73 ✅ you are now assigned to this issue and have 12 hours to complete it. As soon as you are done, please, make a comment like below, including the link to the pull request:
|
Challenge https://www.topcoder.com/challenges/6e72c802-4319-4542-ae49-16c95b16b9ed has been assigned to rashmi73. |
@maxceem it has suddenly started looping again and again between two urls even after entering correct creds. https://accounts-auth0.topcoder-dev.com/?retUrl=http://localhost:3000/ I tried same in incognito, it is looping there too. |
@maxceem please assign to me |
Challenge https://www.topcoder.com/challenges/6e72c802-4319-4542-ae49-16c95b16b9ed has been assigned to yoution. |
@bug-bash-helper #1095 is ready for review |
@yoution ✅ this issue is marked as Now you may pick up another issue which is open for pickup if you like to. |
this is passed on dev 2021-03-09-08-51-46.mp4 |
Payment task has been updated: https://www.topcoder.com/challenges/6e72c802-4319-4542-ae49-16c95b16b9ed |
this is passed on to production 2021-03-11-15-38-23.mp4 |
Expected behavior
Describe.
The user should be able to select all delete challenges with a new status.
Actual behavior
Describe.
User not able to select all delete challenge with a new status, Only he/she should be able to delete if they have access on it.
Steps to reproduce the problem
Step 1: go to Challenge Edit page: Confirmation pop up with toaster message ok


Step 2: while hovering Delete button on grid ok.
Screenshot/screencast
Attach or link a resource.
-- please see above attached screenshot.
Environment
The text was updated successfully, but these errors were encountered: