Skip to content

Revert "Update parent resource state from replicas (#18642)" - #19545

Merged
Adam Ratzman (adamint) merged 1 commit into
microsoft:mainfrom
adamint:adamint-revert-pr-18642
Aug 20, 2026
Merged

Adam Ratzman (adamint) merged 1 commit into
microsoft:mainfrom
adamint:adamint-revert-pr-18642

Conversation

@adamint

Copy link
Copy Markdown
Member

Description

Reverts #18642 in full, restoring the dashboard's previous parent resource state behavior.

The revert preserves the resource subscription race fix from #19534, which landed afterward in the same code path.

Validation:

  • Aspire.Dashboard.Tests: 1,540 passed, 0 failed
  • Verified against current upstream/main with no merge conflicts

Fixes # (issue)

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

This reverts commit 5639ea2.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: c76af9f5-7190-41f8-a761-70ba462e9e55
Copilot AI balanced review requested due to automatic review settings August 20, 2026 18:01
@github-actions

Copy link
Copy Markdown
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/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19545

Or

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

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.

Pull request overview

Reverts dashboard parent-state projection from replicas while retaining subscriber race synchronization.

Changes:

  • Removes replica-derived parent state logic and helpers.
  • Removes associated tests and stress scenario.
  • Restores direct AppHost resource snapshots.
Show a summary per file
File Description
src/Aspire.Dashboard/ServiceClient/DashboardClient.cs Removes replica state projection.
src/Aspire.Dashboard/Model/ResourceViewModel.cs Removes state projection helpers.
tests/Aspire.Dashboard.Tests/Model/DashboardClientTests.cs Removes replica behavior tests and fakes.
tests/Aspire.Dashboard.Tests/Model/ResourceViewModelTests.cs Removes projection cloning test.
playground/Stress/Stress.AppHost/ReplicaStateStressResource.cs Deletes replica stress scenario.
playground/Stress/Stress.AppHost/AppHost.cs Removes stress scenario registration.

Review details

  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@adamint
Adam Ratzman (adamint) merged commit 691e8ac into microsoft:main Aug 20, 2026
754 of 758 checks passed
@github-actions github-actions Bot added this to the 13.6 milestone Aug 20, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 20, 2026
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