rough-eye-60206
10/19/2021, 8:38 PM{
"errors": [
{
"message": "An unknown error occurred.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"addTag"
],
"extensions": {
"code": 500,
"type": "SERVER_ERROR",
"classification": "DataFetchingException"
}
}
],
"data": {
"addTag": null
}
}big-carpet-38439
10/19/2021, 8:49 PMrough-eye-60206
10/19/2021, 8:52 PMmutation addTag($input: TagAssociationInput!) {
addTag(input: $input)
}
variable set:
{
"input":{"tagUrn":"urn:li:tag:testtag","resourceUrn": "urn:li:dataset:(urn:li:dataPlatform:hive,datahub_test.orders_test,PROD)"}
}big-carpet-38439
10/19/2021, 9:05 PMX-DataHub-Actor header?rough-eye-60206
10/19/2021, 10:58 PMrough-eye-60206
10/19/2021, 11:01 PMrough-eye-60206
10/19/2021, 11:06 PMbig-carpet-38439
10/19/2021, 11:14 PMbig-carpet-38439
10/19/2021, 11:15 PMbig-carpet-38439
10/19/2021, 11:17 PMgreen-football-43791
10/20/2021, 3:26 AMLegacy tag here: https://github.com/linkedin/datahub/blob/master/metadata-ingestion/examples/mce_files/bootstrap_mce.json#L1500green-football-43791
10/20/2021, 3:26 AMgreen-football-43791
10/20/2021, 3:30 AMgreen-football-43791
10/20/2021, 3:31 AMrough-eye-60206
10/21/2021, 5:49 PMgreen-football-43791
10/21/2021, 5:50 PMrough-eye-60206
10/21/2021, 5:55 PMgreen-football-43791
10/21/2021, 6:04 PM{
"input": {
"tagUrn": "urn:li:tag:SomeTag",
"resourceUrn": "urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)",
"subResource": "field_foo",
"subResourceType": "DATASET_FIELD"
}
}
2. Yes- you can update descriptions with the updateDescription graphql mutation. It takes a similar input to addTag. Currently it only supports updating dataset column descriptions, but if you need to be able to update dataset descriptions we can make sure to extend it to support that- its on the backlog. https://github.com/linkedin/datahub/blob/master/datahub-graphql-core/src/main/resources/entity.graphql#L201
3. This was a known bug that has since been resolved. Are you on the latest release?rough-eye-60206
10/21/2021, 10:19 PMrough-eye-60206
10/21/2021, 10:33 PMmutation updateTag($input: TagUpdateInput!) {
updateTag(input: $input)
}
{
"input":{"urn":"urn:li:tag:testtag","name":"testtag", "description":"ingesting testtag","owners":{"owner":"urn:li:corpuser:sai",
"type":"DATAOWNER"}
}
}rough-eye-60206
10/21/2021, 10:34 PM{
"errors": [
{
"message": "Validation error of type MissingFieldArgument: Missing field argument urn @ 'updateTag'",
"locations": [
{
"line": 2,
"column": 3
}
],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "Validation error of type SubSelectionRequired: Sub selection required for type Tag of field updateTag @ 'updateTag'",
"locations": [
{
"line": 2,
"column": 3
}
],
"extensions": {
"classification": "ValidationError"
}
}
]
}green-football-43791
10/21/2021, 10:40 PMgreen-football-43791
10/21/2021, 10:40 PM{
"input": {
"urn": "urn:li:tag:testtag",
"name": "testtag",
"description": "ingesting testtag",
"owners": {
"owner": "urn:li:corpuser:sai",
"type": "DATAOWNER"
}
},
"urn": "urn:li:tag:testtag"
}green-football-43791
10/21/2021, 10:40 PMgreen-football-43791
10/21/2021, 10:41 PMupdateTag(urn: String!, input: TagUpdateInput!): Taggreen-football-43791
10/21/2021, 10:41 PMrough-eye-60206
10/21/2021, 11:02 PMmutation updateTag {
updateTag(
urn: "urn:li:tag:testtag",
input: {urn:"urn:li:tag:testtag",
name:"testtag",
description:"ingesting testtag"
}
) {
urn
}
}green-football-43791
10/21/2021, 11:02 PMrough-eye-60206
10/21/2021, 11:03 PMgreen-football-43791
10/21/2021, 11:03 PMrough-eye-60206
10/21/2021, 11:06 PMgreen-football-43791
10/21/2021, 11:06 PMbig-carpet-38439
10/22/2021, 12:05 AMfresh-yacht-72412
11/02/2023, 10:53 AMfresh-yacht-72412
11/02/2023, 10:53 AMmutation updateTag {
updateTag(
urn: "urn:li:container:test"
input: {urn: "urn:li:tag:test", name: "test_tag", description: "ingesting testtag"}
) {
urn
}
}fresh-yacht-72412
11/02/2023, 10:54 AM{
"errors": [
{
"message": "An unknown error occurred.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"updateTag"
],
"extensions": {
"code": 500,
"type": "SERVER_ERROR",
"classification": "DataFetchingException"
}
}
],
"data": {
"updateTag": null
},
"extensions": {}
}fresh-yacht-72412
11/02/2023, 10:54 AMgray-ocean-32209
11/02/2023, 5:27 PMurn: "urn:li:container:test"
If you are trying to update a tag (name, description or urn) urn should be something like below
urn: "urn:li:tag:test"