Skip to content

fix(ui): omit unconfigured dashboard hosts - #1265

Closed
scttbnsn wants to merge 1 commit into
dev/v1.6from
fix/v1.6-dashboard-hosts
Closed

scttbnsn wants to merge 1 commit into
dev/v1.6from
fix/v1.6-dashboard-hosts

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

The dashboard invented a connected Local host at /var/run/docker.sock whenever there were no non-agent watchers. That also affected agent-only deployments with the local watcher disabled.

Build host rows only from configured watchers and agents, matching the Hosts page. Existing host addresses, connection states, container counts and grouping complexity stay unchanged. Stale local container inventory does not create a host.

Four new regression cases failed before the fix. Tests also cover the mounted dashboard, configured Local rows and agent-only fleets. All 352 dashboard/host tests and TypeScript checking pass using this release line's locked dependencies. The full normal pre-push gate passed in 354.49 seconds, including configured app/UI coverage and both builds. Docker and post-fix browser verification are not claimed.

Draft while earlier PRs use the limited source-review slots. No review or release gate is bypassed.

Changelog

  • 🐛 Fixed dashboard host generation to use only configured non-agent watchers.
  • 🗑️ Removed the fallback Local host at /var/run/docker.sock.
  • ✨ Added coverage for configured Local hosts, empty watcher configurations, and agent-only fleets.
  • 🔧 Preserved host addresses, connection states, container counts, and grouping behavior.

Validation

  • 352 dashboard/host tests passed.
  • TypeScript checking passed.
  • Full pre-push gate passed.

Concerns

  • Docker and post-fix browser verification were not performed.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: f27e6756-9406-412e-aa1c-a61cb93752b7

📥 Commits

Reviewing files that changed from the base of the PR and between b52da9c and 6776134.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (3)
  • ui/src/views/dashboard/useDashboardComputed.ts
  • ui/tests/views/DashboardView.spec.ts
  • ui/tests/views/dashboard/useDashboardComputed.spec.ts

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

buildWatcherServerRows no longer creates a fallback Local row when no non-agent watchers exist. The dashboard now shows Local only when the local watcher is configured. Tests cover empty watcher state, configured local state, agent-only fleets, and existing container grouping behavior.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 67761

The dashboard change preserves configured host behavior and removes invented Local rows, with targeted coverage for empty, Local, agent-only, and grouped deployments.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vercel

vercel Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Sep 18, 2026 10:53pm UTC
drydockdemo-website Ready Ready Preview Sep 18, 2026 10:53pm UTC

@codecov

codecov Bot commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Checked the exact-head diff and completed CodeRabbit review. Configured hosts remain intact; empty and agent-only inventories no longer invent a Local host. Existing full-gate evidence covers this head. Image security must still pass before merge.

@scttbnsn
scttbnsn enabled auto-merge (squash) September 19, 2026 00:20
@scttbnsn

scttbnsn commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Closing without merging. 1.6.1 shipped on October 2 and the 1.6 line takes no further releases; it retires when 1.7.0 goes GA. This fix ships in 1.7 and is already on dev/v1.8.

@scttbnsn scttbnsn closed this Oct 3, 2026
auto-merge was automatically disabled October 3, 2026 12:59

Pull request was closed

@scttbnsn
scttbnsn deleted the fix/v1.6-dashboard-hosts branch October 3, 2026 13:04

This branch was successfully deployed

2 active deployments
Preview – drydock-website — 67761348 Deployed Sep 18, 2026 by vercel[bot]
Preview – drydockdemo-website — 67761348 Deployed Sep 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants