Skip to content

Conversation

Monkeychip
Copy link
Contributor

@Monkeychip Monkeychip commented Aug 12, 2025

  • Ent tests pass

Description

The DR secondary view failed to load after PR #30425. The error occurred because of the addition of the async keyword to the afterModel hook. My best guess as to why this breaks the DR Secondary transition is that async causes Ember to wait for any awaited promises before completing the route transition. For most routes, this is fine, but DR secondary is sensitive to timing, and the transition hangs/fails silently, breaking the transition.

Note: The addition of async on the afterModel hook does not cause a failure for Performance Secondaries.

To repro:

  • Confirming it was the Posthog pr: checkout commit d7bb0adfe0 (the commit right before the Posthog PR), create a DR secondary, and navigate to the UI view. Then, check out the Posthog commit 689ede2da5 and follow the same steps. It works on the commit before, and fails on the regression commit.
  • To reproduce the fix: on this PR, add the async before the afterModel hook on the cluster route, and the DR secondary will fail to transition. Remove async, and it will transition. This shows that it's not the this.analytics service check that's breaking the flow, it's the async keyword added to the afterModel hook.

Failure:
image

After fix:
image

@Monkeychip Monkeychip added this to the 1.20.3 milestone Aug 12, 2025
@Monkeychip Monkeychip added ui bug Used to indicate a potential bug backport/1.20.x labels Aug 12, 2025
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 12, 2025
Copy link

vercel bot commented Aug 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
vault-ui Ready Preview Comment Aug 12, 2025 7:04pm

Copy link

github-actions bot commented Aug 12, 2025

CI Results:
All Go tests succeeded! ✅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just a clean up of this file. No tests were removed. And the only test added was to check that the analytics service is run on a dr primary (so the opposite test of what we check for on the dr secondary).

@Monkeychip Monkeychip marked this pull request as ready for review August 12, 2025 19:03
@Monkeychip Monkeychip requested review from a team as code owners August 12, 2025 19:03
@Monkeychip Monkeychip requested a review from roh-a August 12, 2025 19:03
Copy link

Build Results:
All builds succeeded! ✅

@Monkeychip Monkeychip merged commit b0d8f4f into main Aug 13, 2025
47 of 57 checks passed
@Monkeychip Monkeychip deleted the ui/VAULT-38272/fix-dr-secondary-view2 branch August 13, 2025 17:16
Monkeychip added a commit that referenced this pull request Aug 14, 2025
* test coverage and the fix

* not working

* fix failing test

* fix another test

* changelog

* the correct changelog number
Monkeychip added a commit that referenced this pull request Aug 14, 2025
* UI Bug fix: Fix DR Secondary view (#31478)

* test coverage and the fix

* not working

* fix failing test

* fix another test

* changelog

* the correct changelog number

* selector backporting things
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants