Ver Fonte

[indexer] Display collections column value for indexes list page

Jenny Kim há 10 anos atrás
pai
commit
b48897f

+ 2 - 2
desktop/libs/indexer/src/indexer/controller2.py

@@ -75,11 +75,11 @@ class CollectionController(object):
       if self.is_solr_cloud_mode():
         collections = self.api.collections2()
         for name in collections:
-          indexes.append({'name': name, 'type': 'collection'})
+          indexes.append({'name': name, 'type': 'collection', 'collections': ''})
 
       solr_cores = self.api.cores()
       for name in solr_cores:
-        indexes.append({'name': name, 'type': 'core'})
+        indexes.append({'name': name, 'type': 'core', 'collections': ''})
 
       solr_aliases = self.api.aliases()
       for name in solr_aliases:

+ 1 - 1
desktop/libs/indexer/src/indexer/templates/indexes.mako

@@ -68,7 +68,7 @@ ${ commonheader(_("Solr Indexes"), "spark", user, "60px") | n,unicode }
         </td>
         <td data-bind="text: name"></td>
         <td data-bind="text: type"></td>
-        <td data-bind="text: type"></td>
+        <td data-bind="text: collections"></td>
       </tr>
     </tbody>
   </table>