-
Notifications
You must be signed in to change notification settings - Fork 22
Add ability to specify if a talk should be recorded #4510
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## cfp-updates #4510 +/- ##
===============================================
- Coverage 94.49% 94.49% -0.01%
===============================================
Files 352 352
Lines 10143 10141 -2
Branches 735 734 -1
===============================================
- Hits 9585 9583 -2
Misses 463 463
Partials 95 95 🚀 New features to boost your workflow:
|
|
@pythonitaliabot2 review this PR |
|
@claude review this PR |
|
Claude finished @marcoacierno's task in 1m 46s —— View job PR Review: Add ability to specify if a talk should be recordedTasks
SummaryThis PR successfully implements the ability for speakers to specify whether they want their talk to be recorded. The implementation includes both backend and frontend changes with good test coverage. Overall, the code is well-structured and follows the existing patterns in the codebase. Architecture OverviewThe feature introduces two key concepts:
Review Findings✅ Strengths
🔍 Observations & Suggestions1. Naming Inconsistency (Minor)The field is named Consider: In a future PR, you might want to rename to Current logic:
2. Missing Validation (Medium Priority)Location: backend/api/submissions/mutations.py:230, 261 The API accepts Suggestion: Add validation in # After line 181 in mutations.py
if input.do_not_record:
submission_type = conference.submission_types.filter(id=input.type).first()
if submission_type and not submission_type.is_recordable:
errors.add_error(
"do_not_record",
"This submission type cannot be recorded"
)3. GraphQL Schema Documentation (Low Priority)Location: backend/api/submissions/types.py:42, 122 The GraphQL fields Example: @strawberry.type
class SubmissionType:
id: strawberry.ID
name: str
is_recordable: bool = strawberry.field(
description="Indicates if proposals of this type can be recorded"
)4. TypeScript Type Definitions (Minor)Location: frontend/src/components/cfp-form/index.tsx:75, 100 The Suggestion: Add to doNotRecord: boolean;5. Default Value Consideration (Low Priority)Location: backend/submissions/models.py:110-114 The field defaults to 6. Missing Edge Case Test (Low Priority)The tests cover:
Suggestion: Add a test to verify the suggested validation in point #2. 📝 Code Quality
🚀 What Works Well
|
What
ToDo