Merge pull request #1402 from cptran777/release-health-tab

Will show dataset health tab except for graphs...
This commit is contained in:
Charlie Tran 2018-09-20 12:56:55 -07:00 committed by GitHub
commit dec9417376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 28 deletions

View File

@ -1,12 +1,12 @@
<h3>Metadata Health</h3>
{{#unless tableData.length}}
{{#if shouldShowDatasetHealth}}
{{datasets/health/metrics-charts
isActiveTab=isActiveTab
categoryData=renderedCategories
severityData=renderedSeverity
onCategorySelect=(action onFilterSelect "category")
onSeveritySelect=(action onFilterSelect "severity")}}
{{/unless}}
{{/if}}
{{datasets/health/score-table
tableData=tableData
currentCategoryFilter=currentCategoryFilter

View File

@ -56,28 +56,19 @@
</div>
{{/datasets/containers/dataset-fabrics}}
{{#if shouldShowDatasetHealth}}
{{datasets/containers/dataset-owner-list
urn=encodedUrn
avatarEntityProps=avatarEntityProps
class="dataset-owner-list"}}
{{datasets/containers/dataset-owner-list
urn=encodedUrn
avatarEntityProps=avatarEntityProps
class="dataset-owner-list"}}
{{#link-to "datasets.dataset.health" encodedUrn}}
{{datasets/containers/health-score-gauge urn=encodedUrn wikiLinks=wikiLinks}}
{{/link-to}}
{{/if}}
{{#link-to "datasets.dataset.health" encodedUrn}}
{{datasets/containers/health-score-gauge urn=encodedUrn wikiLinks=wikiLinks}}
{{/link-to}}
</div>
</div>
</div>
{{#unless shouldShowDatasetHealth}}
{{datasets/containers/dataset-owner-list
urn=encodedUrn
avatarEntityProps=avatarEntityProps
}}
{{/unless}}
</div>
</div>
@ -120,11 +111,9 @@
{{/tablist.tab}}
{{/if}}
{{#if shouldShowDatasetHealth}}
{{#tablist.tab tabIds.Health on-select=(action "tabSelectionChanged")}}
Health
{{/tablist.tab}}
{{/if}}
{{#tablist.tab tabIds.Health on-select=(action "tabSelectionChanged")}}
Health
{{/tablist.tab}}
{{/tabs.tablist}}
</div>
@ -179,10 +168,12 @@
{{/tabs.tabpanel}}
{{/if}}
{{#if shouldShowDatasetHealth}}
{{#tabs.tabpanel tabIds.Health}}
{{datasets/containers/dataset-health urn=encodedUrn tabSelected=tabSelected}}
{{/tabs.tabpanel}}
{{/if}}
{{#tabs.tabpanel tabIds.Health}}
{{datasets/containers/dataset-health
urn=encodedUrn
tabSelected=tabSelected
shouldShowDatasetHealth=shouldShowDatasetHealth
}}
{{/tabs.tabpanel}}
</div>
{{/ivy-tabs}}