Skip to content

SP-3435: Return list assignments as value and name for every type - #435

Merged
Zgjim Haziri (ZgjimHaziri) merged 5 commits into
mainfrom
SP-3322-list-assignments-value-label
Oct 21, 2026
Merged

Zgjim Haziri (ZgjimHaziri) merged 5 commits into
mainfrom
SP-3322-list-assignments-value-label

Conversation

@ZgjimHaziri

@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

list assignments now returns the same shape for every variable type, a list of {value, name}, and it supports data pools (DATA_POOL_ID).

Until now each type returned its source API's raw response, so every caller had to understand each API. With one shape, Team-to-Team Copy can offer target values for any variable type, and won't break if a source API changes.

This changes the output for DATA_MODEL and CONNECTION. The user guide documents the new format.

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

Unit tests cover each type; they run in CI. Data pools were also checked against a develop team.

🤖 Generated with Claude Code

Lists the target team's data pools, so a DATA_POOL_ID variable such as a
Context Model's dataPoolId can be mapped during Team-to-Team Copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Each assignment API answers in its own shape, so callers had to know
every one of them. Map each type to {value, label} in the CLI, so
Team-to-Team Copy can list assignments for any variable type the same
way, and keeps working when a type's source API changes.

Also adds DATA_POOL_ID and PIG_INSTANCE to PackageManagerVariableType.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) changed the title SP-3322: Return list assignments as value and label for every type SP-3435: Return list assignments as value and label for every type Oct 21, 2026
@ZgjimHaziri
Zgjim Haziri (ZgjimHaziri) marked this pull request as ready for review October 21, 2026 12:13
@ZgjimHaziri
Zgjim Haziri (ZgjimHaziri) requested a review from a team as a code owner October 21, 2026 12:13
name reads more naturally for callers than label.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) changed the title SP-3435: Return list assignments as value and label for every type SP-3435: Return list assignments as value and name for every type Oct 21, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Comment thread src/commands/studio/interfaces/package-manager.interfaces.ts Outdated
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@ZgjimHaziri
Zgjim Haziri (ZgjimHaziri) merged commit 8fb2aed into main Oct 21, 2026
5 checks passed
@ZgjimHaziri
Zgjim Haziri (ZgjimHaziri) deleted the SP-3322-list-assignments-value-label branch October 21, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants