Include unlisted communities only for superusers#1193
Include unlisted communities only for superusers#1193Roffenlund wants to merge 1 commit intomasterfrom
Conversation
Update the CommunityListAPIView to include unlisted communities only for superusers if the include_unlisted query parameter is "true". Fallback to not include unlisted communities in all other cases. Refs. TS-2740
WalkthroughThe changes update the community listing API to properly gate access to unlisted communities. The view now extracts the Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (2)django/thunderstore/api/cyberstorm/views/community_list.py (1)
django/thunderstore/api/cyberstorm/tests/test_community_list.py (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1193 +/- ##
=======================================
Coverage 92.81% 92.81%
=======================================
Files 337 337
Lines 10355 10357 +2
Branches 937 937
=======================================
+ Hits 9611 9613 +2
Misses 617 617
Partials 127 127 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Update the CommunityListAPIView to include unlisted communities only for superusers if the include_unlisted query parameter is "true". Fallback to not include unlisted communities in all other cases.
Refs. TS-2740