Skip to content

refactor!: simplify policy ownership and organization usage - #2038

Merged
Sau1707 merged 1 commit into
mainfrom
refactor/cleanup-policy-ownership
Dec 3, 2026
Merged

Sau1707 merged 1 commit into
mainfrom
refactor/cleanup-policy-ownership

Conversation

@Sau1707

@Sau1707 Sau1707 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Move Solution-list refresh into parent onSaved callbacks, preserving refresh-before-close behavior.
  • Share member-management eligibility checks while preserving live permission revocation.
  • Enforce the fixed admin page size, require an explicit Kubernetes deployment CPU budget, and share company website normalization.
  • Remove the unused live organization member-count query and OrganizationUsage.users; regenerate OpenAPI and Zod contracts. Historical Invoice.users billing remains unchanged.
  • Breaking change: GET and PATCH /api/v1/organizations/{organization_id}/usage no longer return users. Clients must stop requiring this field and regenerate their schemas. No database migration is required.
  • Integrate the latest origin/main test refactors without unrelated changes.

Validation

  • Verified in an isolated worktree on the latest main: API and SDK ruff check ., ty check, scoped formatting checks (nine API files and two SDK files), contract regeneration, and git diff --check passed.
  • Passed 197 targeted API tests covering Kubernetes, models, company and organization services/routes, Solution and invoice operations, and Alembic; passed 73 SDK database tests. Full API and SDK suites were not run.
  • Web vp run check, vp run typecheck (including Views fixtures), build:sdk:bundle, and react-router build --mode api passed, with five existing ReUI warnings and the existing chunk-size warning.
  • All 556 web tests across 90 files passed with vp test run --config /tmp/opencode/cleanup-vitest.config.mjs. The temporary config only extends the dependency filesystem allowlist for shared installed dependencies; the default run had nine environment failures involving the external MapLibre worker.
  • Temporary-storage quota limits required symlinked shared Node dependencies and isolated Python environments installed through UV_PROJECT_ENVIRONMENT outside /tmp.

Centralize Solution refresh ownership, member eligibility, admin pagination, and company website normalization. Require explicit deployment CPU budgets and remove the unused live organization member count.

BREAKING CHANGE: Organization usage GET and PATCH responses no longer include users. Clients must stop requiring that field and regenerate their schemas. Historical invoice member counts remain unchanged; no database migration is required.
@Sau1707 Sau1707 added api Related to the control plane breaking Breaking changes requiring migration refactor Structural improvements without changing intended behavior sdk Related to the applications SDK web Related to the web frontend and runtime labels Dec 3, 2026
@Sau1707
Sau1707 merged commit 08c3580 into main Dec 3, 2026
16 checks passed
@Sau1707
Sau1707 deleted the refactor/cleanup-policy-ownership branch December 3, 2026 10:59
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 refactor Structural improvements without changing intended behavior sdk Related to the applications SDK web Related to the web frontend and runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant