Skip to content

Multi-Team: Add teams inspect CLI command to display team resources - #72036

Draft
SameerMesiah97 wants to merge 1 commit into
apache:mainfrom
SameerMesiah97:Multi-Team-Inspect-Command
Draft

Multi-Team: Add teams inspect CLI command to display team resources#72036
SameerMesiah97 wants to merge 1 commit into
apache:mainfrom
SameerMesiah97:Multi-Team-Inspect-Command

Conversation

@SameerMesiah97

Copy link
Copy Markdown
Contributor

Description

This change introduces a new airflow teams inspect CLI command for displaying the resources associated with a team.

The command provides a consolidated view of a team's DAG bundle associations, pools, connections, and variables, making it easier to understand which resources belong to a team and to troubleshoot or prepare administrative operations.

Rationale

As multi-team deployments grow, it becomes useful to inspect a team's resources from a single command rather than querying each resource type independently.

The teams inspect command provides administrators with a convenient overview of team-owned resources, complementing existing management commands such as teams verify and teams delete.

Tests

Added unit tests verifying that:

  • Inspecting a team with associated resources displays its DAG bundles, pools, connections, and variables.
  • Inspecting a team with no associated resources reports empty sections while displaying the default pool.
  • Inspecting a nonexistent team exits with an appropriate error.

Documentation

Added CLI help text describing the new teams inspect command.

Backwards Compatibility

This change is additive. Existing behaviour is unchanged unless the new teams inspect command is explicitly invoked.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [GPT 5.5] following the guidelines

Adds a new  command to display the resources
associated with a team. The command reports DAG bundle associations,
pools, connections, and variables for the requested team, providing a
single view of team-owned resources.

Also adds unit tests covering teams with associated resources, empty
teams, and nonexistent teams.
@SameerMesiah97
SameerMesiah97 force-pushed the Multi-Team-Inspect-Command branch from 0554d64 to 6c79f82 Compare August 24, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant