Skip to content

Add org/enterprise fields to Connection struct from API #4

@ewega

Description

@ewega

Summary

The CLI's \Connection\ struct only has \ID\ and \Name. The plugin API returns \organization\ and \�nterprise\ in GET responses. Adding these enables auto-resolving enterprise/org from existing connections.

Changes

  • Add \Organization\ and \Enterprise\ fields to \Connection\ struct in \client.go\
  • \discoverConnections\ populates \connChoice.enterprise\ from API responses
  • Enterprise auto-resolved when scoping connections discovered via API (not just state file)

Acceptance Criteria

  • \Connection\ struct includes \Organization\ and \Enterprise\ JSON fields
  • \discoverConnections\ carries enterprise from API-discovered connections

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions