mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
feat: Frontend tagging (#20876)
Co-authored-by: cccs-nik <68961854+cccs-nik@users.noreply.github.com> Co-authored-by: GITHUB_USERNAME <EMAIL>
This commit is contained in:
@@ -97,6 +97,14 @@ class Slice( # pylint: disable=too-many-public-methods
|
||||
security_manager.user_model, foreign_keys=[last_saved_by_fk]
|
||||
)
|
||||
owners = relationship(security_manager.user_model, secondary=slice_user)
|
||||
if is_feature_enabled("TAGGING_SYSTEM"):
|
||||
tags = relationship(
|
||||
"Tag",
|
||||
secondary="tagged_object",
|
||||
primaryjoin="and_(Slice.id == TaggedObject.object_id)",
|
||||
secondaryjoin="and_(TaggedObject.tag_id == Tag.id, "
|
||||
"TaggedObject.object_type == 'chart')",
|
||||
)
|
||||
table = relationship(
|
||||
"SqlaTable",
|
||||
foreign_keys=[datasource_id],
|
||||
|
||||
Reference in New Issue
Block a user