Skip to content

Commit 5dbcd25

Browse files
authored
Remove commented code and update min reqd version (#22)
1 parent 4de0616 commit 5dbcd25

7 files changed

+18
-64
lines changed

dist/MANIFEST.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Hash: SHA512
99
"signedByOrgName": "parseable",
1010
"plugin": "parseable-parseable-datasource",
1111
"version": "1.0.2",
12-
"time": 1677758691010,
12+
"time": 1678091287733,
1313
"keyId": "7e4d0c6a708866e7",
1414
"files": {
1515
"LICENSE": "20b067f86de375aae6db0f283ab2e65de24d537733b89bd58432c101259d84cf",
1616
"CHANGELOG.md": "ba613d6f914b27dce9ace4d8c0cb074273c9eb6c536d8e7ac24c5ce6ae941fd0",
17-
"module.js.map": "528461b3e766c887e2a6800c1276bee7801224beb1feb497f323913b0a32163f",
18-
"plugin.json": "43b0538abbf9a312a5d212f11236a2cb6dc61f1f248c67838ee87cbd0a73e5d7",
17+
"module.js.map": "98ca780abf736bc47e7fbf2e5b3e534fca3acb7899bd6769f99fdff694477dc1",
18+
"plugin.json": "9aeb4b12dc39425b139e9818c0b9f4c30314de6387bf5c8802deb7e36eed6a57",
1919
"README.md": "030a05e0d49d3746ef272d53c99936e3b98e3219a1cac96ca1df48ddee475934",
2020
"img/configuration.png": "c545a51bcc88809b2b4f87aac517a7d27ad61281344b0485c9826370b915b4d8",
2121
"img/log-view-text.png": "8c6555af9c391cb1a8368c79b9bcc7386887beeea061e3483b0e020feec9d73d",
@@ -38,10 +38,10 @@ Hash: SHA512
3838
Version: OpenPGP.js v4.10.10
3939
Comment: https://openpgpjs.org
4040

41-
wrgEARMKAAYFAmQAkOMAIQkQfk0ManCIZucWIQTzOyW2kQdOhGNlcPN+TQxq
42-
cIhm5/XKAgdPQ1Nxylk8UlM/6cn/51cRH86D24N2LUTOTIvg9JIj02RcQ1Nz
43-
UpcZZ1kirEzB9LFrqLlZtTd1F5AbZZYdK1z1pwIJAYLnsOX5TA4mi0VrS0AS
44-
3I6IIrmywu2HxeMR0NjBYrGHnrgIB/SFwIKmV0zipaU1UNApomVcNdrS8MBg
45-
SS2x0S9F
46-
=LKAR
41+
wrkEARMKAAYFAmQFpBcAIQkQfk0ManCIZucWIQTzOyW2kQdOhGNlcPN+TQxq
42+
cIhm501IAgkB1WA0MsZjjYjtnXs7zy1JWvJ4jz79wCupBo3Q4bW6oJu50ArI
43+
uxDUCnCN8KxlGHFNiKSQeFlPdsgm9GNjKhgbf6MCCQFf7Cz902ksGnQSHlnA
44+
KmXHsXRNJYsI165Y9pJA5jQUQfDf71br0nPoggUtHU2cKpJvUrE9amF2zoHn
45+
hcEDcrB/Gw==
46+
=JuLg
4747
-----END PGP SIGNATURE-----

dist/module.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugin.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"info": {
99
"description": "Parseable is an open source, Kubernetes native, log storage and observability platform. This plugin allows you to visualize your Parseable logs in Grafana.",
1010
"author": {
11-
"name": "Parseable Team <[email protected]>"
11+
"name": "Parseable Team",
12+
"url": "https://parseable.io"
1213
},
1314
"keywords": ["datasource", "logging", "log observability", "log analytics", "parseable"],
1415
"logos": {
@@ -25,7 +26,7 @@
2526
{"name": "Log Dashboard", "path": "img/log-visualisation.png"}
2627
],
2728
"version": "1.0.2",
28-
"updated": "2023-03-02"
29+
"updated": "2023-03-06"
2930
},
3031
"routes": [
3132
{
@@ -40,7 +41,7 @@
4041
}
4142
],
4243
"dependencies": {
43-
"grafanaDependency": "^9.2.5",
44+
"grafanaDependency": "^9.0.0",
4445
"plugins": []
4546
}
4647
}
-454 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
83db49cb38e84d21d9408ba53d46e23f782f426a
1+
c79c4576d9db03184ff77ca9f0b67795ed1d9cd4

src/datasource.ts

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import {
44
DataQueryResponse,
55
DataSourceApi,
66
DataSourceInstanceSettings,
7-
// MutableDataFrame,
8-
// DataFrame,
97
toDataFrame,
10-
// FieldType,
11-
// guessFieldTypeFromValue,
128
} from '@grafana/data';
139
import { lastValueFrom, of } from 'rxjs';
1410
import { catchError, map } from 'rxjs/operators';
@@ -20,7 +16,6 @@ import {
2016
QueryEditorMode,
2117
StreamName,
2218
StreamList,
23-
//Fields,
2419
StreamSchemaResponse,
2520
StreamStatsResponse
2621
} from './types';
@@ -95,49 +90,6 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
9590
return getBackendSrv().fetch<T>(options);
9691
}
9792

