-
Notifications
You must be signed in to change notification settings - Fork 0
[$200] Normal user does not have permission to Challenge discussions(registered and displayed in the CHALLENGE DISCUSSIONS page) #422
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
This behavior is a bit weird, then I created a new challenge and registered to it from the same user, after which all the challenge forums listed in the https://vanilla.topcoder-dev.com/groups/mine?filter=challenge were accessible to this user. However for the user sdgunvfor/T0pc0der@123 who is a copilot user still has this issue. This user sees a challenge discussion here https://vanilla.topcoder-dev.com/groups/mine?filter=challenge but doesn't have permission to it.(Challenge - https://www.topcoder-dev.com/challenges/c14c541f-c61f-4bca-ac7e-4d199f157913) |
Challenge https://www.topcoder.com/challenges/79ecd8cc-0e4e-4025-b8c5-c505ff79e427 has been created for this ticket. |
Challenge https://www.topcoder.com/challenges/79ecd8cc-0e4e-4025-b8c5-c505ff79e427 has been assigned to obog. |
@jmgasper I've checked PROD. PROD |
@jmgasper 2. Also check Permissions for 'Challenge Discussions' category for Guest. |
@atelomycterus - Done, thanks. |
@jmgasper Please flush cache in PROD. #DEV
FIX: flush cache. |
@jmgasper '/cache/flush' - Debug plugin should be enabled. ☝️ |
@atelomycterus - Done. |
Issue -2:
I was able to reproduce it in my local env. We disabled 'FollowingCategory' (#372). Testing DEVLogged in as 'obogtop' (normal user). I can't see some challenge categories in DEV. |
@atelomycterus is this issue fixed then? |
@sdgun please retest |
User can see his/her challenges from 'CHALLENGE DISCUSSIONS' because it supports paging. Temporary solution: $Configuration['Vanilla']['Categories']['QueryLimit'] = 450; The user will have access to the categories he has access to. '450' - because 'Development Forums' has '406' categories in PROD. We cannot increase QueryLimit indefinitely, need to implement paging for Categories. |
@jmgasper I am trying to fix Issue-2. The main problem is to display the categories correctly. The calculation of what permissions the user has on the category are calculated all in code, not in DB. There is a lot of logic here, because categories can be nested + users can have multiple roles. I understand why they've added 'QueryLimit', since all calculations are done in the code. This option is good when there is very little category 10-1000 in the system. In our case, the number of categories is much larger. I remember that in the documentation or on the Vanilla blog they wrote that if there is a large number of categories, then it is recommended to use Flat (Category type= Flat). I already found it and checked how it works. The category page with paging is displayed, but checking permissions is ignored. |
@atelomycterus - Ok, thanks for the update. |
@jmgasper Please apply PR-#431. Need to change category type to 'Flat' for 'Development Forums', 'Data Science Forums', and 'Design Forums'. Out category tree structure: No changes for Roundtables or other categories: After changing category types, you should see a paging nav, 30 records by default, Let me know if you have any questions. Thanks! |
@atelomycterus - I've deploy the PRs and update the settings in dev for the category type. |
Payment task has been updated: https://www.topcoder.com/challenges/79ecd8cc-0e4e-4025-b8c5-c505ff79e427 |
@jmgasper I've tested as a normal user (obogtop). It works as expected.
|
Verified from below users, and challenge forums were visible without permission issues. sdguntcqa |
Verified in production. |
Uh oh!
There was an error while loading. Please reload this page.
Steps
Log in from a normal user (ex- sdguntcqa/T0pc0der@123)
Go to https://vanilla.topcoder-dev.com/groups/mine?filter=challenge
Click on the listed challenge forums
The user doesn't have permission but user is registered to them
Ex group - https://vanilla.topcoder-dev.com/group/310
Above challenge's challenge details page - https://www.topcoder-dev.com/challenges/f65f8ffa-d698-4348-8213-61d5ebe8ac63
Also in the https://vanilla.topcoder-dev.com/categories/challenges-forums, it shows some number of discussions/comments but inside the categories no challenges are available
The text was updated successfully, but these errors were encountered: