-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix: pedigree edits are not saved (#2112) #2113
Conversation
WalkthroughThe pull request modifies the Changes
Possibly related PRs
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
deps-report 🔍Commit scanned: aa3933f Vulnerable dependencies4 dependencies have vulnerabilities 😱
Outdated dependencies57 outdated dependencies found (including 22 outdated major versions)😢
|
5b2c670
to
aa3933f
Compare
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
backend/cases/serializers.py
(0 hunks)backend/varfish/tests/drf_openapi_schema/varfish_api_schema.yaml
(4 hunks)
💤 Files with no reviewable changes (1)
- backend/cases/serializers.py
@@ -6072,8 +6072,7 @@ components: | |||
index: | |||
type: string | |||
maxLength: 512 | |||
pedigree: | |||
readOnly: true | |||
pedigree: {} |
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.
Add schema validation and documentation for pedigree field.
The pedigree field is currently defined as an empty object without any schema validation or documentation. This could lead to data integrity issues and make the API harder to use correctly.
Consider:
- Adding a proper schema definition for the pedigree object structure
- Documenting the expected format and required fields
- Adding validation rules to ensure data consistency
Example schema structure:
pedigree:
type: object
description: Pedigree information defining family relationships and affected status
required:
- members
properties:
members:
type: array
items:
type: object
required:
- id
- father
- mother
- sex
- affected
properties:
id:
type: string
father:
type: string
mother:
type: string
sex:
type: string
enum: ['1', '2']
affected:
type: string
enum: ['1', '2']
Also applies to: 6155-6175
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2113 +/- ##
=====================================
Coverage 91% 91%
=====================================
Files 678 678
Lines 38537 38537
=====================================
Hits 35140 35140
Misses 3397 3397
|
Summary by CodeRabbit
New Features
presetset
field is now writable, allowing for more flexible data input.pedigree
field is no longer read-only, enabling updates.Bug Fixes
presetset
field to handle empty and non-existent values more effectively.Documentation
pedigree
property structure and requirements.