Преглед изворни кода

HUE-8161 [metadata] Improve naming for the catalog namespace

Johan Ahlen пре 7 година
родитељ
комит
7b9673de47
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      desktop/libs/metadata/src/metadata/navigator_client.py

+ 5 - 5
desktop/libs/metadata/src/metadata/navigator_client.py

@@ -567,11 +567,11 @@ class NavigatorApi(object):
 
       properties = self.get_namespace_properties(namespace=NavigatorApi.CATALOG_NAMESPACE)
 
-      if not [_property for _property in properties if _property['name'] == 'relatedQueries']:
+      if not [_property for _property in properties if _property['name'] == 'relatedDocuments']:
         self.create_namespace_property(namespace=NavigatorApi.CATALOG_NAMESPACE, properties={
-          "name": "relatedQueries",
-          "displayName": "Related queries",
-          "description": "List of saved SQL queries UUIDs that show how to analyze this table",
+          "name": "relatedDocuments",
+          "displayName": "Related documents",
+          "description": "List of Hue document UUIDs related to this entity",
           "multiValued": True,
           "maxLength": 36,
           "pattern": ".*", # UUID
@@ -583,7 +583,7 @@ class NavigatorApi(object):
         for clazz in ('hv_table', 'hv_view'):
           self.map_namespace_property(clazz, properties=[{
              "namespace": NavigatorApi.CATALOG_NAMESPACE,
-             "name": "relatedQueries"
+             "name": "relatedDocuments"
           }])
 
       _HAS_CATALOG_NAMESPACE = True