Hi team! I am updating dataset descriptions via gr...
# advice-metadata-modeling
c
Hi team! I am updating dataset descriptions via graphQL, and I can see them update correctly on UI. But when I query the description on graphQL, the description is not updated. How can I get the most up-to-date descriptions?
Below, I see the same description from UI and querying using GraphQL: "table containing all the users deleted on a single day"
Copy code
query readDescription {
  dataset(urn: "urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD)") {
    properties {
      description
    }
  }
}
Copy code
{
  "data": {
    "dataset": {
      "properties": {
        "description": "table containing all the users deleted on a single day"
      }
    }
  },
  "extensions": {}
}
Below, I update the description to "This is a new description.", which gets updated on UI, but using GraphQL query I still receive the old description.
Copy code
mutation updateDataset {
  updateDataset(
    urn:"urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD)",
    input: {
      editableProperties: {
          description: "This is a new description."
      }
    }
  ) {
    urn
  }
}
Copy code
query readDescription {
  dataset(urn: "urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD)") {
    properties {
      description
    }
  }
}
Copy code
{
  "data": {
    "dataset": {
      "properties": {
        "description": "table containing all the users deleted on a single day"
      }
    }
  },
  "extensions": {}
}
r
Hiya! This is because DataHub always maintains 2 distinct descriptions - one from the underlying system and another that is "editable" inside of DataHub. (properties.description and editableProperties.description), respectively. Please use the editableProperties.description field to read the DataHub-native description that was edited in the UI
🤩 1
c
Thank you!