-
Notifications
You must be signed in to change notification settings - Fork 12
Allow committee-elect to update actions (and appear in auto-complete) #508
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
Conversation
|
All these failed tests do not look good for the software engineering job I'll be starting in 3 months where my primary language will be Python |
Co-authored-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com> Signed-off-by: Holly <25277367+Thatsmusic99@users.noreply.github.com>
Co-authored-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com> Signed-off-by: Holly <25277367+Thatsmusic99@users.noreply.github.com>
…oB/TeX-Bot-Py-V2 into allow-committee-elect-action-update
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 allows committee-elect users to update actions and appear in auto-complete while adjusting permission checks for updating and listing actions.
- Added committee-elect role handling to the auto-complete command.
- Removed committee role requirement from update_status and list_user_actions to allow non-committee users to update/view their own actions.
- Updated action member retrieval and permission error responses in list_user_actions.
Comments suppressed due to low confidence (2)
cogs/committee_actions_tracking.py:134
- Consider adding a brief comment explaining the purpose and usage of 'committee_elect_role' for auto-complete to assist future maintainers.
committee_elect_role: discord.Role | None = None
cogs/committee_actions_tracking.py:292
- Ensure that tests are updated or added to verify that non-committee users can update their own actions after removing this committee role check.
@CommandChecks.check_interaction_user_has_committee_role
Co-authored-by: Matt Norton <matt@carrotmanmatt.com> Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Co-authored-by: Matt Norton <matt@carrotmanmatt.com> Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Signed-off-by: Holly <25277367+Thatsmusic99@users.noreply.github.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Fixes #507 and #506
Haven't been able to properly test, will need doing prior to merging - can always be spun up on the test server but I don't have the necessary configuration for it (and i use vim btw)