This is an automated email from the ASF dual-hosted git repository. madhan pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push: new 3fddba845 ATLAS-4785: Fix incorrect references in AtlasClientV2 label methods 3fddba845 is described below commit 3fddba845cfa5673a0a605663710c416638630dd Author: Zhen Wang <wangz...@apache.org> AuthorDate: Fri Aug 18 12:00:31 2023 +0800 ATLAS-4785: Fix incorrect references in AtlasClientV2 label methods Signed-off-by: Madhan Neethiraj <mad...@apache.org> --- client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java b/client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java index 4970baaa9..7c8e875a1 100644 --- a/client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java +++ b/client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java @@ -588,7 +588,7 @@ public class AtlasClientV2 extends AtlasBaseClient { public void addLabels(String typeName, Map<String, String> uniqAttributes, Set<String> labels) throws AtlasServiceException { MultivaluedMap<String, String> queryParams = attributesToQueryParams(uniqAttributes); - callAPI(formatPathParameters(API_V2.SET_LABELS_BY_UNIQUE_ATTRIBUTE, typeName), (Class<?>) null, labels, queryParams); + callAPI(formatPathParameters(API_V2.ADD_LABELS_BY_UNIQUE_ATTRIBUTE, typeName), (Class<?>) null, labels, queryParams); } public void removeLabels(String entityGuid, Set<String> labels) throws AtlasServiceException { @@ -608,7 +608,7 @@ public class AtlasClientV2 extends AtlasBaseClient { public void setLabels(String typeName, Map<String, String> uniqAttributes, Set<String> labels) throws AtlasServiceException { MultivaluedMap<String, String> queryParams = attributesToQueryParams(uniqAttributes); - callAPI(formatPathParameters(API_V2.ADD_LABELS_BY_UNIQUE_ATTRIBUTE, typeName), (Class<?>) null, labels, queryParams); + callAPI(formatPathParameters(API_V2.SET_LABELS_BY_UNIQUE_ATTRIBUTE, typeName), (Class<?>) null, labels, queryParams); }