Skip to content

feat(datasets)!: support replacing and clearing row tags - #486

Open
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit into
mainfrom
abhi/sdk-956-auto-bt-parity-for-pr-26086
Open

Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit into
mainfrom
abhi/sdk-956-auto-bt-parity-for-pr-26086

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

🤖 This text was AI-generated.

Dataset updates previously combined incoming tags with the row's existing tags, so an empty list could not clear them. The update command and its add and refresh aliases now replace tags when the field is present. Supply a list of unique strings, use [] to clear all tags, or omit the field to preserve the current tags.

A tag-only update needs just the row ID and the new list.

bt datasets update my-dataset --rows '[{"id":"case-1","tags":["reviewed"]}]'

BREAKING CHANGE: To keep existing tags while adding new ones, pass the complete list of tags you want the row to have.

Refs: SDK-956
Upstream: https://github.com/braintrustdata/braintrust/pull/26086

> 🤖 **This text was AI-generated.**

Dataset updates previously combined incoming tags with the row's
existing tags, so an empty list could not clear them. The update command
and its add and refresh aliases now replace tags when the field is
present. Supply a list of unique strings, use [] to clear all tags, or
omit the field to preserve the current tags.

A tag-only update needs just the row ID and the new list.

```sh
bt datasets update my-dataset --rows '[{"id":"case-1","tags":["reviewed"]}]'
```

BREAKING CHANGE: To keep existing tags while adding new ones, pass the
complete list of tags you want the row to have.

Refs: SDK-956
Upstream: braintrustdata/braintrust#26086
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T23:11:41.853806Z d703619 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Latest downloadable build artifacts for this PR commit d703619819eb:

Available artifact names
  • artifacts-build-global
  • artifacts-build-local-x86_64-unknown-linux-gnu
  • artifacts-build-local-x86_64-unknown-linux-musl
  • artifacts-plan-dist-manifest
  • artifacts-build-local-x86_64-pc-windows-msvc
  • artifacts-build-local-aarch64-apple-darwin
  • artifacts-build-local-aarch64-pc-windows-msvc
  • artifacts-build-local-x86_64-apple-darwin
  • artifacts-build-local-aarch64-unknown-linux-gnu
  • cargo-dist-cache

This branch has not been deployed

No deployments
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