Skip to content

feat: remove the experiment flag for the sandbox commands and add new partner template IDs#512

Open
vegeris wants to merge 5 commits intomainfrom
evegeris-rm-sandbox-experiment
Open

feat: remove the experiment flag for the sandbox commands and add new partner template IDs#512
vegeris wants to merge 5 commits intomainfrom
evegeris-rm-sandbox-experiment

Conversation

@vegeris
Copy link
Copy Markdown
Contributor

@vegeris vegeris commented Apr 28, 2026

Changelog

This is effectively the release of the sandbox commands and should be highlighted in the changelog:

slack sandbox create
slack sandbox delete
slack sandbox list

Summary

This PR removes the experiment flag currently required to run the sandbox commands

Testing

Instead of:

lack sandbox list --experiment=sandboxes

We can run:

lack sandbox list

Requirements

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 20.00000% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.27%. Comparing base (d2ab928) to head (508df39).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/prompts/team_select.go 0.00% 7 Missing ⚠️
cmd/sandbox/sandbox.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #512   +/-   ##
=======================================
  Coverage   71.26%   71.27%           
=======================================
  Files         222      222           
  Lines       18682    18665   -17     
=======================================
- Hits        13314    13303   -11     
+ Misses       4187     4184    -3     
+ Partials     1181     1178    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread cmd/sandbox/sandbox.go
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

At line 80 there was a recommendation to use charm for the 'Choose a Slack team where your email address matches...' info message; is charm stable yet, such that we can make that change?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Huh (Charm) is now the default and only prompt library. So, if you're using a prompt then you're now using Charm's Huh :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yea perhaps we get rid of that comment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah, gotcha :) Updated to use the 'Help' config for the prompt instead of a separate log statement

@vegeris vegeris marked this pull request as ready for review April 29, 2026 14:30
@vegeris vegeris requested a review from a team as a code owner April 29, 2026 14:30
Comment thread cmd/sandbox/create.go
"it-incident-management": 4,
"customer-support": 5,
"sales": 6,
"marketing": 7,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This PR also adds mappings for the new partner templates

Copy link
Copy Markdown
Member

@mwbrooks mwbrooks Apr 29, 2026

Choose a reason for hiding this comment

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

Thanks @vegeris. In the future, it would be better for this to be a separate PR so that it can stand out in the GitHub Release Notes and Changelog.

suggestion: Can you please update the Changelog section of this PR Description so that the documentation team knows to document it on docs.slack.dev.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

suggestion: @vegeris Can you please add these to the Long Description so that developers can discover the partner template Ids that are available to use?

Copy link
Copy Markdown
Contributor Author

@vegeris vegeris Apr 30, 2026

Choose a reason for hiding this comment

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

I wasn't sure if we would want to highlight it in the Long Description as the grand majority of users would be regular non-partner developers; for the list command for example, we only add the 'sandbox type' label to partner sandboxes to reduce visual noise for regular sandboxes

document it on docs.slack.dev

Speaking of, I'd like to double check the process for getting new commands documented. My current assumption was that we would have a brief announcement in the Changelog through this PR and that once these changes are included in a release, that I would post in #api-docs to get the commands documented on docs.slack.dev?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also, if there's a strong preference I can apply the changes unrelated to removing the experiment flag first and then come back to this PR

@vegeris vegeris added the semver:minor Use on pull requests to describe the release version increment label Apr 29, 2026
@srtaalej srtaalej added the experiment Experimental feature accessed behind the --experiment flag or toggle label Apr 29, 2026
@mwbrooks mwbrooks added this to the Next Release milestone Apr 29, 2026
@mwbrooks mwbrooks changed the title feat: Remove the experiment flag for the sandbox commands feat: remove the experiment flag for the sandbox commands Apr 29, 2026
Copy link
Copy Markdown
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

🙏🏻 Thanks for removing the experiment @vegeris

✏️ I've left a few change request suggestions. In the future, I'd encourage the PR to only remove the experiment and add other additions in separate PRs. It allows both the documentation team to spot changes easier and our GitHub Release Notes (based on PR titles) to communicate the changes to our developers.

Comment thread cmd/sandbox/create.go
"it-incident-management": 4,
"customer-support": 5,
"sales": 6,
"marketing": 7,
Copy link
Copy Markdown
Member

@mwbrooks mwbrooks Apr 29, 2026

Choose a reason for hiding this comment

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

Thanks @vegeris. In the future, it would be better for this to be a separate PR so that it can stand out in the GitHub Release Notes and Changelog.

suggestion: Can you please update the Changelog section of this PR Description so that the documentation team knows to document it on docs.slack.dev.

Comment thread cmd/sandbox/create.go
"it-incident-management": 4,
"customer-support": 5,
"sales": 6,
"marketing": 7,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

suggestion: @vegeris Can you please add these to the Long Description so that developers can discover the partner template Ids that are available to use?

Comment thread cmd/sandbox/sandbox.go
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Huh (Charm) is now the default and only prompt library. So, if you're using a prompt then you're now using Charm's Huh :)

Comment thread internal/slackerror/errors.go Outdated
ErrDotEnvFileRead = "dotenv_file_read_error"
ErrDotEnvFileWrite = "dotenv_file_write_error"
ErrDotEnvVarMarshal = "dotenv_var_marshal_error"
ErrDomainLong = "domain_long"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

suggestion: Can this please be prefixed with ErrSandboxDomainLong = "sandbox_domain_long" so that we know it's part of the Sandbox error codes. You'll need to reorganize it alphabetically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

💯 Updated this error code and alphabetized the sandbox error codes added previously!

@mwbrooks mwbrooks changed the title feat: remove the experiment flag for the sandbox commands feat: remove the experiment flag for the sandbox commands and add new partner template IDs Apr 29, 2026
@mwbrooks mwbrooks added enhancement M-T: A feature request for new functionality changelog Use on updates to be included in the release notes labels Apr 29, 2026
@vegeris vegeris requested a review from mwbrooks April 30, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog Use on updates to be included in the release notes enhancement M-T: A feature request for new functionality experiment Experimental feature accessed behind the --experiment flag or toggle semver:minor Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants