Skip to content

Commit

Permalink
[STREAMPIPES-529] Filter pipelines for availability of measurement sc…
Browse files Browse the repository at this point in the history
…hema
  • Loading branch information
dominikriemer committed Apr 11, 2022
1 parent d26d88e commit 2070ad5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,18 @@ export class AddVisualizationDialogComponent implements OnInit, AfterViewInit {
loadVisualizablePipelines() {
zip(this.dataExplorerService.getAllPersistedDataStreams(), this.dataLakeRestService.getAllMeasurementSeries())
.subscribe(res => {
const availableVisualizablePipelines = [];
const visualizablePipelines = res[0];
visualizablePipelines.forEach(p => {
const measurement = res[1].find(m => {
return m.measureName === p.measureName;
});
p.eventSchema = measurement.eventSchema;
if (measurement) {
p.eventSchema = measurement.eventSchema;
availableVisualizablePipelines.push(p);
}
});
this.visualizablePipelines = this.sortPipeline(visualizablePipelines);
this.visualizablePipelines = this.sortPipeline(availableVisualizablePipelines);
});
}

Expand Down

0 comments on commit 2070ad5

Please sign in to comment.