Umesh Padashetty created RANGER-5195:
----------------------------------------

             Summary: Tag version is always set to 1 in Ranger Tag REST APIs
                 Key: RANGER-5195
                 URL: https://issues.apache.org/jira/browse/RANGER-5195
             Project: Ranger
          Issue Type: Bug
          Components: tagsync
            Reporter: Umesh Padashetty


Ideally, the Tag version should get updated whenever there is a change in tag 
or tag attributes at Atlas end, but it is observed that the version is always 
set to 1 in the Ranger Tag REST APIs. 

For instance, take this tag test_tag_7bf80d08_1744215889 defined in atlas, 

Ranger GET /tags/tagdefs returns 
{code:java}
{
    "id": 155,
    "guid": "6b8e2431-31e3-44d7-aef6-4f97555d7e02",
    "isEnabled": true,
    "createdBy": "rangertagsync",
    "updatedBy": "rangertagsync",
    "createTime": 1744215891278,
    "updateTime": 1744215891280,
    "version": 1,
    "name": "test_tag_7bf80d08_1744215889",
    "source": "Atlas",
    "attributeDefs": [
      {
        "name": "date_attr",
        "type": "string"
      },
      {
        "name": "int_attr",
        "type": "string"
      },
      {
        "name": "bool_attr",
        "type": "string"
      },
      {
        "name": "string_attr",
        "type": "string"
      },
      {
        "name": "float_attr",
        "type": "string"
      }
    ]
  } {code}
I added another tag attribute testing_version_attribute with type "bool" in 
atlas. I then went on to add this new value in the entity previously assigned 
to this tag. But still the version attribute is set to 1 and does not change. 
Ideally, the version attribute should change to 2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to