Skip to content

Commit 8e8c1e2

Browse files
committed
remove unused code
1 parent 5cc2b42 commit 8e8c1e2

File tree

4 files changed

+0
-34
lines changed

4 files changed

+0
-34
lines changed

packages/traceloop-sdk/src/lib/client/dataset/dataset.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
RowData,
88
DatasetPublishOptions,
99
CSVImportOptions,
10-
DatasetStats,
1110
ColumnResponse,
1211
RowResponse,
1312
DatasetVersionsResponse,
@@ -326,11 +325,6 @@ export class Dataset extends BaseDataset {
326325
}
327326
}
328327

329-
async getStats(): Promise<DatasetStats> {
330-
const response = await this.client.get(`/v2/datasets/${this.slug}/stats`);
331-
return await this.handleResponse(response);
332-
}
333-
334328
async getVersions(): Promise<DatasetVersionsResponse> {
335329
const response = await this.client.get(
336330
`/v2/datasets/${this.slug}/versions`,

packages/traceloop-sdk/src/lib/interfaces/dataset.interface.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ export interface CSVImportOptions {
7979
encoding?: string;
8080
}
8181

82-
export interface DatasetStats {
83-
rowCount: number;
84-
columnCount: number;
85-
size: number;
86-
lastModified: string;
87-
}
88-
8982
export interface DatasetVersion {
9083
version: string;
9184
publishedBy: string;

packages/traceloop-sdk/src/lib/node-server-sdk.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export {
1515
DatasetListResponse,
1616
DatasetPublishOptions,
1717
CSVImportOptions,
18-
DatasetStats,
1918
DatasetVersion,
2019
DatasetVersionsResponse,
2120
} from "./interfaces";

packages/traceloop-sdk/test/datasets-comprehensive.test.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -632,26 +632,6 @@ describe("Dataset API Comprehensive Tests", () => {
632632
}
633633
});
634634

635-
it("should get dataset statistics", async function () {
636-
if (!createdDatasetSlug) {
637-
this.skip();
638-
return;
639-
}
640-
641-
const dataset = await client.datasets.get(createdDatasetSlug);
642-
643-
try {
644-
const stats = await dataset.getStats();
645-
646-
assert.ok(typeof stats.rowCount === "number");
647-
assert.ok(typeof stats.columnCount === "number");
648-
console.log("✓ Retrieved dataset statistics");
649-
} catch (error) {
650-
// Stats endpoint might not be implemented yet
651-
console.log("✓ Dataset stats method exists (endpoint may be pending)");
652-
}
653-
});
654-
655635
it("should publish dataset", async function () {
656636
if (!createdDatasetSlug) {
657637
this.skip();

0 commit comments

Comments
 (0)