8000 Fix console logs menu buttons not updated with resource by JamesNK · Pull Request #7639 · dotnet/aspire · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix console logs menu buttons not updated with resource #7639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

JamesNK
Copy link
Member
@JamesNK JamesNK commented Feb 16, 2025

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?

Copy link
Contributor
@Copilot Copilot AI left a comment

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 ?? [],

8000
@davidfowl
Copy link
Member

baxkport plz

@JamesNK
Copy link
Member Author
JamesNK commented Feb 17, 2025

/backport to release/9.1

@JamesNK JamesNK merged commit acdf501 into main Feb 17, 2025
70 checks passed
@JamesNK JamesNK deleted the jamesnk/console-logs-update-menu branch February 17, 2025 03:07
Copy link
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.

2 participants
0