Skip to content

Conversation

@ml-evs
Copy link
Member

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

Supersedes #1398 and #1285 which were stuck in merge/rebase hell

@ml-evs ml-evs force-pushed the ml-evs/bump-pydantic-from-scratch branch from b2abba0 to 312bcb6 Compare November 11, 2025 01:25
@ml-evs ml-evs changed the base branch from ml-evs/bump-pydantic-redo to main November 11, 2025 01:25
@ml-evs ml-evs force-pushed the ml-evs/bump-pydantic-from-scratch branch 3 times, most recently from 2895a36 to 45fca0a Compare November 11, 2025 02:00
@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

❌ Patch coverage is 87.62712% with 73 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.39%. Comparing base (4ed958f) to head (5cd6855).

Files with missing lines Patch % Lines
pydatalab/src/pydatalab/models/utils.py 79.01% 17 Missing ⚠️
pydatalab/src/pydatalab/routes/v0_1/items.py 73.17% 11 Missing ⚠️
pydatalab/src/pydatalab/models/traits/__init__.py 88.50% 10 Missing ⚠️
pydatalab/src/pydatalab/models/cells.py 87.03% 7 Missing ⚠️
pydatalab/src/pydatalab/models/people.py 81.25% 6 Missing ⚠️
...datalab/src/pydatalab/models/traits/collectable.py 83.33% 6 Missing ⚠️
pydatalab/src/pydatalab/config.py 92.50% 3 Missing ⚠️
pydatalab/src/pydatalab/models/entries.py 86.66% 2 Missing ⚠️
...datalab/src/pydatalab/models/starting_materials.py 92.59% 2 Missing ⚠️
pydatalab/src/pydatalab/routes/v0_1/info.py 92.59% 2 Missing ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1415      +/-   ##
==========================================
- Coverage   80.04%   79.39%   -0.65%     
==========================================
  Files          70       71       +1     
  Lines        4836     4946     +110     
==========================================
+ Hits         3871     3927      +56     
- Misses        965     1019      +54     
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/apps/chat/blocks.py 75.19% <100.00%> (ø)
pydatalab/src/pydatalab/apps/xrd/blocks.py 90.27% <100.00%> (ø)
pydatalab/src/pydatalab/backups.py 62.96% <100.00%> (ø)
pydatalab/src/pydatalab/blocks/base.py 94.11% <100.00%> (ø)
pydatalab/src/pydatalab/login.py 84.12% <100.00%> (ø)
pydatalab/src/pydatalab/main.py 64.86% <100.00%> (ø)
pydatalab/src/pydatalab/models/__init__.py 100.00% <100.00%> (ø)
pydatalab/src/pydatalab/models/blocks.py 100.00% <100.00%> (ø)
pydatalab/src/pydatalab/models/collections.py 94.11% <100.00%> (-0.62%) ⬇️
pydatalab/src/pydatalab/models/equipment.py 100.00% <100.00%> (ø)
... and 22 more
🚀 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.

Comment on lines +728 to +732
#! "relationships" are not in the response because of "ItemModel = ITEM_MODELS[doc["type"]]", need to find a way to fix this.
# assert (
# len([d for d in response.json["item_data"]["relationships"] if d["type"] == "collections"])
# == 1
# )
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +147 to +153
global ITEMS_FTS_FIELDS

if not ITEMS_FTS_FIELDS:
ITEMS_FTS_FIELDS = get_items_fts_fields()

if not ITEMS_FTS_FIELDS:
raise ValueError("Cannot create text indices: no fields available for full-text search")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is super error prone and hard to test -- better to just call the function everywhere

@ml-evs ml-evs force-pushed the ml-evs/bump-pydantic-from-scratch branch from 45fca0a to 9818765 Compare November 11, 2025 02:10
@cypress
Copy link

cypress bot commented Nov 11, 2025

datalab    Run #4085

Run Properties:  status check passed Passed #4085  •  git commit 026dc170f9 ℹ️: Merge 5cd68559d2d921d590bb8eca41563850bac67cc5 into 4ed958ffbe1c3e89ee6d7fc23f1a...
Project datalab
Branch Review ml-evs/bump-pydantic-from-scratch
Run status status check passed Passed #4085
Run duration 07m 48s
Commit git commit 026dc170f9 ℹ️: Merge 5cd68559d2d921d590bb8eca41563850bac67cc5 into 4ed958ffbe1c3e89ee6d7fc23f1a...
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 354
View all changes introduced in this branch ↗︎

@ml-evs ml-evs force-pushed the ml-evs/bump-pydantic-from-scratch branch from 9818765 to 41e8ea1 Compare November 11, 2025 09:47
@ml-evs ml-evs marked this pull request as ready for review November 11, 2025 09:48
@ml-evs ml-evs force-pushed the ml-evs/bump-pydantic-from-scratch branch from 41e8ea1 to 28e43c3 Compare November 12, 2025 22:54
@ml-evs ml-evs requested a review from be-smith November 12, 2025 22:54
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, everything working great ! 👍

@be-smith
Copy link
Contributor

I have played around doing everything I can think of and seems to be working well for me so far!

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.

4 participants