Skip to content

perf!: separate company validation from database persistence - #2042

Merged
Sau1707 merged 1 commit into
mainfrom
perf/sdk-company-profile
Dec 3, 2026
Merged

Sau1707 merged 1 commit into
mainfrom
perf/sdk-company-profile

Conversation

@Sau1707

@Sau1707 Sau1707 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Make Company a plain Pydantic model for company-profile validation.
  • Export CompanyDB for database persistence, queries, sessions, and metadata.
  • Update SDK/API callers and document the migration.

BREAKING CHANGE: Replace imports and uses of the previous ORM Company with
CompanyDB. Use Company.model_validate(...) for plain validation.
No compatibility aliases are provided. No database schema migration is required.

Validation

  • SDK: 547 tests passed, 1 skipped (opt-in Docker test).
  • API: 903 tests passed, 19 integration tests deselected.
  • SDK/API lint and type checks passed.
  • SDK formatting and API changed-file formatting passed.
  • SDK/API package builds passed; required frontend assets generated.
  • MySQL, PostgreSQL, and SQLite table/index DDL comparisons matched.
  • git diff --check passed.
  • Full API formatting reports unrelated baseline failures in untouched
    src/kubernetes/gateway.py and tests/routes/v1/test_health.py.
  • Opt-in Docker, API integration, web tests/typechecks, and multi-Python matrix checks were not run.

BREAKING CHANGE: Company is now a plain Pydantic model. Use CompanyDB for database persistence, queries, sessions, and metadata. No database migration is required.
@Sau1707 Sau1707 added api Related to the control plane sdk Related to the applications SDK performance Performance improvements breaking Breaking changes requiring migration labels Dec 3, 2026
@Sau1707
Sau1707 merged commit 2821a79 into main Dec 3, 2026
16 checks passed
@Sau1707
Sau1707 deleted the perf/sdk-company-profile branch December 3, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Related to the control plane breaking Breaking changes requiring migration performance Performance improvements sdk Related to the applications SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant