iguazio.dashboard-controls 1.2.13 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/i18n/en/functions.json +5 -2
- package/dist/js/iguazio.dashboard-controls.js +5690 -5524
- package/dist/less/iguazio.dashboard-controls.less +1576 -1567
- package/package.json +1 -1
- package/src/i18n/en/functions.json +5 -2
- package/src/igz_controls/services/control-panel-logs-data.service.js +0 -53
- package/src/igz_controls/services/execution-logs-data.service.js +200 -0
- package/src/nuclio/functions/version/version-code/function-event-pane/test-events-logs/test-events-logs.tpl.html +1 -1
- package/src/nuclio/functions/version/version-execution-log/version-execution-log.component.js +123 -83
- package/src/nuclio/functions/version/version-execution-log/version-execution-log.less +9 -0
- package/src/nuclio/functions/version/version-execution-log/version-execution-log.tpl.html +14 -5
- package/src/nuclio/functions/version/version.component.js +6 -18
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
data-type="control"
|
|
29
29
|
data-rule-type="message"
|
|
30
30
|
data-search-states="$ctrl.searchStates"
|
|
31
|
-
data-search-callback="$ctrl.onQueryChanged(searchQuery, ruleType)"
|
|
32
|
-
data-on-search-submit="$ctrl.applyFilters()">
|
|
31
|
+
data-search-callback="$ctrl.onQueryChanged(searchQuery, ruleType)">
|
|
33
32
|
</igz-search-input>
|
|
34
33
|
</div>
|
|
35
34
|
|
|
@@ -95,9 +94,20 @@
|
|
|
95
94
|
<span class="filter-label asterisk">
|
|
96
95
|
{{ 'common:REPLICAS' | i18next }}
|
|
97
96
|
</span>
|
|
97
|
+
<div class="online-replicas__checkbox">
|
|
98
|
+
<input type="checkbox"
|
|
99
|
+
id="onlineOnly"
|
|
100
|
+
data-ng-change="$ctrl.onExcludeOfflineChange()"
|
|
101
|
+
data-ng-disabled="$ctrl.excludeOfflineIsDisabled"
|
|
102
|
+
data-ng-model="$ctrl.excludeOffline">
|
|
103
|
+
<label for="onlineOnly" data-uib-tooltip="{{ $ctrl.excludeOfflineIsDisabled ? 'functions:TOOLTIP.NO_OFFLINE_REPLICAS' : '' | i18next }}">
|
|
104
|
+
{{ 'functions:SHOWN_ONLINE_ONLY' | i18next }}
|
|
105
|
+
</label>
|
|
106
|
+
</div>
|
|
98
107
|
<igz-multiple-checkboxes data-ng-model="$ctrl.selectedReplicas"
|
|
99
108
|
data-options="$ctrl.replicasList"
|
|
100
109
|
data-dropdown="true"
|
|
110
|
+
data-title="{{ 'functions:PLACEHOLDER.SELECT_REPLICA' | i18next }}"
|
|
101
111
|
data-select-all-none="true"
|
|
102
112
|
data-ng-change="$ctrl.onCheckboxChange($event)"
|
|
103
113
|
data-ng-required="true"
|
|
@@ -125,8 +135,7 @@
|
|
|
125
135
|
<div class="actions-bar-left">
|
|
126
136
|
<igz-action-item-refresh
|
|
127
137
|
data-is-disabled="$ctrl.isFunctionDeploying()"
|
|
128
|
-
|
|
129
|
-
data-refresh="$ctrl.searchWithParams($ctrl.page.number, $ctrl.page.size)">
|
|
138
|
+
data-refresh="$ctrl.refreshLogs()">
|
|
130
139
|
</igz-action-item-refresh>
|
|
131
140
|
</div>
|
|
132
141
|
<div class="actions-bar-left">
|
|
@@ -154,7 +163,7 @@
|
|
|
154
163
|
<div class="control-panel-log-table common-table">
|
|
155
164
|
<div class="search-input-not-found"
|
|
156
165
|
data-ng-if="$ctrl.logs.length === 0">
|
|
157
|
-
{{ 'functions:
|
|
166
|
+
{{ 'functions:NO_LOGS_WERE_FOUND' | i18next }}
|
|
158
167
|
</div>
|
|
159
168
|
|
|
160
169
|
<div data-igz-extend-background
|
|
@@ -35,13 +35,12 @@ such restriction.
|
|
|
35
35
|
controller: NclVersionController
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
function NclVersionController($i18next, $interval, $
|
|
38
|
+
function NclVersionController($i18next, $interval, $rootScope, $scope, $state, $stateParams, $transitions, $timeout,
|
|
39
39
|
i18next, lodash, ngDialog, ConfigService, DialogsService, ExportService,
|
|
40
40
|
FunctionsService, GeneralDataService, NuclioHeaderService,
|
|
41
41
|
VersionHelperService) {
|
|
42
42
|
var ctrl = this;
|
|
43
43
|
var deregisterFunction = null;
|
|
44
|
-
var servicesService = null;
|
|
45
44
|
var interval = null;
|
|
46
45
|
var lng = i18next.language;
|
|
47
46
|
|
|
@@ -228,10 +227,6 @@ such restriction.
|
|
|
228
227
|
}
|
|
229
228
|
});
|
|
230
229
|
|
|
231
|
-
if ($injector.has('ServicesService')) {
|
|
232
|
-
servicesService = $injector.get('ServicesService')
|
|
233
|
-
}
|
|
234
|
-
|
|
235
230
|
setImageNamePrefixTemplate();
|
|
236
231
|
setIngressHost();
|
|
237
232
|
initLogTabs();
|
|
@@ -687,18 +682,11 @@ such restriction.
|
|
|
687
682
|
* Checks if the "Execution log" tab should be shown
|
|
688
683
|
*/
|
|
689
684
|
function initLogTabs() {
|
|
690
|
-
if (lodash.get(ConfigService, '
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
if (servicesService.isEnabled(logForwarderService)) {
|
|
696
|
-
ctrl.navigationTabsConfig.push({
|
|
697
|
-
tabName: $i18next.t('functions:EXECUTION_LOG', { lng: lng }),
|
|
698
|
-
id: 'execution-log',
|
|
699
|
-
uiRoute: 'app.project.function.edit.execution-log'
|
|
700
|
-
});
|
|
701
|
-
}
|
|
685
|
+
if (lodash.get(ConfigService, 'nuclio.defaultProxyLogsSource', '') === 'elasticsearch') {
|
|
686
|
+
ctrl.navigationTabsConfig.push({
|
|
687
|
+
tabName: $i18next.t('functions:EXECUTION_LOG', { lng: lng }),
|
|
688
|
+
id: 'execution-log',
|
|
689
|
+
uiRoute: 'app.project.function.edit.execution-log'
|
|
702
690
|
});
|
|
703
691
|
}
|
|
704
692
|
}
|