fixed naming for facility_name and testbed_name in QueryTable plugin
authorJordan Augé <jordan.auge@lip6.fr>
Fri, 8 Aug 2014 09:58:07 +0000 (11:58 +0200)
committerJordan Augé <jordan.auge@lip6.fr>
Thu, 14 Aug 2014 13:37:12 +0000 (15:37 +0200)
plugins/querytable/__init__.py
plugins/querytable/static/js/querytable.js
portal/sliceresourceview.py

index 2182e70..995e935 100644 (file)
@@ -34,7 +34,8 @@ Current implementation makes the following assumptions
 """
 
     MAP = {
-        'network_hrn'   :   'Testbed',
+        'facility_name' :   'Facility',
+        'testbed_name'  :   'Testbed',
         'hostname'      :   'Resource name',
         'type'          :   'Type',
     }
index 4b9e546..7ddf300 100644 (file)
@@ -12,7 +12,8 @@ QUERYTABLE_BGCOLOR_REMOVED = 2;
 
     
     var QUERYTABLE_MAP = {
-        'Testbed': 'network_hrn',
+        'Facility': 'facility_name',
+        'Testbed': 'testbed_name',
         'Resource name': 'hostname',
         'Type': 'type',
     };
index 7f3c2d6..3fe521a 100644 (file)
@@ -60,7 +60,6 @@ class SliceResourceView (LoginRequiredView, ThemeView):
                 # RESOURCES
                 'resource.urn',
                 'resource.hostname', 'resource.type',
-                'resource.network_hrn',
                 # - The facility_name and testbed_name are required for the
                 #   testbeds plugin to properly work.
                 'resource.facility_name',