fix: enforce public board voting setting - #9506
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
|
Nazmus Samir seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Description
Reject public-board vote creation when the board has voting disabled. This applies the same feature-flag enforcement already used by public comments and reactions, before any
IssueVoteis created.Type of Change
Screenshots and Media (if applicable)
Not applicable; this is an API behavior fix.
Test Scenarios
pytest plane/tests/unit/views/test_issue_vote_public.py -vvruff check plane/space/views/issue.py plane/tests/unit/views/test_issue_vote_public.pyruff format --check plane/space/views/issue.py plane/tests/unit/views/test_issue_vote_public.pyReferences
Closes #9500