Repository navigation
Set Dashboard AI disabled default to true - #16550
James Newton-King (JamesNK) merged 3 commits into
Conversation
Default Dashboard:AI:Disabled to true when unset and update integration test theory to pass explicit expected values.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16550Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16550" |
There was a problem hiding this comment.
Pull request overview
This PR changes the Aspire Dashboard’s configuration post-processing so that AI is disabled by default when Dashboard:AI:Disabled is not configured, and updates the related integration test to assert the new default behavior.
Changes:
- Default
DashboardOptions.AI.Disabledtotruewhen the config key is missing/unparseable. - Update
Configuration_DisableAI_EnsureValueSetOnOptionsto pass explicit expected values via theory data. - Adjust the AI-enabled assertion to align with the new default.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/Aspire.Dashboard/Configuration/PostConfigureDashboardOptions.cs |
Sets the default for options.AI.Disabled to true when configuration doesn’t provide a value. |
tests/Aspire.Dashboard.Tests/Integration/StartupTests.cs |
Updates the AI disablement test matrix to validate the new default and preserve explicit true/false behavior. |
Update Configuration_OptionsMonitor_DebugSession theory to pass explicit expected AI disabled values for null, true, and false config inputs.
Keep existing Dashboard:AI:Disabled option value when already set and only default to true when unset.
|
Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
|
4d0d740
into
microsoft:main
* Set Dashboard AI disabled default to true Default Dashboard:AI:Disabled to true when unset and update integration test theory to pass explicit expected values. * Parameterize debug session AI expectation Update Configuration_OptionsMonitor_DebugSession theory to pass explicit expected AI disabled values for null, true, and false config inputs. * Preserve preconfigured AI disabled value Keep existing Dashboard:AI:Disabled option value when already set and only default to true when unset.
Summary
Validation
fixes #13695