mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-18 12:18:35 +00:00
Fix Inherited Owner Not Updating in Data Product List After Removal from Domain in search (#20058)
This commit is contained in:
parent
d5e20efb8d
commit
7e92a459b2
@ -106,9 +106,9 @@ public interface SearchClient {
|
||||
String PROPAGATE_TEST_SUITES_SCRIPT = "ctx._source.testSuites = params.testSuites";
|
||||
|
||||
String REMOVE_OWNERS_SCRIPT =
|
||||
"if (ctx._source.owners != null && !ctx._source.owners.isEmpty()) { "
|
||||
+ "ctx._source.owners.removeIf(owner -> "
|
||||
+ "params.deletedOwners.stream().anyMatch(deletedOwner -> deletedOwner.id == owner.id) && owner.inherited == true); "
|
||||
"if (ctx._source.owners != null) { "
|
||||
+ "ctx._source.owners.removeIf(owner -> owner.inherited == true); "
|
||||
+ "ctx._source.owners.addAll(params.deletedOwners); "
|
||||
+ "}";
|
||||
|
||||
String UPDATE_TAGS_FIELD_SCRIPT =
|
||||
|
Loading…
x
Reference in New Issue
Block a user