mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-28 07:58:31 +00:00
Backend support for filtering by votes (#13813)
* Backend support for filtering by votes * remove the condition * checkstyle
This commit is contained in:
parent
b82c33574f
commit
1c56d8c181
@ -827,9 +827,7 @@ public abstract class EntityRepository<T extends EntityInterface> {
|
||||
.withCurrentVersion(entity.getVersion())
|
||||
.withPreviousVersion(change.getPreviousVersion());
|
||||
entity.setChangeDescription(change);
|
||||
if (supportsSearch) {
|
||||
postUpdate(entity, entity);
|
||||
}
|
||||
postUpdate(entity, entity);
|
||||
return new PutResponse<>(Status.OK, changeEvent, RestUtil.ENTITY_FIELDS_CHANGED);
|
||||
}
|
||||
|
||||
@ -874,7 +872,7 @@ public abstract class EntityRepository<T extends EntityInterface> {
|
||||
.withTimestamp(System.currentTimeMillis())
|
||||
.withCurrentVersion(originalEntity.getVersion())
|
||||
.withPreviousVersion(change.getPreviousVersion());
|
||||
|
||||
postUpdate(originalEntity, originalEntity);
|
||||
return new PutResponse<>(Status.OK, changeEvent, RestUtil.ENTITY_FIELDS_CHANGED);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user