Skip to content

Add DataBlockResponse model to sanitize blocks_obj in API #1310

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

Merged
merged 1 commit into from
Aug 11, 2025

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Aug 11, 2025

In trying to ablate changes from #1285 that are not entirely necessary, I've found it helpful to define a model for the blocks response when it is embedded in an item.

Copy link

codecov bot commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.62%. Comparing base (0850aff) to head (72f56f6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1310      +/-   ##
==========================================
+ Coverage   78.49%   78.62%   +0.12%     
==========================================
  Files          67       68       +1     
  Lines        4645     4673      +28     
==========================================
+ Hits         3646     3674      +28     
  Misses        999      999              
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/models/blocks.py 100.00% <100.00%> (ø)
pydatalab/src/pydatalab/models/traits.py 98.64% <100.00%> (+0.01%) ⬆️
🚀 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.

Copy link

cypress bot commented Aug 11, 2025

datalab    Run #3731

Run Properties:  status check passed Passed #3731  •  git commit d94f673878 ℹ️: Merge 72f56f6cdef9fb1e56f30ee641f04311fdbf80ff into 0850aff9949ae7befcf7442d9c57...
Project datalab
Branch Review ml-evs/explore-block-level-validation-model
Run status status check passed Passed #3731
Run duration 07m 41s
Commit git commit d94f673878 ℹ️: Merge 72f56f6cdef9fb1e56f30ee641f04311fdbf80ff into 0850aff9949ae7befcf7442d9c57...
Committer Matthew Evans
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 336
View all changes introduced in this branch ↗︎

@ml-evs ml-evs merged commit c572c6d into main Aug 11, 2025
15 checks passed
@ml-evs ml-evs deleted the ml-evs/explore-block-level-validation-model branch August 11, 2025 18:26
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