Skip to content

Commit 3363964

Browse files
fix(ui): update None Collector with Push Collector. (#2418)
* fix(ui): update None Collector with Push Collector. Signed-off-by: Electronic-Waste <[email protected]> * fix(ui): replace some remaining None MC. Signed-off-by: Electronic-Waste <[email protected]> --------- Signed-off-by: Electronic-Waste <[email protected]>
1 parent 5212949 commit 3363964

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pkg/ui/v1beta1/frontend/src/app/enumerations/metrics-collector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export enum CollectorKind {
44
TFEVENT = 'TensorFlowEvent',
55
PROMETHEUS = 'PrometheusMetric',
66
CUSTOM = 'Custom',
7-
NONE = 'None',
7+
PUSH = 'Push',
88
}

pkg/ui/v1beta1/frontend/src/app/models/experiment.k8s.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export type CollectorKind =
110110
| 'TensorFlowEvent'
111111
| 'PrometheusMetric'
112112
| 'Custom'
113-
| 'None';
113+
| 'Push';
114114

115115
export interface HttpGet {
116116
host?: string;

pkg/ui/v1beta1/frontend/src/app/models/trial.k8s.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type CollectorKind =
3737
| 'TensorFlowEvent'
3838
| 'PrometheusMetric'
3939
| 'Custom'
40-
| 'None';
40+
| 'Push';
4141

4242
export interface Objective {
4343
type: ObjectiveType;

pkg/ui/v1beta1/frontend/src/app/pages/experiment-creation/metrics-collector/metrics-collector.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<mat-option [value]="kind.TFEVENT">TensorFlow Event</mat-option>
1010
<mat-option [value]="kind.PROMETHEUS">Prometheus</mat-option>
1111
<mat-option [value]="kind.CUSTOM">Custom</mat-option>
12-
<mat-option [value]="kind.NONE">None</mat-option>
12+
<mat-option [value]="kind.PUSH">Push</mat-option>
1313
</mat-select>
1414
</mat-form-field>
1515

pkg/ui/v1beta1/frontend/src/app/services/experiment-form.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export class ExperimentFormService {
360360
collector: { kind },
361361
};
362362

363-
if (kind === 'StdOut' || kind === 'None') {
363+
if (kind === 'StdOut' || kind === 'Push') {
364364
delete metrics.source;
365365
return metrics;
366366
}

0 commit comments

Comments
 (0)