mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-07 13:05:09 +00:00
solved table api throw 404 error (#12261)
This commit is contained in:
parent
bdb438d12d
commit
245303c8c8
@ -2057,6 +2057,9 @@ public interface CollectionDAO {
|
|||||||
@SqlUpdate("DELETE FROM tag_usage where tagFQNHash = :tagFQNHash AND source = :source")
|
@SqlUpdate("DELETE FROM tag_usage where tagFQNHash = :tagFQNHash AND source = :source")
|
||||||
void deleteTagLabels(@Bind("source") int source, @Bind("tagFQNHash") String tagFQNHash);
|
void deleteTagLabels(@Bind("source") int source, @Bind("tagFQNHash") String tagFQNHash);
|
||||||
|
|
||||||
|
@SqlUpdate("DELETE FROM tag_usage where tagFQNHash = :tagFQNHash")
|
||||||
|
void deleteTagLabelsByFqn(@Bind("tagFQNHash") String tagFQNHash);
|
||||||
|
|
||||||
@SqlUpdate("DELETE FROM tag_usage where tagFQNHash LIKE CONCAT(:tagFQNHash, '.%') AND source = :source")
|
@SqlUpdate("DELETE FROM tag_usage where tagFQNHash LIKE CONCAT(:tagFQNHash, '.%') AND source = :source")
|
||||||
void deleteTagLabelsByPrefix(@Bind("source") int source, @Bind("tagFQNHash") String tagFQNHash);
|
void deleteTagLabelsByPrefix(@Bind("source") int source, @Bind("tagFQNHash") String tagFQNHash);
|
||||||
|
|
||||||
|
|||||||
@ -830,8 +830,14 @@ public abstract class EntityRepository<T extends EntityInterface> {
|
|||||||
daoCollection.entityExtensionDAO().deleteAll(id);
|
daoCollection.entityExtensionDAO().deleteAll(id);
|
||||||
|
|
||||||
// Delete all the tag labels
|
// Delete all the tag labels
|
||||||
daoCollection.tagUsageDAO().deleteTagLabelsByTargetPrefix(entityInterface.getFullyQualifiedName());
|
daoCollection
|
||||||
|
.tagUsageDAO()
|
||||||
|
.deleteTagLabelsByTargetPrefix(FullyQualifiedName.buildHash(entityInterface.getFullyQualifiedName()));
|
||||||
|
|
||||||
|
// when the glossary and tag is deleted .. delete its usage
|
||||||
|
daoCollection
|
||||||
|
.tagUsageDAO()
|
||||||
|
.deleteTagLabelsByFqn(FullyQualifiedName.buildHash(entityInterface.getFullyQualifiedName()));
|
||||||
// Delete all the usage data
|
// Delete all the usage data
|
||||||
daoCollection.usageDAO().delete(id);
|
daoCollection.usageDAO().delete(id);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user