Skip to content

Competition detail serializer now uses a list of public fields for non-admins - #2591

Merged
ObadaS merged 1 commit into
developfrom
comp_detail_serializer_updates
Oct 1, 2026
Merged

ObadaS merged 1 commit into
developfrom
comp_detail_serializer_updates

Conversation

@ihsaan-ullah

Copy link
Copy Markdown
Collaborator

Description

  • ADMIN_ONLY_FIELDS replaced by Meta.public_fields and Meta.admin_fields; Meta.fields is built from both
  • Non-admins now receive only the fields in public_fields
  • enable_detailed_results, show_detailed_results_in_submission_panel, show_detailed_results_in_leaderboard, forum and forum_enabled are now visible to non-admins
  • Tests updated: admins see all fields, non-admins see no admin fields; secret key checks removed

Issues this PR resolves

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

…n-admins

- ADMIN_ONLY_FIELDS replaced by Meta.public_fields and Meta.admin_fields; Meta.fields is built from both
- Non-admins now receive only the fields in public_fields
- enable_detailed_results, show_detailed_results_in_submission_panel, show_detailed_results_in_leaderboard, forum and forum_enabled are now visible to non-admins
- Tests updated: admins see all fields, non-admins see no admin fields; secret key checks removed
@ObadaS
ObadaS force-pushed the comp_detail_serializer_updates branch from d6ff4d6 to 0005c46 Compare October 1, 2026 12:28
@ObadaS
ObadaS merged commit 97eed6e into develop Oct 1, 2026
1 check passed
@ObadaS
ObadaS deleted the comp_detail_serializer_updates branch October 1, 2026 12:40
@ihsaan-ullah ihsaan-ullah mentioned this pull request Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1.33: participants no longer see the Visualization tab — #2584 hides the fields the submission panel reads

2 participants