Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix console logs menu buttons not updated with resource#7639

Merged
JamesNK merged 1 commit into
mainfrom
jamesnk/console-logs-update-menu
Feb 17, 2025
Merged

Fix console logs menu buttons not updated with resource#7639
JamesNK merged 1 commit into
mainfrom
jamesnk/console-logs-update-menu

Conversation

@JamesNK

@JamesNK JamesNK commented Feb 16, 2025

Copy link
Copy Markdown
Member

Description

A recent regression caused the console logs page to not update the menu buttons when the resource changes. This means resource commands didn't change with the resource.

Fix + add test

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?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

tests/Aspire.Dashboard.Components.Tests/Pages/ConsoleLogsTests.cs:253

  • [nitpick] The variable name 'testResource' is ambiguous. It should be renamed to 'initialTestResource' and 'updatedTestResource' for clarity.
var testResource = ModelTestHelpers.CreateResource(

tests/Shared/DashboardModel/ModelTestHelpers.cs:42

  • The 'commands' parameter should be checked for null before assigning to 'Commands'. Use 'commands ?? ImmutableArray.Empty' to avoid potential NullReferenceException.
Commands = commands ?? [],

@davidfowl

Copy link
Copy Markdown
Contributor

baxkport plz

@JamesNK

JamesNK commented Feb 17, 2025

Copy link
Copy Markdown
Member Author

/backport to release/9.1

@JamesNK JamesNK merged commit acdf501 into main Feb 17, 2025
@JamesNK JamesNK deleted the jamesnk/console-logs-update-menu branch February 17, 2025 03:07
@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/9.1: https://github.com/dotnet/aspire/actions/runs/13362019979

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants