-
Notifications
You must be signed in to change notification settings - Fork 134
Adding talk permissions clarity #1281
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
base: enext
Are you sure you want to change the base?
Adding talk permissions clarity #1281
Conversation
…reviewer' were unclear about the actual permissions granted. Updated labels and added help text.
Reviewer's GuideRefactors backend Reviewer permissions with clearer, role-centric labels and explanatory help text, and exposes those permissions in the frontend team management UI under a new “Talk Permissions” section. Class diagram for updated Team permissions modelclassDiagram
class Team {
+Boolean can_change_submissions
+Boolean is_reviewer
+Boolean force_hide_speaker_names
+ManyToMany limit_tracks
}
Team : can_change_submissions "Reviewer Manager — can edit and manage submissions"
Team : is_reviewer "Reviewer — can only review submissions"
Team : force_hide_speaker_names "Always hide speaker names"
Team : limit_tracks "Limit to tracks"
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `app/eventyay/base/models/organizer.py:424-432` </location>
<code_context>
- is_reviewer = models.BooleanField(default=False, verbose_name=_('Is a reviewer'))
+ can_change_submissions = models.BooleanField(
+ default=False,
+ verbose_name=_('Reviewer Manager — can edit and manage submissions'),
+ help_text=_(
+ 'Can edit submission details, change proposal states (accept/reject/waitlist), '
</code_context>
<issue_to_address>
**suggestion:** Consider using a more neutral verbose_name for can_change_submissions.
Using 'Reviewer Manager' may cause confusion if this role isn't defined elsewhere. For clarity and consistency, consider a label like 'Can edit and manage submissions.'
```suggestion
can_change_submissions = models.BooleanField(
default=False,
verbose_name=_('Can edit and manage submissions'),
help_text=_(
'Can edit submission details, change proposal states (accept/reject/waitlist), '
'manage submission metadata, and oversee the review workflow. '
'This provides full management permissions beyond standard reviewing.'
)
)
```
</issue_to_address>
### Comment 2
<location> `app/eventyay/base/models/organizer.py:435` </location>
<code_context>
+ )
+ is_reviewer = models.BooleanField(
+ default=False,
+ verbose_name=_('Reviewer — can only review submissions'),
+ help_text=_(
+ 'Can review and provide feedback on submissions but cannot edit details or change submission states.'
</code_context>
<issue_to_address>
**suggestion:** The verbose_name for is_reviewer may be redundant with the help_text.
Consider changing verbose_name to 'Reviewer' and keeping the explanatory details in help_text for clarity.
```suggestion
verbose_name=_('Reviewer'),
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Gagan-Ram
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You have made changes to models, so its corresponding migrations are expected to be present/added.
- is_reviewer is already present in organizer.py file, please edit that instead of adding a new redundant field.
- @mariobehling We no more want to keep team add/modify UIs in /control and talk component. Team addition and modification works good in common area itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the talk permissions system by improving label clarity and making hidden permissions visible in the team management interface. The changes rename ambiguous permission names to role-centric labels and add detailed help text to reduce user confusion.
- Updated permission labels from generic names to clearer, role-specific descriptions with comprehensive help text
- Exposed four previously hidden talk-related permission checkboxes in the team management UI
- Created a database migration to update field metadata for existing deployments
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
app/eventyay/base/models/organizer.py |
Renamed can_change_submissions and is_reviewer verbose names and added detailed help text explaining each permission level's capabilities |
app/eventyay/base/migrations/0002_update_team_permission_labels.py |
Database migration to apply the updated field labels and help text to the Team model |
app/eventyay/control/templates/pretixcontrol/organizers/team_edit.html |
Added new "Talk permissions" fieldset exposing four talk-related permission fields in the team editor UI |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Permission Labels Refined (Backend):
The older, ambiguous permission names were reworked into clearer, role-centric labels:
Additional help-text was introduced to explicitly define what each permission level enables, reducing user confusion and enabling more informed decision-making.
Permissions UI Surfaced (Frontend):
A new Talk Permissions section was added to the team management page, making four previously hidden permission checkboxes visible and configurable.
This ensures the UI now accurately represents all reviewer-related backend capabilities.
Fixes #1271

Summary by Sourcery
Surface hidden talk permissions in the frontend UI and improve backend permission labels with explanatory help text to reduce user confusion
New Features:
Enhancements: