Improve IDE settings prompt formatting and default to yes#4705
Improve IDE settings prompt formatting and default to yes#4705anton-107 wants to merge 2 commits intoantonnek/auto-session-namesfrom
Conversation
|
Commit: b221e9b
16 interesting tests: 7 SKIP, 6 RECOVERED, 3 flaky
Top 20 slowest tests (at least 2 minutes):
|
d678d8d to
857404f
Compare
…4693) ## Summary - Replace `time.Now().UnixMilli()` with `nowMilli()` in testserver fake implementations (pipelines, catalogs, external locations, registered models) to guarantee strictly increasing millisecond timestamps - Add a `ruleguard` lint rule to prevent `time.Now().UnixMilli()` in `libs/testserver/` (except `fake_workspace.go` where the helper is defined) - Fix `CreatedAt`/`UpdatedAt` in create handlers to use the same timestamp value, matching real API behavior Fixes flaky test `TestAccept/bundle/resource_deps/pipelines_recreate/DATABRICKS_BUNDLE_ENGINE=direct` where a pipeline's `last_modified` and a job's `created_time` could collide to the same millisecond, causing `[UNIX_TIME_MILLIS][0]` vs `[UNIX_TIME_MILLIS][1]` index mismatch in test output. Example failure: https://github.com/databricks/cli/actions/runs/22710298364/job/65846540329 ## Test plan - [x] `TestAccept/bundle/resource_deps/pipelines_recreate` passes consistently (verified with `-count=3`) - [x] `make lintfull` passes with 0 issues - [x] `make test` passes (template test failures are pre-existing and unrelated) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
- Wrap settings JSON in { } with proper indentation for visual clarity
- Add blank lines around the settings block
- Default to yes (Y/n) when prompting to apply settings
- Shorten inline comments for less noise
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9869d22 to
b221e9b
Compare
simonfaltum
left a comment
There was a problem hiding this comment.
[Agent Swarm Review] Verdict: Approved
- 0 Critical
- 0 Major
- 0 Gap
- 2 Nit
- 1 Suggestion
Good UX improvement for the IDE settings prompt. Two nits: the yes/no handling is narrower than the standard pattern, and the gorule/testserver changes are unrelated to the prompt improvements.
| func promptUserForUpdate(ctx context.Context, ide, connectionName string, missing *missingSettings) (bool, error) { | ||
| question := fmt.Sprintf( | ||
| "The following settings will be applied to %s for '%s':\n%s\nApply these settings?", | ||
| "The following settings will be applied to %s for '%s':\n\n%s\n\nApply these settings?", |
There was a problem hiding this comment.
[Agent Swarm Review] [Nit]
The change from cmdio.AskYesOrNo to cmdio.Ask with manual [Y/n] handling means only exact "y" matches are accepted. strings.EqualFold(strings.TrimSpace(ans), "y") or also accepting "yes" would be more robust.
| @@ -0,0 +1,14 @@ | |||
| package gorules | |||
There was a problem hiding this comment.
[Agent Swarm Review] [Nit]
This new gorule and the testserver timestamp changes are unrelated to the IDE settings prompt improvements. Consider splitting into a separate PR for cleaner review.
There was a problem hiding this comment.
Seems indeed unrelated. The output changes are good though
Summary
{ }with proper indentation so it stands out visually[Y/n]) — pressing Enter accepts// Global settinginstead of// Global setting that affects all remote ssh connections)Stacked on #4701.
Test plan
🤖 Generated with Claude Code