Explorar o código

HUE-8758 [connector] Adding id attribute to deprecate type one

Romain %!s(int64=5) %!d(string=hai) anos
pai
achega
419c0a3a35
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      desktop/core/src/desktop/models.py

+ 2 - 1
desktop/core/src/desktop/models.py

@@ -1787,7 +1787,8 @@ class ClusterConfig(object):
       if interpreter['interface'] != 'hms':
         interpreters.append({
           'name': interpreter['name'],
-          'type': interpreter['type'],
+          'type': interpreter['type'],  # Connector v1
+          'id': interpreter['type'],
           'displayName': interpreter['name'],
           'buttonName': _('Query'),
           'tooltip': _('%s Query') % interpreter['type'].title(),