Skip to content

Merge export_dataset into get_dataset with include_cases parameter#1792

Merged
Kludex merged 5 commits intomainfrom
rename-export-dataset-to-import-dataset
Mar 23, 2026
Merged

Merge export_dataset into get_dataset with include_cases parameter#1792
Kludex merged 5 commits intomainfrom
rename-export-dataset-to-import-dataset

Conversation

@Kludex
Copy link
Copy Markdown
Member

@Kludex Kludex commented Mar 23, 2026

Summary

  • Remove the separate export_dataset method and merge its functionality into get_dataset
  • get_dataset now accepts an include_cases parameter (defaults to True) that controls whether to fetch cases via the /export/ endpoint or just metadata
  • When type arguments (input_type, etc.) are passed, get_dataset returns a typed pydantic_evals.Dataset
  • Update all docs, stubs, and tests to match

cc @dmontagu

🤖 Generated with Claude Code

The name `export_dataset` was confusing - from the caller's perspective,
they are importing a dataset from Logfire into their local environment,
not exporting it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 23, 2026

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0e11af7
Status: ✅  Deploy successful!
Preview URL: https://7f64a915.logfire-docs.pages.dev
Branch Preview URL: https://rename-export-dataset-to-imp.logfire-docs.pages.dev

View logs

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Instead of separate `get_dataset` (metadata only) and `export_dataset`
(with cases) methods, unify into a single `get_dataset` that accepts
an `include_cases` boolean (defaults to True) and optional type
arguments for returning a typed `pydantic_evals.Dataset`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Kludex Kludex changed the title Rename export_dataset to import_dataset Merge export_dataset into get_dataset with include_cases parameter Mar 23, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

Kludex and others added 3 commits March 23, 2026 14:43
… version

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
….md example

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Kludex Kludex merged commit f036a5d into main Mar 23, 2026
16 checks passed
@Kludex Kludex deleted the rename-export-dataset-to-import-dataset branch March 23, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant