Skip to content

Hide unwanted competition fields from non-admins - #2584

Merged
ObadaS merged 3 commits into
developfrom
hide_unwanted_comp_fields_from_nonadmins
Sep 29, 2026
Merged

ObadaS merged 3 commits into
developfrom
hide_unwanted_comp_fields_from_nonadmins

Conversation

@ihsaan-ullah

@ihsaan-ullah ihsaan-ullah commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Some competition fields are now hidden from non-admins (participants or other regular users)
  • Competition Detail API (api/competitions/ID) tests added
  • CompetitionQueueTests merged into CompetitionDetailTests

Issues this PR resolves

  • continuation of hiding queue details from api/competitions/ID

A checklist for hand testing

  • check api/competitions/ID with admin and non-admin users to see that some fields are only visible to admins

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

@ObadaS
ObadaS force-pushed the hide_unwanted_comp_fields_from_nonadmins branch from 486e942 to d8c302a Compare September 29, 2026 12:33
@ObadaS

ObadaS commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

I approved these changes for now, but I think we should rework the logic behind whether we hide fields.

Right now, we have a list of what to hide from normal users.
I think it would be better to have a list of what we can show to normal users, while admins and organizers have access to everything else by default.

This would make it so we don't have to add new fields to the list every time we add new options for organizers (and if we forget, things won't get leaked, but users will just have missing items)

@ObadaS
ObadaS force-pushed the hide_unwanted_comp_fields_from_nonadmins branch 2 times, most recently from d8c302a to f64c302 Compare September 29, 2026 12:46
@ObadaS
ObadaS merged commit 49dcad1 into develop Sep 29, 2026
1 check was pending
@ObadaS
ObadaS deleted the hide_unwanted_comp_fields_from_nonadmins branch September 29, 2026 12:46
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.

2 participants