in ui/src/app/assets/dialog/base-asset-links.directive.ts [67:122]
getAllResources() {
zip(
this.pipelineService.getPipelines(),
this.chartService.getAllCharts(),
this.dashboardService.getDashboards(),
this.pipelineElementService.getDataStreams(),
this.dataLakeService.getAllMeasurementSeries(),
this.filesService.getFileMetadata(),
this.adapterService.getAdapters(),
).subscribe(
([
pipelines,
charts,
dashboards,
streams,
measurements,
files,
adapters,
]) => {
this.pipelines = pipelines.sort((a, b) =>
a.name.localeCompare(b.name),
);
this.charts = charts.sort((a, b) =>
a.baseAppearanceConfig.widgetTitle.localeCompare(
b.baseAppearanceConfig.widgetTitle,
),
);
this.dashboards = dashboards.sort((a, b) =>
a.name.localeCompare(b.name),
);
this.dataSources = streams.sort((a, b) =>
a.name.localeCompare(b.name),
);
this.dataLakeMeasures = measurements.sort((a, b) =>
a.measureName.localeCompare(b.measureName),
);
this.files = files.sort((a, b) =>
a.filename.localeCompare(b.filename),
);
this.adapters = adapters.sort((a, b) =>
a.name.localeCompare(b.name),
);
this.allResources = [
...this.pipelines,
...this.charts,
...this.dashboards,
...this.dataSources,
...this.dataLakeMeasures,
...this.files,
...this.adapters,
];
this.afterResourcesLoaded();
},
);
}