This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 949cebe70 ATLAS-4785: Fix incorrect references in AtlasClientV2 label 
methods
     new 530d60f0c Merge pull request #237 from wForget/dev
949cebe70 is described below

commit 949cebe70a1ef105b29e08456b87a25549ad2e2a
Author: wforget <643348...@qq.com>
AuthorDate: Fri Aug 18 12:00:31 2023 +0800

    ATLAS-4785: Fix incorrect references in AtlasClientV2 label methods
---
 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);
     }
 
 

Reply via email to