Create New Team: Limit the Team Type Options
Affected module Checked on Sandbox
Describe the bug When creating a new team within an existing Team, the team type options should be restricted based on the hierarchy of teams that are supported. OM currently supports the hierarchy: Organization > Business Unit > Division > Department > Group
When creating a Team of the Type 'Department', 'Business Unit' should not be available among the options for Team Type.
I've not checked for all other team types, but by default, those types that are not supported should not be displayed as options.
To Reproduce
-
Create a new team under the team type 'Department'. For e.g., Invoice Team
-
These are the Team Type options that I see. Since a BusinessUnit or Division cannot be created under a Department, it should not be displayed as an option.
Expected behavior Display only the supported team types at every team level.
Version:
- OS: [e.g. iOS]
- Python version:
- OpenMetadata version: [e.g. 0.8]
- OpenMetadata Ingestion package version: [e.g.
openmetadata-ingestion[docker]==XYZ]
Additional context Add any other context about the problem here.