Repository navigation
feat(datasets): manage datasets with the datasets commands and apply - #309
Open
nicolastakashi wants to merge 1 commit into
Open
nicolastakashi wants to merge 1 commit into
nicolastakashi wants to merge 1 commit into
Conversation
nicolastakashi
force-pushed
the
nicolastakashi/dataset-commands
branch
3 times, most recently
from
October 21, 2026 19:16
d110410 to
36fb492
Compare
nicolastakashi
marked this pull request as ready for review
October 21, 2026 19:26
Add `datasets list|get|create|update|delete` (experimental) and support `kind: Dash0Dataset` in `apply`, including `--dry-run` and `--since`. - The slug is `spec.slug`, or `dash0.com/id` when absent; it is required. - `create` and `apply` preflight with a GET: PUT on hit, POST on 404. `update` fails with "not found" instead of creating a dataset. - `spec.permissions` is sent in the create call. - `delete` and `apply --since` deletions need `--force` in agent mode. - `apply` applies datasets first; `--since` deletes them last. - Bump dash0-api-client-go to v1.26.0.
nicolastakashi
force-pushed
the
nicolastakashi/dataset-commands
branch
from
October 21, 2026 19:31
36fb492 to
f72e7e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Users want to manage datasets as code from the CLI and CI, like every other asset.
What
datasetscommands:list,get,create,update,delete.applyacceptskind: Dash0Dataset, including--dry-runvalidation.deletestates the 30-day restore window and the telemetry retention in its prompt.--forceis idempotent. Deletingdefaultsurfaces the server's 400.apply --sincedeletes a dataset removed from git, like any other kind.dash0-api-client-gobumped to v1.26.0.apiVersion: dash0.com/v1alpha1withspec.retention,spec.privacy, andspec.processing, and notelemetryFilters. A missing or unknownapiVersionfails before any API call.update --dry-runpreviews a partial file merged onto the stored dataset, because an omitted field keeps its stored value.