Repository navigation
refactor!: simplify policy ownership and organization usage - #2038
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
onSavedcallbacks, preserving refresh-before-close behavior.OrganizationUsage.users; regenerate OpenAPI and Zod contracts. HistoricalInvoice.usersbilling remains unchanged.GETandPATCH /api/v1/organizations/{organization_id}/usageno longer returnusers. Clients must stop requiring this field and regenerate their schemas. No database migration is required.origin/maintest refactors without unrelated changes.Validation
ruff check .,ty check, scoped formatting checks (nine API files and two SDK files), contract regeneration, andgit diff --checkpassed.vp run check,vp run typecheck(including Views fixtures),build:sdk:bundle, andreact-router build --mode apipassed, with five existing ReUI warnings and the existing chunk-size warning.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.UV_PROJECT_ENVIRONMENToutside/tmp.