Skip to content

add setup wizard & SETUP.md - #3

Merged
ognev-dev merged 6 commits into
mainfrom
dev
Mar 2, 2026
Merged

add setup wizard & SETUP.md#3
ognev-dev merged 6 commits into
mainfrom
dev

Conversation

@ognev-dev

Copy link
Copy Markdown
Contributor

No description provided.

@ognev-dev
ognev-dev merged commit d73a444 into main Mar 2, 2026
2 checks passed

@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: f54c835169

ℹ️ 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 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 address that feedback".

Comment thread cmd/setup_wizard/main.go
Comment on lines +259 to +262
if dbName != "" && dbName == creds.originalName {
return s, func() tea.Msg {
return msgDBCheckResult{created: false, err: nil}
}, false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Always run DB check for unchanged default name

This early return skips checkDB whenever the entered DB name equals originalName. In a fresh setup, originalName is populated from the sample placeholder, so pressing Enter on the default value bypasses DB creation/emptiness validation entirely and the wizard reports success even if the target database does not exist yet.

Useful? React with 👍 / 👎.

Comment thread cmd/setup_wizard/main.go
vals = append(vals,
yv("db", "name", testDBName),
yv("email", "driver", "test"),
yv("tracing", "enabled", "false"), // Обратите внимание: в вашем коде была строка "false"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Write tracing.enabled as a boolean in test configs

This passes a string literal ("false") into the YAML patcher, which writes it as a string node, while ConfigT.Tracing.Enabled is a bool. Generated test config files can then fail to unmarshal (or carry the wrong scalar type) when loaded by code expecting a boolean.

Useful? React with 👍 / 👎.

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.

1 participant