98-
// arrayToDataFrame(array: any[]): DataFrame {
99-
// let dataFrame: MutableDataFrame = new MutableDataFrame();
100-
// if (array.length > 0) {
101-
// const fields = Object.keys(array[0]).map(field => {
102-
// return { name: field, type: guessFieldTypeFromValue(array[0][field]) };
103-
// });
104-
105-
// toDataFrame(array);
106-
// let timeFieldFound = false;
107-
// for (const field of fields) {
108-
// // Check for p_timestamp first
109-
// // because if it is present we want to use this field
110-
// // as we know the format (ISO8601)
111-
// if (field.name.toLowerCase() === 'p_timestamp') {
112-
// field.type = FieldType.time;
113-
// timeFieldFound = true;
114-
// break;
115-
// }
116-
// }
117-
// // fallback to other possible time fields
118-
// // if p_timestamp is not present
119-
// if (!timeFieldFound) {
120-
// for (const field of fields) {
121-
// if (field.name.toLowerCase() === 'time') {
122-
// field.type = FieldType.time;
123-
// } else if (field.name.toLowerCase() === 'datetime') {
124-
// field.type = FieldType.time;
125-
// } else if (field.name.toLowerCase() === 'timestamp') {
126-
// field.type = FieldType.time;
127-
// } else if (field.name.toLowerCase() === 'date') {
128-
// field.type = FieldType.time;
129-
// }
130-
// }
131-
// }
132-
133-
// dataFrame = new MutableDataFrame({ fields });
134-
// array.forEach((row, index) => {
135-
// dataFrame.appendRow(Object.values(row));
136-
// });
137-
// }
138-
// return dataFrame;
139-
// }
140-
14193
async listStreams(): Promise<StreamList[]> {
14294
return lastValueFrom(
14395
this.doFetch({

src/plugin.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"info": {
99
"description": "Parseable is an open source, Kubernetes native, log storage and observability platform. This plugin allows you to visualize your Parseable logs in Grafana.",
1010
"author": {
11-
"name": "Parseable Team <[email protected]>"
11+
"name": "Parseable Team",
12+
"url": "https://parseable.io"
1213
},
1314
"keywords": ["datasource", "logging", "log observability", "log analytics", "parseable"],
1415
"logos": {
@@ -40,7 +41,7 @@
4041
}
4142
],
4243
"dependencies": {
43-
"grafanaDependency": "^9.2.5",
44+
"grafanaDependency": "^9.0.0",
4445
"plugins": []
4546
}
4647
}

0 commit comments

Comments
 (0)