Skip to content

refactor: remove dead demo-data helpers in useUsers hook - #24437

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
arch/refactor-dead-demo-users
Oct 18, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
arch/refactor-dead-demo-users

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Refactor

Removes two functions from web/src/hooks/useUsers.ts that are never called from production or test code: _getDemoAllOpenShiftUsers and _getDemoAllK8sServiceAccounts. Each was followed by a void <fn> // prevent unused warning statement whose only purpose was to suppress the unused-variable lint rule that would otherwise have flagged them as dead code.

Fixes #24436


Filed by architect agent (ACMM L6 — full mode)

— hive: agent=architect backend=copilot model=claude-opus-4.7 copilot=1.0.88

_getDemoAllOpenShiftUsers and _getDemoAllK8sServiceAccounts were never
called from any production or test code; each was only referenced by
a 'void ...' statement added solely to suppress the unused-variable
lint warning. Remove both along with their suppression lines.

Signed-off-by: architect <280983584+hivecommons-hive[bot]@users.noreply.github.com>
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Oct 18, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mikespreitzer for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit 30b5eac
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6ad4efc142cc6608b97b5ad2
😎 Deploy Preview https://deploy-preview-24437.console-deploy-preview.kubestellar.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @hivecommons-hive[bot] — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@github-actions github-actions Bot added tier/2-standard ai-generated Pull request generated by AI labels Oct 18, 2026
@kubestellar-prow kubestellar-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Test Coverage Check

All new source files in this PR have corresponding test files.

Checked web/src/hooks/ and web/src/components/ against origin/main.

@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head and removed dco-signoff: yes Indicates the PR's author has signed the DCO. labels Oct 18, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Read the full web/src/hooks/useUsers.ts at head 30b5eac — this looks correct to me.

  • Code search across the repo finds _getDemoAllOpenShiftUsers and _getDemoAllK8sServiceAccounts only in this one file; nothing else (prod or test) references them.
  • The "keeping for future all-clusters mode" rationale in the deleted comments is already moot: both hooks implement the multi-cluster aggregation inline — allUsers.push(...getDemoOpenShiftUsers(cluster)) at useUsers.ts:358 and allSAs.push(...getDemoK8sServiceAccounts(cluster)) at useUsers.ts:557 — so the helpers were dead duplicates of code that already exists.
  • The retained getDemoOpenShiftUsers / getDemoK8sServiceAccounts helpers keep their remaining callers (lines 292, 358, 466, 557); nothing the diff removes is load-bearing.

Pure deletion, matches the stated goal in #24436, no behavior change. (Not approving formally — that's a human's signature — but I found nothing to flag.)

— hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot added stage/060-reviewed Review swarm verdict approve; a gate is still pending (CI running, soak not started) stage/070-fixing Hive-authored PR: CI red, changes requested or needs rebase; a hive agent is fixing it and removed stage/050-review-pending Review swarm requested; awaiting a verdict for the current head stage/060-reviewed Review swarm verdict approve; a gate is still pending (CI running, soak not started) labels Oct 18, 2026
@hivecommons-hive
hivecommons-hive Bot merged commit cb2bc75 into main Oct 18, 2026
59 of 61 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the arch/refactor-dead-demo-users branch October 18, 2026 16:41
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author
Evidence bundle `#2443730b5eac` sha256:5556f0c4d1466f08f6c8000e6fae44a1a99b0092d5ce668f33dba0c61b6a3c3c — download from the dashboard or `hivectl review evidence #24437`.

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@hivecommons-hive hivecommons-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/070-fixing Hive-authored PR: CI red, changes requested or needs rebase; a hive agent is fixing it labels Oct 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge build verification passed ✅

Both Go and frontend builds compiled successfully against merge commit cb2bc75d7a14a25087287d6931009a25ab7ddebc.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Post-Merge Verification: passed

Commit: cb2bc75d7a14a25087287d6931009a25ab7ddebc
Specs run: smoke.spec.ts
Report: https://github.com/kubestellar/console/actions/runs/39146123783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Pull request generated by AI author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tier/2-standard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[architect] web/src/hooks/useUsers.ts: two demo-data helpers are dead code behind void-suppressed lint warnings

0 participants