Skip to content

Add to_mongo_doc method to ItemVersionModel to protect None values#1863

Open
be-smith wants to merge 2 commits into
ml-evs/bump-pydantic-final-finalfrom
bes/pydantic_vc_fix_basemodel
Open

Add to_mongo_doc method to ItemVersionModel to protect None values#1863
be-smith wants to merge 2 commits into
ml-evs/bump-pydantic-final-finalfrom
bes/pydantic_vc_fix_basemodel

Conversation

@be-smith

Copy link
Copy Markdown
Member

Ensures that the data key doesn't have None values removed from it by adding a custom method. Alternative fix to #1859

Solves #1861

be-smith added 2 commits June 25, 2026 12:33
…s data to not have it's empty keys stripped when saving a version
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.58%. Comparing base (4265c79) to head (ed8309e).

Additional details and impacted files
@@                        Coverage Diff                         @@
##           ml-evs/bump-pydantic-final-final    #1863    +/-   ##
==================================================================
  Coverage                             79.57%   79.58%            
==================================================================
  Files                                    83       83            
  Lines                                  7603     7856   +253     
==================================================================
+ Hits                                   6050     6252   +202     
- Misses                                 1553     1604    +51     
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/models/versions.py 96.61% <100.00%> (+0.31%) ⬆️
pydatalab/src/pydatalab/routes/v0_1/items.py 83.56% <100.00%> (ø)
pydatalab/src/pydatalab/versioning.py 90.78% <100.00%> (ø)

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cypress

cypress Bot commented Jun 25, 2026

Copy link
Copy Markdown

datalab    Run #5160

Run Properties:  status check passed Passed #5160  •  git commit 8404e3fdc2 ℹ️: Merge ed8309e6f645f0a8646eaf29eaacb8f6b4927d33 into d15534e7199f4cf39ed37952b507...
Project datalab
Branch Review bes/pydantic_vc_fix_basemodel
Run status status check passed Passed #5160
Run duration 24m 33s
Commit git commit 8404e3fdc2 ℹ️: Merge ed8309e6f645f0a8646eaf29eaacb8f6b4927d33 into d15534e7199f4cf39ed37952b507...
Committer Ben Smith
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 538
View all changes introduced in this branch ↗︎

@be-smith be-smith marked this pull request as ready for review July 8, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant