Skip to content

fix: clippy collapsible_if and rustfmt trailing comma#78

Merged
mikemiles-dev merged 1 commit into
mainfrom
fix/clippy-collapsible-if-azure-endpoint
Jun 7, 2026
Merged

fix: clippy collapsible_if and rustfmt trailing comma#78
mikemiles-dev merged 1 commit into
mainfrom
fix/clippy-collapsible-if-azure-endpoint

Conversation

@mikemiles-dev

Copy link
Copy Markdown
Owner

CI runs clippy with -Dwarnings and rejects the collapsible_if introduced in the Azure OpenAI endpoint change, and the trailing comma after a match arm block introduced in the Discord webhook format change.

- Bump version to 0.2.2-alpha.
- CI green-up: collapse the nested if/if let in src/api/ai.rs (introduced
  with Azure OpenAI support) into a let-chain so cargo clippy
  --all-targets --all-features stops failing under RUSTFLAGS=-Dwarnings;
  drop the trailing comma after the Discord match arm in
  src/executor/notifications.rs so cargo fmt --check passes.
- Refresh docs to cover everything merged since v0.2.1-alpha: Azure
  OpenAI / AI Foundry (custom base URL + api-version), the
  max_completion_tokens switch for gpt-5/o-series, the Discord webhook
  format, the Playwright e2e suite, and the dependabot bumps. README
  adds Azure to the AI provider list and Discord to the notifications
  list. DEPLOYMENT documents KRONFORCE_AI_BASE_URL and
  KRONFORCE_AI_API_VERSION. TESTING points at e2e/README.md.
- perf(db): new migration 0022_execution_perf_indexes.sql adds
  idx_executions_created_at and idx_executions_finished_at. The Runs
  page orders by created_at and the periodic retention purger filters
  on finished_at, but neither column was indexed. At ~84k rows on the
  demo deployment this means a full table sort on every Runs page load
  and a full scan on every purge tick. Query plans verified locally to
  switch to index scans for both.
@mikemiles-dev mikemiles-dev force-pushed the fix/clippy-collapsible-if-azure-endpoint branch from 62d60c7 to 635aba7 Compare June 7, 2026 20:25
@mikemiles-dev mikemiles-dev merged commit b7f57b6 into main Jun 7, 2026
4 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.

1 participant