Skip to content

remove pydantic pinning - #449

Closed
stan-dot wants to merge 1 commit into
mainfrom
273-update-to-pydantic2
Closed

stan-dot wants to merge 1 commit into
mainfrom
273-update-to-pydantic2

Conversation

@stan-dot

@stan-dot stan-dot commented May 1, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@stan-dot
stan-dot requested a review from DiamondJoseph May 1, 2024 15:26
@stan-dot stan-dot self-assigned this May 1, 2024
@stan-dot stan-dot linked an issue May 1, 2024 that may be closed by this pull request
@codecov

codecov Bot commented May 1, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.16%. Comparing base (0a634dc) to head (e0a9b79).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #449   +/-   ##
=======================================
  Coverage   90.16%   90.16%           
=======================================
  Files          41       41           
  Lines        1708     1708           
=======================================
  Hits         1540     1540           
  Misses        168      168           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DiamondJoseph

Copy link
Copy Markdown
Contributor

I'm surprised it was as simple as just removing the pinning- the service still starts with our old-style BaseModels in Pydantic v2? Or are we picking up a Pydantic v1 pin from some other (dodal, ophyd-async?) dependency?

@callumforrester

Copy link
Copy Markdown
Contributor

Yeah, unsure if this is happy because it just works or lack of tests...

@stan-dot

stan-dot commented May 3, 2024

Copy link
Copy Markdown
Contributor Author

should a test 'staging' deployment be used for this?

@callumforrester

Copy link
Copy Markdown
Contributor

@stan-dot I think it's fine if someone has the time to play around with a local dev version of the server.

@stan-dot

Copy link
Copy Markdown
Contributor Author

@callumforrester I can try this on a branch with the ViSR project is that ok?

@callumforrester

Copy link
Copy Markdown
Contributor

@stan-dot I think this configuration will still install pydantic v1 because the pinned fastapi version depends on it, see #454

@stan-dot

Copy link
Copy Markdown
Contributor Author

so it's dependent on GDA. rip
#454 (comment)

I'm unassigning myself from this issue as it does not seem resolvable in the nearest future

@DiamondJoseph

Copy link
Copy Markdown
Contributor

It's also pinned in ScanSpec, dodal and other places. We need to have a mass move over

@stan-dot

Copy link
Copy Markdown
Contributor Author

superceded by #564

@stan-dot stan-dot closed this Jul 22, 2024
ZohebShaikh added a commit that referenced this pull request Aug 20, 2024
Fixes #273 

Supersedes #449 
---------
Co-authored-by: DiamondJoseph <[email protected]>
Co-authored-by: Zoheb Shaikh <[email protected]>
@DiamondJoseph
DiamondJoseph deleted the 273-update-to-pydantic2 branch September 5, 2024 10:32
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.

Update to Pydantic2

3 participants