Replace mock API layer with real backend integration #1
Labels
No labels
blocked:gate-fetch
blocked:gate-fetch
blocked:gate-fetch
blocked:gate-fetch
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
blocked:no-procedure
blocked:verify-failed
bug
feature-request
in-progress
needs-decompose
needs-triage
ops-task
quickfix
security/high
security/low
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/docker_backup#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Replace the mock API layer in
src/lib/api.tswith real HTTP calls to a backend server.Current State
mockData.tsRequired Changes
fetch/axioscalls{ data, error }tuplesFiles Affected
src/lib/api.ts(entire file)src/lib/client.ts(new API client)Acceptance Criteria
{ data, error }tuplesFeature Triage Assessment
Scope: small
Risk: low
Spec Alignment: misaligned
Summary: Issue requests replacing a mock API layer with real backend calls, but this work was already completed —
api.tsalready makes real HTTP requests viaclient.tsand does not use mock data.Recommendation: Close as already done. The real API integration is fully in place:
client.tshandles JWT auth, fetch, interceptors, and error throwing (per spec), whileapi.tsprovides typed domain APIs (volumesApi,targetsApi, etc.) with context-aware error wrapping. The only cleanup opportunity is removing the deadmockData.ts+ its test file, since nothing imports them.Rationale: SCOPE=small: Issue's premise is already implemented —
api.ts(459 lines) calls real endpoints throughclient.ts, not mock data. RISK=low: existing code is well-structured, tested (client.test.ts has 245 lines of vitest coverage), and stores already use real APIs. SPEC=misaligned: (1) Issue asks for{ data, error }tuples, but AGENTS.md explicitly says 'API functions throw errors on failure (not { data, error } tuples)' — current code correctly throws. (2) Issue says 'May need: src/lib/client.ts (new API client)' — it already exists with interceptor pipeline, auth, and tests. (3) Issue describes mock delays/hardcoded returns, but api.ts has zero imports from mockData.ts and never simulates delays. The issue appears to have been filed against an older revision and never closed.Labeled
blocked:needs-decision— unblock on Forgejo to dispatch to the fixer pipeline.Note: #2 (Docker daemon integration for volume discovery) is a sub-task within this issue's scope — closing as duplicate.
🤖 Claimed by
gsd-issue-fixer-docker_backup-1— starting work🤖 Claimed by
gsd-issue-fixer-docker_backup-1— starting work🤖 Claimed by
gsd-issue-fixer-docker_backup-1— starting work🤖 [
gsd-issue-fixer-docker_backup-1] still working — claimed — starting pipeline🤖 Claimed by
gsd-issue-fixer-docker_backup-1— starting work🤖 [
gsd-issue-fixer-docker_backup-1] still working — claimed — starting pipeline🤖 [
gsd-issue-fixer-docker_backup-1] still working — claimed — starting pipeline🤖 [
gsd-issue-fixer-docker_backup-1] still working — claimed — starting pipeline🤖 [
gsd-issue-fixer-docker_backup-1] still working — research🤖 [
gsd-issue-fixer-docker_backup-1] still working — research🤖 [
gsd-issue-fixer-docker_backup-1] still working — researchGSD pipeline blocked at RESEARCH: prerequisite gate (fetch) not passed.
Pipeline state needs reset. Check if another run is in progress.
🤖 [
gsd-issue-fixer-docker_backup-1] still working — plan🤖 [
gsd-issue-fixer-docker_backup-1] still working — plan🤖 [
gsd-issue-fixer-docker_backup-1] still working — implement attempt 1🤖 [
gsd-issue-fixer-docker_backup-1] still working — implement attempt 1🤖 [
gsd-issue-fixer-docker_backup-1] still working — plan🤖 [
gsd-issue-fixer-docker_backup-1] still working — implement attempt 1Fixed in commit. Closing.