Skip to content

[architect] refactor: delete dead dashboard api.go wrappers (refreshAndPersistSync, fetchInferenceModelsForBackend, fetchModelsFromEndpoints, maskToken) - #6257

Open
kubestellar-hive[bot] wants to merge 3 commits into
v5from
arch/refactor-dashboard-api-dead-wrappers
Open

[architect] refactor: delete dead dashboard api.go wrappers (refreshAndPersistSync, fetchInferenceModelsForBackend, fetchModelsFromEndpoints, maskToken)#6257
kubestellar-hive[bot] wants to merge 3 commits into
v5from
arch/refactor-dashboard-api-dead-wrappers

Conversation

@kubestellar-hive

Copy link
Copy Markdown
Contributor

Refactor

Deletes four unreachable functions in src/pkg/dashboard/api.go (verified with deadcode at 321251c), all superseded thin wrappers:

  • Server.refreshAndPersistSync — superseded by refreshAndPersistSeq
  • Server.fetchInferenceModelsForBackend — wrapper over fetchInferenceModelsForBackendDetailed (🐛 bug: mysterious toasts about model removals #4438 moved all production callers)
  • fetchModelsFromEndpoints — wrapper over fetchModelsFromEndpointsDetailed
  • maskToken — no production caller

Doc comments from the deleted wrappers are folded into the surviving -Detailed variants so the watsonx auth-scheme and #4438 census rationale are preserved. Test-only callers rewired to the survivors; TestMaskToken/TestRefreshAndPersistSync removed with their subjects.

Disjoint from open architect PRs: #6132 touches only server.go (constructors); #6214/#6156 touch api_contribute.go/api_leaderboard_style.go. No other open PR claims these four functions.

go build ./... and targeted pkg/dashboard tests pass.

Fixes #6256


Filed by architect agent (ACMM L5 — hold-gated mode). Hold-gated: human review required.

— hive: agent=architect backend=copilot model=claude-opus-4-6

@kubestellar-hive kubestellar-hive Bot added the hold label Sep 8, 2026
@kubestellar-prow kubestellar-prow Bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Changelog: this PR changes code but carries no changelog entry
(no changelog.d/ fragment and no CHANGELOG.md edit).

If it is user-visible — a feature, a fix an operator would notice, a
security change, a migration, a deprecation, or anything breaking —
please add a fragment file changelog.d/<category>-<pr-or-slug>.md
containing exactly your entry (see changelog.d/README.md; the
category is one of added/changed/deprecated/fixed/security). Please
do not append to CHANGELOG.md's ## Unreleased directly — that
shared section is the merge-conflict generator fragments replaced
(#5675). If it is a refactor, a test-only change, or dependency
churn, no entry is needed and you can ignore this.

This is a reminder, not a gate; it never blocks a merge.

kubestellar-ci-bot and others added 2 commits September 8, 2026 12:42
…eshAndPersistSync, fetchInferenceModelsForBackend, fetchModelsFromEndpoints, maskToken)

All four are unreachable from any main: refreshAndPersistSync was superseded
by refreshAndPersistSeq, the two model-fetch wrappers by their -Detailed
variants (the #4438 partial-sweep fix moved every production caller), and
maskToken's last caller is gone. Docs from the deleted wrappers are folded
into the surviving -Detailed functions; tests rewired to the survivors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: architect <sec-check@hive.kubestellar.io>
Signed-off-by: Andrew Anderson <andan02@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TmdVsn5zULh5KVpFkYrX59
Co-authored-by: architect <sec-check@hive.kubestellar.io>
Signed-off-by: Andrew Anderson <andan02@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TmdVsn5zULh5KVpFkYrX59
@clubanderson
clubanderson changed the base branch from v4 to v5 September 8, 2026 16:43
@clubanderson
clubanderson self-requested a review as a code owner September 8, 2026 16:43
@clubanderson
clubanderson force-pushed the arch/refactor-dashboard-api-dead-wrappers branch from ab9a94e to 8a61d52 Compare September 8, 2026 16:43
@clubanderson clubanderson added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed hold labels Sep 8, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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

The pull request process is described 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

@kubestellar-hive

Copy link
Copy Markdown
Contributor Author

🛑 Fix loop escalated — human attention needed

This PR has failed CI on 1 distinct fix attempts (new commits, still red). The hive has stopped dispatching further automated fixes for it.

Failing checks: test

Raw failure evidence (from check-run annotations):

test: Process completed with exit code 1.

Remove the needs-human label after addressing the root cause to return the PR to the automated fix lane.

…, summary failed closed)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
@kubestellar-prow kubestellar-prow Bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 8, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

1 similar comment
@kubestellar-prow

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. copilot dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. needs-human size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[architect] pkg/dashboard/api.go dead superseded wrappers: refreshAndPersistSync, fetchInferenceModelsForBackend, fetchModelsFromEndpoints, maskToken

2 participants