litestar-org / litestar-org/polyfactory

Enhancement: add support for Odmantic 1.0

Open
#464 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
1.5k
Forks
120
PR merge metrics
No merged PRs in 30d

Description

### Summary

Odmantic [v1 was released](https://github.com/art049/odmantic/releases/tag/v1.0.0) recently, and it switches over to `pydantic v2`. Currently, this is not supported (updating odmantic to v1 will cause the tests to fail) by `polyfactory`.

### Basic Example

_No response_

### Drawbacks and Impact

_No response_

### Unresolved questions

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by updating the Odmantic dependency to v1 and running the existing test suite to reproduce the failures described in the issue. Inspect the integration points affected by Odmantic's move to Pydantic v2; the work is done when the tests pass with Odmantic v1 support.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.