Create on Parent Team should allow team creation on child (#23390)

* Create on Parent Team should allow team creation on child

* Remove Comment

---------

Co-authored-by: Ashish Gupta <ashish@getcollate.io>
(cherry picked from commit 04b8e9452a678466052e9c34ee796365c195d279)
This commit is contained in:
Mohit Yadav 2025-09-19 16:50:43 +05:30 committed by Ashish Gupta
parent fc21818a14
commit 41ec8d18de

View File

@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
import org.openmetadata.schema.EntityInterface;
import org.openmetadata.schema.entity.classification.Tag;
import org.openmetadata.schema.entity.data.GlossaryTerm;
import org.openmetadata.schema.entity.teams.Team;
import org.openmetadata.schema.type.EntityReference;
import org.openmetadata.schema.type.TagLabel;
import org.openmetadata.service.Entity;
@ -127,6 +128,7 @@ public class CreateResourceContext<T extends EntityInterface> implements Resourc
case Entity.GLOSSARY_TERM -> List.of(((GlossaryTerm) entity).getGlossary());
case Entity.TAG -> List.of(((Tag) entity).getClassification());
case Entity.DATA_PRODUCT -> entity.getDomains();
case Entity.TEAM -> ((Team) entity).getParents();
default -> null;
};