mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-30 01:59:23 +00:00
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:
parent
fc21818a14
commit
41ec8d18de
@ -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;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user