Migrate to the stable API¶
This is a cumulative upgrade checklist for the pre-1.0 API, not a migration to a 1.0 release. “Stable API” refers to the public-contract cleanup released in v0.79.0. Later releases changed some of those contracts again.
Choose the sections for your upgrade¶
Check the installed version with python -m pip show GeneralManager, choose an exact target version, and read the release notes between them. The relevant milestones for this guide are:
| Release | Change covered here | Who needs to act |
|---|---|---|
| v0.79.0 (2026-09-05) | Original public-contract cleanup: ordering, pagination, caches, measurements, public imports, search, and other subsystem contracts below | Applications crossing this release; apply the sections for the features you use |
| v0.83.1 (2026-10-12) | Measurement defaults normalized for ORM schema metadata | Applications declaring MeasurementField defaults; review newly generated migrations |
| v0.84.0 (2026-10-12) | Recursive grouped GraphQL collections and revised grouped result shape | Clients using grouped queries, including clients already upgraded to v0.79.0 |
| v0.85.0 (2026-10-12) | Canonical relation-page type names | Schema-generated clients and fragments naming relation-page types |
The examples below show the later grouped shape and relation-page names (v0.85.0 onward). If your target is older, consult that release's documentation. This checklist does not replace the complete release history; later fixes and security changes also matter.
Prepare application and GraphQL-client changes together. Review database migrations and apply schema additions before starting processes that require them, following the migration guide. Coordinate cache and index transitions only for the affected features; a code deployment alone does not perform every cutover below.
Replace ordering arguments¶
GraphQL lists, groups, and selected-index searches now take typed orderBy terms. Replace the former global ordering flags:
# Before
projectList(sortBy: "name", sortDesc: true) { results { id } }
# After
projectList(orderBy: [{field: name}, {field: date, direction: DESC}]) {
items { id name date }
}
direction defaults to ASC. Generated field enums provide autocomplete and use GraphQL camelCase spelling; relation paths use the generated eligible relation fields. A selected search index validates every requested field before calling its backend. Python buckets use signed positional fields instead: bucket.sort("name", "-date"). The remote API retains its documented ordering wire alias.
Concrete CalculationBucket and DatabaseBucket constructors no longer accept ordering metadata (sort_key, reverse, sort_keys, or sort_reverse). Construct the bucket with its source and filters, then call .sort(*signed_fields). New bucket pickles retain that signed ordering; rebuild pre-stable ordered constructor calls and serialized tuples through this API.
Use dedicated grouped fields¶
This section describes the v0.84.0 grouped contract. It supersedes the v0.79.0 shape with groups, keys, sums, members, and count wrappers.
Move groupBy queries from …List to …Groups. The response retains the items / pageInfo envelope with a distinct grouped item type:
projectGroups(groupBy: ["status"], orderBy: [{field: amount}]) {
items { status amount ownerList { items { id } } }
pageInfo { totalCount }
}
Move legacy keys and sums selections directly into items. Grouped singular relations become …List / …Groups collections of distinct original managers. Bucket collections support recursive grouping. Ordinary lists keep singular relations and do not accept groupBy. Plain List[GraphQLType] properties keep their output shape and gain no collection query controls.
Groups can sort eligible aggregate scalars. Permissions apply across contributing members before values are read. There is no generated members or count wrapper; retrieve original records through an ordinary filtered list. See the grouping contract.
Update relation page type names¶
Apply this change when crossing v0.85.0.
Relation lists now share the page type generated for their related manager's ordinary root list. The name is <Manager>TypePage, derived from its GraphQL item type, rather than the former <Manager>Page alias. For example, a relation to ProjectType returns ProjectTypeTypePage containing ProjectTypeType items; projectList keeps its ProjectTypePage containing ProjectType items. This separates entity and reference managers whose names differ by Type.
Regenerate GraphQL clients and update named or inline fragments on relation pages to the canonical page type. Existing operation field names and selections such as items { id name } do not change. Root page names, pagination and filter arguments, native ID scalars, and permissions retain their existing contracts. Grouped relation lists use the canonical ordinary related-manager page too; aggregate GroupPage and GroupType names are unchanged. See the page type contract.
Check pagination inputs and metadata¶
Explicit page and pageSize are positive integers. Supplying either value defaults the other to page 1 or size 10. pageInfo reports effective values; an empty known result has totalPages: 0, while an out-of-range positive page has an empty items list. Request-backed pages distinguish fetched rows from an upstream total, which can be unknown.
Move search and remote controls to trusted boundaries¶
Public search no longer exposes backend raw documents. Remote execution controls are trusted server inputs: use the supported request metadata and the provider-supplied confirmation flow for mutations instead of body controls. The provider cannot approve its own request. Optional search/workflow backends remain capability stubs until configured; do not infer support from their importable names.
Roll forward cache entries¶
Cache keys and prefetch manifests use v2 namespaces. Old values are misses and are regenerated; no whole-cache flush is required. Dependency caching requires Django's configured default backend, while timeout caching may use a compatible custom backend. cached rejects async functions, async callable objects, and runtime awaitable results.
Update Measurement values and field defaults¶
Measurement is immutable. Parse text with Measurement.from_string("1 m") and compare with another Measurement, rather than comparing to a string. Compatible relational comparisons use the same canonical magnitude/bin as equality and hashing; Decimal formatting retains supplied coefficients. Normal MeasurementField scalar defaults now serialize through Django migrations, alongside callable defaults and field options. v0.83.1 additionally corrected normalization of those defaults in ORM schema metadata. Review any resulting new migration; do not rewrite an applied one. This default handling does not rescale existing data when you change a field's base unit; follow the measurement migration guidance.
Use public facades and explicit result shapes¶
Replace removed utility deep imports with the documented package facades. Group results are explicit group objects, not entity buckets. Runtime collation and null placement can vary by backend; request pages cannot promise global ordering beyond the supplied page. Upload adapters require PUT support and exact object/value validation. Factory build() relation side effects and Rule source-inspection constraints remain documented limits.
Cut over durable handlers and chat summaries¶
Persistent handler registrations need durable registration IDs. Deploy the new IDs before enabling the new registry; existing deliveries are not replayed automatically. The chat migration adds a nullable summary watermark. Existing summaries retain their text but have unknown coverage and are regenerated lazily when their older-message boundary is needed.
Rebuild Meilisearch indexes¶
Meilisearch primary keys now use a uniform SHA-256 encoding that is collision-resistant but not reversible. Rebuild each affected index, switch readers to the rebuilt index, then remove the old index; do not retain duplicate old documents. The rebuild preserves every original ID, including empty strings, in stored metadata for round trips.
Update factories, seeders, and logging callers¶
Use the documented relation override spellings, including raw foreign-key attnames. Seeder counts report actual created objects and respect an aliased transaction scope. Audit logger flush() drains accepted records without closing the logger; close() is terminal. Thread-local dependency tracking is limited to its request/calculation context and does not provide distributed tracker semantics.