You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the GraphQL API, the 'tags' attribute of a schema field returns null when there are tags present. The deprecated 'globalTags' attribute works fine.
To Reproduce
Steps to reproduce the behavior:
Given a locally hosted copy of datahub running on docker (default base installation).
Given that there is a dataset ingested to datahub, with descriptions, tags, and glossary terms added to it's schema
When a GraphQL query is executed, requesting the 'tags' attribute for the fields of the schema
Then the 'tags' attribute should return the tags associated with the fields of the schema
{
"data": {
"dataset": {
"urn": "urn:li:dataset:(urn:li:dataPlatform:mssql,Adatabase.Aschema.Atable,PROD)",
"editableProperties": {
"description": "This is a description of a table."
},
"editableSchemaMetadata": {
"editableSchemaFieldInfo": [
{
"fieldPath": "Code",
"description": "New description of the Code field",
"tags": null, # <--------------- ERROR HERE, THIS FIELD HAS TAGS -------------------
"glossaryTerms": {
"terms": [
{
"term": {
"name": "Rain",
"urn": "urn:li:glossaryTerm:Test Dictionary.Rain"
}
}
]
}
}
]
}
}
}
}
Expected behavior
The 'tags' attribute should return the tags associated with the fields of the schema.
This behaviour can be seen if the deprecated attribute 'globalTags' is used. Note that the documentation of 'globalTags' is directly referring the user to use 'tags'.
Describe the bug
When using the GraphQL API, the 'tags' attribute of a schema field returns null when there are tags present. The deprecated 'globalTags' attribute works fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The 'tags' attribute should return the tags associated with the fields of the schema.
This behaviour can be seen if the deprecated attribute 'globalTags' is used. Note that the documentation of 'globalTags' is directly referring the user to use 'tags'.
Screenshots
![image](https://user-images.githubusercontent.com/5920776/136180841-3643e88d-db43-4dda-94c8-2a9c6de21628.png)
![image](https://user-images.githubusercontent.com/5920776/136181009-d673c571-af0e-4d0b-91ef-5364c24887b3.png)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: