[architect] refactor: delete dead dashboard api.go wrappers (refreshAndPersistSync, fetchInferenceModelsForBackend, fetchModelsFromEndpoints, maskToken) - #6257
Conversation
|
Changelog: this PR changes code but carries no changelog entry If it is user-visible — a feature, a fix an operator would notice, a This is a reminder, not a gate; it never blocks a merge. |
…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
ab9a94e to
8a61d52
Compare
|
[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 DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
🛑 Fix loop escalated — human attention neededThis 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): Remove the |
…, summary failed closed) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
|
New changes are detected. LGTM label has been removed. |
1 similar comment
|
New changes are detected. LGTM label has been removed. |
Refactor
Deletes four unreachable functions in
src/pkg/dashboard/api.go(verified withdeadcodeat 321251c), all superseded thin wrappers:Server.refreshAndPersistSync— superseded byrefreshAndPersistSeqServer.fetchInferenceModelsForBackend— wrapper overfetchInferenceModelsForBackendDetailed(🐛 bug: mysterious toasts about model removals #4438 moved all production callers)fetchModelsFromEndpoints— wrapper overfetchModelsFromEndpointsDetailedmaskToken— no production callerDoc comments from the deleted wrappers are folded into the surviving
-Detailedvariants so the watsonx auth-scheme and #4438 census rationale are preserved. Test-only callers rewired to the survivors;TestMaskToken/TestRefreshAndPersistSyncremoved with their subjects.Disjoint from open architect PRs: #6132 touches only
server.go(constructors); #6214/#6156 touchapi_contribute.go/api_leaderboard_style.go. No other open PR claims these four functions.go build ./...and targetedpkg/dashboardtests 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