@axiom-lattice/gateway 2.1.36 → 2.1.37
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +10 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/controllers/metrics-configs.ts +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiom-lattice/gateway",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.37",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"pino-roll": "^3.1.0",
|
|
37
37
|
"redis": "^5.0.1",
|
|
38
38
|
"uuid": "^9.0.1",
|
|
39
|
-
"@axiom-lattice/core": "2.1.
|
|
40
|
-
"@axiom-lattice/protocols": "2.1.
|
|
41
|
-
"@axiom-lattice/queue-redis": "1.0.
|
|
39
|
+
"@axiom-lattice/core": "2.1.31",
|
|
40
|
+
"@axiom-lattice/protocols": "2.1.18",
|
|
41
|
+
"@axiom-lattice/queue-redis": "1.0.17"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/jest": "^29.5.14",
|
|
@@ -701,13 +701,19 @@ export async function getDataSources(
|
|
|
701
701
|
const semanticConfig = config.config as SemanticMetricsServerConfig;
|
|
702
702
|
|
|
703
703
|
const client = new SemanticMetricsClient(semanticConfig);
|
|
704
|
-
const
|
|
704
|
+
const allDatasources = await client.getDataSources();
|
|
705
|
+
|
|
706
|
+
// Filter datasources by selectedDataSources if configured
|
|
707
|
+
const selectedIds = semanticConfig.selectedDataSources || [];
|
|
708
|
+
const filteredDatasources = selectedIds.length > 0
|
|
709
|
+
? allDatasources.filter(ds => selectedIds.includes(String(ds.id)))
|
|
710
|
+
: allDatasources;
|
|
705
711
|
|
|
706
712
|
return {
|
|
707
713
|
success: true,
|
|
708
714
|
message: "Data sources retrieved successfully",
|
|
709
715
|
data: {
|
|
710
|
-
datasources,
|
|
716
|
+
datasources: filteredDatasources,
|
|
711
717
|
},
|
|
712
718
|
};
|
|
713
719
|
} catch (error) {
|