mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-04 19:44:58 +00:00
Fix Inherited Owner Not Updating in Data Product List After Removal from Domain in search (#20058)
This commit is contained in:
parent
6ce1bd7f13
commit
338320cca7
@ -107,9 +107,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