Heimdall Gitea / Detect CI scope (push) Successful in 5s
Heimdall Gitea / Build and tests (push) Failing after 12m2s
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (push) Skipped
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / CI policy (push) Failing after 2s
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2.0 KiB
2.0 KiB
name, description
| name | description |
|---|---|
| detail-route-not-found | Keep Heimdall detail pages consistent when an API object no longer exists. |
Missing objects on detail routes
Use this workflow when a detail page already has an explicit “not found” state and an API read can return HTTP 404. Current routes covered are Agent (AgentDetail.razor), Camera (CameraDetail.razor), and Person (PersonDetailPage.razor).
Implementation
- Keep the API client's normal
GetFromJsonAsyncbehavior. A 404 raisesHttpRequestExceptionwithStatusCode == NotFound. Agent and Camera resource-boundary checks intentionally return 403 for missing or out-of-scope records; treat that expected privacy response like the existing not-found rendering too. Person reads use 404. - Preserve the generic error notification for unexpected failures. Do not treat 401, server, timeout, or malformed-response errors as “not found”.
- Do not fetch dependent page data after the primary object is absent. In particular, Camera must not load events, recordings, snapshots, or start periodic refresh, and Person must not load faces, vehicles, or events.
- Keep authorization and API responses unchanged. The UI behavior handles stale links and objects deleted between navigation and load.
Acceptance
- Add a component test for each route with a synthetic UUID and its expected hidden/missing response (Agent/Camera 403, Person 404).
- Assert the existing not-found state is rendered, no snackbar is shown, and no dependent API call is made.
- Retain or add an unexpected HTTP failure check proving the generic notification still appears.
- Run the focused Web tests and Web build.
- Run the disposable Compose recipe from
skills/compose-disposable-recipe/SKILL.md; verify all three routes through the app boundary using isolated synthetic data and record exact project/image cleanup evidence.
The route-level checks require an authenticated synthetic account. Do not create or retain real people, cameras, Agents, or camera connection data for acceptance.