소스 검색

[indexer] Display collections column value for indexes list page

Jenny Kim 10 년 전
부모
커밋
b48897f8c4
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      desktop/libs/indexer/src/indexer/controller2.py
  2. 1 1
      desktop/libs/indexer/src/indexer/templates/indexes.mako

+ 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>