Skip to content

APP-16462: Add DatasetType to dataset proto#851

Merged
vpandiarajan20 merged 3 commits into
mainfrom
APP-16462-dataset-type-proto
May 18, 2026
Merged

APP-16462: Add DatasetType to dataset proto#851
vpandiarajan20 merged 3 commits into
mainfrom
APP-16462-dataset-type-proto

Conversation

@vpandiarajan20
Copy link
Copy Markdown
Member

@vpandiarajan20 vpandiarajan20 commented May 18, 2026

Summary

Adds a DatasetType enum (BINARY_DATA, SEQUENCE_DATA) to the dataset proto, plus:

  • Dataset.type field on the Dataset message (number 5)
  • optional DatasetType type field on CreateDatasetRequest (number 3)

optional on CreateDatasetRequest.type lets the server distinguish "client didn't send a type" from "client explicitly sent the zero value" — both currently map to BINARY_DATA for backwards compatibility, but the explicit-unset signal is useful for telemetry and future behavior.

Prerequisite for the sequence training datasets work tracked in epic APP-16329 — App-side handler changes follow in a separate PR once this lands and Go stubs are regenerated.

Test plan

  • Regenerate Go + JS stubs with the pinned toolchain
  • Verify generated Dataset.GetType() and CreateDatasetRequest.GetType() accessors exist with the expected types
  • App-side follow-up PR consuming the new field

🤖 Generated with Claude Code

Adds a DatasetType enum (BINARY_DATA, SEQUENCE_DATA) and a `type`
field to the Dataset message and CreateDatasetRequest. The new field
on CreateDatasetRequest is `optional` so server code can distinguish
"client didn't send a type" from "client explicitly sent BINARY_DATA".

Prerequisite for the sequence training datasets work (APP-16329).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vpandiarajan20
Copy link
Copy Markdown
Member Author

vpandiarajan20 commented May 18, 2026

Noting that we are using DATASET_TYPE_BINARY_DATA = 0 + inline buf:lint:ignore

@github-actions github-actions Bot added the safe to test committer is a member of this org label May 18, 2026
@vpandiarajan20 vpandiarajan20 added the ready-for-protos add this when you want protos to compile on every commit label May 18, 2026
@vpandiarajan20 vpandiarajan20 requested a review from njooma May 18, 2026 18:51
@vpandiarajan20 vpandiarajan20 removed the ready-for-protos add this when you want protos to compile on every commit label May 18, 2026
@vpandiarajan20 vpandiarajan20 added the ready-for-protos add this when you want protos to compile on every commit label May 18, 2026
@vpandiarajan20 vpandiarajan20 merged commit 37ceac9 into main May 18, 2026
7 of 10 checks passed
@vpandiarajan20 vpandiarajan20 deleted the APP-16462-dataset-type-proto branch May 18, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

protos-compiled ready-for-protos add this when you want protos to compile on every commit safe to test committer is a member of this org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants