Browse Source

HUE-8293 [metastore] Limit column popularity to be at least 5%

Romain Rigaux 7 years ago
parent
commit
d5586a34bb

+ 1 - 1
desktop/core/src/desktop/templates/ko_components/ko_catalog_entries_table.mako

@@ -169,7 +169,7 @@ from desktop.views import _ko
               <!-- ko if: isKey -->
               &nbsp;<i class="fa fa-key" data-bind="tooltip: { title: keyText, html: true }"></i>
               <!-- /ko -->
-              <!-- ko if: popularity -->
+              <!-- ko if: popularity && popularity() >= 5 -->
               &nbsp;<i data-bind="tooltip: { title: '${ _ko("Popularity") }: ' + popularity() + '%' }" class="fa fa-star-o"></i>
               <!-- /ko -->
             </a>