Repository navigation
PSL-3700: List schemas for SCHEMA_REFERENCE variable assignments - #457
Merged
Merged
Conversation
`list assignments --type SCHEMA_REFERENCE` returns the global schema and the data connection schemas of every data pool the caller is admin of, so Team-to-Team Copy can map Context Model schema variables. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
The slim overview returns the PIG data source type as "PIG", so the managed schema check now ignores case. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
# Conflicts: # docs/user-guide/config-commands.md # src/commands/configuration-management/interfaces/variable-assignment-apis.constants.ts # tests/commands/configuration-management/list-assignments.spec.ts
Context Models read through Storium, so the schema list keeps only pools whose primary or secondary pool provider is Storium, like the Context Model schema picker. The engine comes from the slim overview entries; pools without entries are resolved in batches of 100 through GET /integration/api/pools/pool-provider-types. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
The slim overview now returns virtual global and OCDM entries. The global schema is no longer listed twice, and OCDM schemas are left out, as Package Settings only assigns Data Connection and Global schemas to schema variables. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
Offers the pool's OCDM schema like the global schema, as the picker does since the slim overview returns it, and keeps the picker's creation rule that only schemas named after their pool are offered. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
Lists the virtual global entry next to the picker's own global schema, matches managed data source types and pool-named schemas the way the picker does, and sorts by pool name, then schema name. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
Drops the pool-provider-types fallback. A pool is left out only when its slim overview entries report a pool provider other than Storium; pools without reported pool provider types are kept. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
Each worker takes the next pool and calls itself again, so the slim overview requests still run 4 at a time without an await inside a loop. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
Buqeta (Buqeta)
marked this pull request as ready for review
November 6, 2026 15:37
Keeps the schema listing for SCHEMA_REFERENCE in api/schema-reference-candidates.ts, so it can be replaced on its own later, and simplifies its docs to every data pool of the team. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
|
Zgjim Haziri (ZgjimHaziri)
approved these changes
Nov 6, 2026
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.



Description
Adds
SCHEMA_REFERENCEtocontent-cli list assignments, so Team-to-Team Copy (T2TC) can offer target-team schemas when mapping Context Model schema variables. The list follows the Context Model schema picker in ems-frontend (loadSchemaCatalog), using only existing Integration endpoints:GET /integration/api/pools: pools the caller is admin of (ADMINinpermissions).GET /integration/api/pools/{poolId}/data-sources/slim-overviewper admin pool, 4 in parallel.primaryPoolProviderType/secondaryPoolProviderType) are left out, as Context Models read through Storium. A pool whose entries carry no pool provider types is kept, so no extra request is needed.toSchemaOptionsand creation-modesortSchemaOptions(T2TC has no hosting pool):Global schema) plus one schema per slim overview entry (targetSchemaName, or<poolId>_<dataSourceId>), including the virtualglobal(Global Data Connection) andOCDM(Objects and events) entries from celonis/cloud-integration#11993. Like the picker, the pool's global schema is therefore listed twice.<poolId>or<poolId>_...; customtargetSchemaNameschemas and the legacybusiness_graph_schema_<tenantId>are left out.pig,context-model,context-model-semantic) are left out.<pool name> / <label>.SCHEMA_REFERENCElogic lives in its own file,api/schema-reference-candidates.ts, so it can be replaced later.VariableAssignmentApigets an optionalloadCandidateshook for this multi-request list. Other types still make a single GET, includingdefaultParamsfrom main.config-commands.mdlists the new type.To verify: the local run used a personal profile, not the OAuth token CDP uses for the target team. Not yet checked with that token: whether it gets
ADMINinpermissionson/integration/api/pools, and whether the gateway allows it to call the slim overview.Relevant links
Checklist
list-assignments.spec.ts; ranlist assignments --type SCHEMA_REFERENCEfrom a local build against a develop team, which listed the Global schema, Global Data Connection and Objects and events of each pool)Co-Authored-By: Claude noreply@anthropic.com
Includes-AI-Code: true