Skip to content

environment crud - #336

Merged
Cedric / ViaDézo1er (viadezo1er) merged 4 commits into
mainfrom
cedric/environment-crud
Aug 26, 2026
Merged

environment crud#336
Cedric / ViaDézo1er (viadezo1er) merged 4 commits into
mainfrom
cedric/environment-crud

Conversation

@viadezo1er

@viadezo1er Cedric / ViaDézo1er (viadezo1er) commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Environments are used by prompts (and datasets snapshots), but bt had no way of managing them.

Now bt environments has CRUD operations (create view list update delete).

I could remove --clear-description from bt environments update since --description '' is equivalent:

❯ bt environments update -h
Update an environment

Usage: bt environments update [OPTIONS] [SLUG]

Arguments:
  [SLUG]  Environment slug

Options:
      --slug <FLAG>                Environment slug
      --name <NAME>                New display name
      --new-slug <NEW_SLUG>        New environment slug
      --description <DESCRIPTION>  New environment description
      --clear-description          Remove the environment description

#330 uses environments so bt needs to be able to manage them.

@viadezo1er
Cedric / ViaDézo1er (viadezo1er) force-pushed the cedric/environment-crud branch 2 times, most recently from 87add70 to 9b601c3 Compare August 25, 2026 21:30
@viadezo1er Cedric / ViaDézo1er (viadezo1er) changed the title cedric/environment crud environment crud Aug 25, 2026
@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Latest downloadable build artifacts for this PR commit 95c69e6433ca:

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6cc73cd348

ℹ️ About Codex in GitHub

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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread src/environments/api.rs
Comment thread src/environments/mod.rs
Comment thread src/environments/mod.rs Outdated
Comment thread src/environments/mod.rs
creating an environment without passing a slug takes the name, normalizes it and uses it as slug
@viadezo1er
Cedric / ViaDézo1er (viadezo1er) merged commit efe277f into main Aug 26, 2026
18 checks passed
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.

2 participants