Skip to content

Conversation

@afscrome
Copy link
Contributor

Description

  • Make uninitalised parameters show up as warnings rather than errors to match the warning icon by the banner.
  • Fix KnownResourceStateStyles.Warn not matching the style defined in ResourceStateViewModel (warn vs warning)

Note, last is technically a breaking change as anyone who set the style to the string "warning" instead of usign KnownResourceStyles will now have their icons show up as white dots, rather than warning triangles. This breaking change could be mitigated by adding both warn and warning to ResourceStateViewModel.cs.

Fixes #11992

After:
image

Before:
image

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

- Make uninitalised parameters show up as warnings rather than errors to match the warning icon by the banner.

- Fix `KnownResourceStateStyles.Warn" not matching the style defiend in `ResourceStateViewModel` (`warn` vs `warning`)
@github-actions
Copy link
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 11994

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 11994"

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 13, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Oct 13, 2025
@afscrome afscrome added area-dashboard and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 13, 2025
@JamesNK
Copy link
Member

JamesNK commented Oct 14, 2025

I think error on the resource makes more sense. A resource is blocked until the error (missing params) is resolved. It's not something that you can ignore like a warning.

The different levels kind of makes sense:

  • A resource is broken so has an error
  • However, it is possible to use the rest of the dashboard and resources (assuming they don't have a reference to the broken resource) so the overall message bar level is a warning.

But maybe I'm over thinking it and a consistent warning icon would help people figure out the problem quicker.

@maddymontaquila @DamianEdwards @davidfowl Thoughts?

@DamianEdwards
Copy link
Member

@JamesNK I think your logic makes sense, but I see the appeal of aligning the level too. That said, I bump more on the mismatched naming, i.e. "Unresolved parameters" vs. "Value missing". I think doing something to align those would be far more impactful than changing the warning/error level of either.

@JamesNK
Copy link
Member

JamesNK commented Oct 15, 2025

I agree. Unresolved parameter is clearer than Value missing

@davidfowl
Copy link
Member

dashboard tests need updating?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-dashboard community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consistent icon for unresolved parameters

4 participants