Fix the user camera-access grant form so selecting a site or camera does not throw a MudSelect generic type cast exception.
Pourquoi
Administrators need to grant site-wide or camera-specific access to a user from the Users page. A failed selector interaction prevents that workflow from completing.
État actuel et preuves
GlitchTip HEIMDALL-DJ (#7461) recorded an InvalidCastException while handling a MudSelectItem<Guid> click; the runtime tried to cast its parent MudSelect<Guid?> to MudSelect<Guid>.
The GlitchTip event transaction is GET /_blazor; the stack identifies MudSelectItem<T>.OnClickHandleAsync and MudSelect<T>.get_MudSelect().
CameraAccessPanel.razor binds both _newAccessSiteId and _newAccessCameraId as Guid?, while its nested items currently infer Guid from site.Id and camera.Id. This matches the reported cast.
No code or production deployment has been changed for this issue yet. Existing CI and production evidence: none.
Écart à résoudre
The parent selector and every option must use the same Guid? generic type. The admin grant workflow must complete without an invalid cast and preserve its site-wide and camera-specific semantics.
Analyse
The problematic controls are in src/Heimdall.Web/Components/Pages/CameraAccessPanel.razor, embedded by UsersPage.razor. The fix should make generic types and option values explicit, then exercise both selectors. No persistence or domain behavior change is intended.
Plan de travail
Make the site and camera selectors and their items consistently use nullable GUIDs.
Add or update a focused UI test for both option types and the admin grant flow.
Run focused tests, relevant build, and required persistence policy if applicable.
Run the disposable Compose acceptance from the changed source: bootstrap isolated users, open user camera access, select site, and select a camera; assert no InvalidCastException and confirm the requested grant is saved. Teardown and verify the exact project resources and image tags are absent.
Record actual evidence here and link the PR.
Critères d’acceptation
Site and camera selectors use matching nullable-GUID generic types for the parent and child options.
Selecting a site and selecting a camera no longer throws InvalidCastException; both access modes remain functional.
Focused tests and the relevant build pass.
Disposable Compose acceptance from the changed source verifies both selector interactions and saved grants; all project resources and exact local image tags are verified absent after cleanup.
PR and issue record actual checks and any remaining limitations.
Hors périmètre / dépendances
No authorization rule changes, schema changes, release, deployment, or hardware verification is part of this fix. Production validation is not claimed.
Maquette
Aucune maquette requise : this fixes an existing form interaction without changing layout or product behavior.
Re-inspected the current worktree before edits: both grant parent selectors bind Guid?, while site/camera options currently infer Guid; repository search found no alternate Guid?-bound select with non-nullable options. This matches the GlitchTip cast evidence.
Scope remains unchanged. Work and validation are in progress; no tests, build, or disposable Compose run has passed yet.
Passed: dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-build --no-restore (434 passed).
E2E project compiles with 0 warnings/errors. The new browser test was attempted twice and failed before choosing a site because the rendered site option was not found; it does not prove the selector behavior.
Not yet run: the disposable Compose acceptance with UI selection and persisted grant assertions, including its resource/image cleanup checks. No PR or CI evidence yet.
Worktree change includes explicitly nullable parent and item generic types, explicit (Guid?) option values, a focused skill, and an attempted E2E regression test. Acceptance remains open pending reliable browser interaction and disposable Compose evidence.
E2E diagnosis update (2026-11-07)
The direct authenticated GET api/sites?page=1&pageSize=20 assertion passes and confirms the created site ID is in the returned items array.
Browser network inspection cannot observe component api/sites requests: CameraAccessPanel runs in a Blazor Server circuit, so HeimdallApiClient calls execute server-side and are not browser requests. The test instead waits for the panel's loading indicator to disappear and verifies the API list directly.
The first locator diagnostic found .mud-select positional indexing opened a MudTable page-size popover (10/25/50/100), not the grant selector. The test now targets grant selectors by their rendered labels and site/camera options in .mud-popover-open .mud-list-item.
Current focused E2E still fails: the site-wide draft appears in the access table after selection/add, but after clicking Enregistrer les accès, authenticated API readback does not contain the site-wide grant. Camera-specific grant was present in the earlier combined-flow readback. This remains unresolved; Compose acceptance and PR have not been run/opened.
Scope update (2026-11-08)
The failed site-wide acceptance exposed a persistence defect in addition to the nullable selector. The focused Playwright test confirms a site is present in the authenticated first-page list and stages one site-wide grant; after save, both API readback and a direct EF Core verification query return zero grants, and a direct site-wide replacement returns HTTP 500. 20261020002409_ReconcileExistingAccessSchema creates UserCameraAccesses.CameraId as non-nullable, while UserCameraAccess.CameraId and the API DTO allow null for site-wide access.
Expanded scope: include an EF Core migration that makes UserCameraAccesses.CameraId nullable (preserving current camera-specific rows), update the current model snapshot, and add PostgreSQL relational verification for site-wide and camera-specific replacements. Existing selector fix and browser locators remain in scope. Acceptance remains blocked until both grants persist through the UI and are read back after the migration.
Mise à jour — 8 novembre 2026
Les deux MudSelect de CameraAccessPanel et toutes leurs options utilisent maintenant explicitement Guid?; le test bUnit vérifie les sélecteurs site/caméra et la valeur choisie. Suite Web Release : 448 réussis.
Le défaut PostgreSQL de persistance des accès site-wide décrit plus haut (migration nullable et vérification relationnelle) reste non corrigé et non accepté; ticket laissé ouvert.
## Résumé
Fix the user camera-access grant form so selecting a site or camera does not throw a `MudSelect` generic type cast exception.
## Pourquoi
Administrators need to grant site-wide or camera-specific access to a user from the Users page. A failed selector interaction prevents that workflow from completing.
## État actuel et preuves
- GlitchTip HEIMDALL-DJ (#7461) recorded an `InvalidCastException` while handling a `MudSelectItem<Guid>` click; the runtime tried to cast its parent `MudSelect<Guid?>` to `MudSelect<Guid>`.
- The GlitchTip event transaction is `GET /_blazor`; the stack identifies `MudSelectItem<T>.OnClickHandleAsync` and `MudSelect<T>.get_MudSelect()`.
- `CameraAccessPanel.razor` binds both `_newAccessSiteId` and `_newAccessCameraId` as `Guid?`, while its nested items currently infer `Guid` from `site.Id` and `camera.Id`. This matches the reported cast.
- No code or production deployment has been changed for this issue yet. Existing CI and production evidence: none.
## Écart à résoudre
The parent selector and every option must use the same `Guid?` generic type. The admin grant workflow must complete without an invalid cast and preserve its site-wide and camera-specific semantics.
## Analyse
The problematic controls are in `src/Heimdall.Web/Components/Pages/CameraAccessPanel.razor`, embedded by `UsersPage.razor`. The fix should make generic types and option values explicit, then exercise both selectors. No persistence or domain behavior change is intended.
## Plan de travail
1. Make the site and camera selectors and their items consistently use nullable GUIDs.
2. Add or update a focused UI test for both option types and the admin grant flow.
3. Run focused tests, relevant build, and required persistence policy if applicable.
4. Run the disposable Compose acceptance from the changed source: bootstrap isolated users, open user camera access, select site, and select a camera; assert no `InvalidCastException` and confirm the requested grant is saved. Teardown and verify the exact project resources and image tags are absent.
5. Record actual evidence here and link the PR.
## Critères d’acceptation
- [ ] Site and camera selectors use matching nullable-GUID generic types for the parent and child options.
- [ ] Selecting a site and selecting a camera no longer throws `InvalidCastException`; both access modes remain functional.
- [ ] Focused tests and the relevant build pass.
- [ ] Disposable Compose acceptance from the changed source verifies both selector interactions and saved grants; all project resources and exact local image tags are verified absent after cleanup.
- [ ] PR and issue record actual checks and any remaining limitations.
## Hors périmètre / dépendances
No authorization rule changes, schema changes, release, deployment, or hardware verification is part of this fix. Production validation is not claimed.
## Maquette
Aucune maquette requise : this fixes an existing form interaction without changing layout or product behavior.
## Liens
- GlitchTip: HEIMDALL-DJ (#7461)
- Component: `src/Heimdall.Web/Components/Pages/CameraAccessPanel.razor`
## Implementation update (2026-11-07)
- Re-inspected the current worktree before edits: both grant parent selectors bind `Guid?`, while site/camera options currently infer `Guid`; repository search found no alternate `Guid?`-bound select with non-nullable options. This matches the GlitchTip cast evidence.
- Scope remains unchanged. Work and validation are in progress; no tests, build, or disposable Compose run has passed yet.
## Validation update (2026-11-07)
- Passed: `dotnet build src/Heimdall.Web/Heimdall.Web.csproj --no-restore -m:1` (0 warnings, 0 errors).
- Passed: `dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-build --no-restore` (434 passed).
- E2E project compiles with 0 warnings/errors. The new browser test was attempted twice and failed before choosing a site because the rendered site option was not found; it does not prove the selector behavior.
- Not yet run: the disposable Compose acceptance with UI selection and persisted grant assertions, including its resource/image cleanup checks. No PR or CI evidence yet.
- Worktree change includes explicitly nullable parent and item generic types, explicit `(Guid?)` option values, a focused skill, and an attempted E2E regression test. Acceptance remains open pending reliable browser interaction and disposable Compose evidence.
## E2E diagnosis update (2026-11-07)
- The direct authenticated `GET api/sites?page=1&pageSize=20` assertion passes and confirms the created site ID is in the returned `items` array.
- Browser network inspection cannot observe component `api/sites` requests: `CameraAccessPanel` runs in a Blazor Server circuit, so `HeimdallApiClient` calls execute server-side and are not browser requests. The test instead waits for the panel's loading indicator to disappear and verifies the API list directly.
- The first locator diagnostic found `.mud-select` positional indexing opened a MudTable page-size popover (`10/25/50/100`), not the grant selector. The test now targets grant selectors by their rendered labels and site/camera options in `.mud-popover-open .mud-list-item`.
- Current focused E2E still fails: the site-wide draft appears in the access table after selection/add, but after clicking `Enregistrer les accès`, authenticated API readback does not contain the site-wide grant. Camera-specific grant was present in the earlier combined-flow readback. This remains unresolved; Compose acceptance and PR have not been run/opened.
## Scope update (2026-11-08)
The failed site-wide acceptance exposed a persistence defect in addition to the nullable selector. The focused Playwright test confirms a site is present in the authenticated first-page list and stages one site-wide grant; after save, both API readback and a direct EF Core verification query return zero grants, and a direct site-wide replacement returns HTTP 500. `20261020002409_ReconcileExistingAccessSchema` creates `UserCameraAccesses.CameraId` as non-nullable, while `UserCameraAccess.CameraId` and the API DTO allow null for site-wide access.
**Expanded scope:** include an EF Core migration that makes `UserCameraAccesses.CameraId` nullable (preserving current camera-specific rows), update the current model snapshot, and add PostgreSQL relational verification for site-wide and camera-specific replacements. Existing selector fix and browser locators remain in scope. Acceptance remains blocked until both grants persist through the UI and are read back after the migration.
## Mise à jour — 8 novembre 2026
- Les deux `MudSelect` de `CameraAccessPanel` et toutes leurs options utilisent maintenant explicitement `Guid?`; le test bUnit vérifie les sélecteurs site/caméra et la valeur choisie. Suite Web Release : 448 réussis.
- Le défaut PostgreSQL de persistance des accès site-wide décrit plus haut (migration nullable et vérification relationnelle) reste non corrigé et non accepté; ticket laissé ouvert.
L’issue reste ouverte et est réservée à arnaud.dartois. Le workspace de ce run (auto-heimdall-fix-issues-run-3-20261108T0910) est propre et ne contient pas la branche de travail. Le worktree local dédié fix-camera-access-nullable-select contient des modifications non publiées : CameraAccessPanel.razor, tests/Heimdall.E2E.Tests/Pages/UserManagementTests.cs et skills/camera-access-nullable-select/. Le test E2E documenté ici échoue encore : après sélection et sauvegarde, la lecture API ne retrouve pas l’octroi site-wide; aucune recette Compose ni PR n’est enregistrée.
Ce run n’a pas modifié ces fichiers ni créé une branche/PR concurrente, conformément à l’isolation des workspaces. Les critères nullable-Guid et le test d’interaction restent à reprendre depuis le worktree propriétaire, en corrigeant d’abord la persistance de l’octroi site-wide; ensuite exécuter les tests/build, la recette Compose complète et son nettoyage exact, puis publier une PR Refs #288 avec les preuves. L’issue reste ouverte jusqu’à ces résultats.
## Blocage de reprise — 2026-11-08
L’issue reste ouverte et est réservée à `arnaud.dartois`. Le workspace de ce run (`auto-heimdall-fix-issues-run-3-20261108T0910`) est propre et ne contient pas la branche de travail. Le worktree local dédié `fix-camera-access-nullable-select` contient des modifications non publiées : `CameraAccessPanel.razor`, `tests/Heimdall.E2E.Tests/Pages/UserManagementTests.cs` et `skills/camera-access-nullable-select/`. Le test E2E documenté ici échoue encore : après sélection et sauvegarde, la lecture API ne retrouve pas l’octroi site-wide; aucune recette Compose ni PR n’est enregistrée.
Ce run n’a pas modifié ces fichiers ni créé une branche/PR concurrente, conformément à l’isolation des workspaces. Les critères nullable-Guid et le test d’interaction restent à reprendre depuis le worktree propriétaire, en corrigeant d’abord la persistance de l’octroi site-wide; ensuite exécuter les tests/build, la recette Compose complète et son nettoyage exact, puis publier une PR `Refs #288` avec les preuves. L’issue reste ouverte jusqu’à ces résultats.
Mise à jour du run auto-heimdall-fix-issues-run-4-20261108T1010 — reprise vérifiée le 2026-11-08.
L’issue reste ouverte et assignée à arnaud.dartois. Les références locales et origin/* disponibles dans ce workspace ne contiennent pas de branche de correctif pour #288; aucune PR correspondante n’est ouverte. Le commentaire précédent situe les modifications non publiées (CameraAccessPanel.razor, test E2E et skill) dans le worktree propriétaire fix-camera-access-nullable-select, et rapporte que le test ne retrouve pas l’octroi site-wide après sauvegarde.
Ce workspace n’a pas accès à ce worktree propriétaire. Aucun fichier ni branche n’a été modifié et aucun travail concurrent n’a été créé. Les critères nullable-Guid, test E2E, build/tests et recette Compose restent non validés ici; en particulier, la sauvegarde de l’octroi site-wide demeure le blocage observable.
Prochaine étape : reprendre dans le worktree propriétaire, diagnostiquer pourquoi l’octroi site-wide n’est pas persisté, puis exécuter les tests et l’acceptance Compose avec vérification du nettoyage avant d’ouvrir une PR Refs #288.
Mise à jour du run `auto-heimdall-fix-issues-run-4-20261108T1010` — reprise vérifiée le 2026-11-08.
L’issue reste ouverte et assignée à `arnaud.dartois`. Les références locales et `origin/*` disponibles dans ce workspace ne contiennent pas de branche de correctif pour #288; aucune PR correspondante n’est ouverte. Le commentaire précédent situe les modifications non publiées (`CameraAccessPanel.razor`, test E2E et skill) dans le worktree propriétaire `fix-camera-access-nullable-select`, et rapporte que le test ne retrouve pas l’octroi site-wide après sauvegarde.
Ce workspace n’a pas accès à ce worktree propriétaire. Aucun fichier ni branche n’a été modifié et aucun travail concurrent n’a été créé. Les critères nullable-Guid, test E2E, build/tests et recette Compose restent non validés ici; en particulier, la sauvegarde de l’octroi site-wide demeure le blocage observable.
Prochaine étape : reprendre dans le worktree propriétaire, diagnostiquer pourquoi l’octroi site-wide n’est pas persisté, puis exécuter les tests et l’acceptance Compose avec vérification du nettoyage avant d’ouvrir une PR `Refs #288`.
Acceptance update (2026-11-08): focused E2E test now asserts the authenticated admin GET api/sites?page=1&pageSize=20 contains the created site before opening the UI selector, waits for CameraAccessPanel loading to finish, and reads the page-level MudBlazor popover options. The Compose recipe used isolated generated credentials, ports, project/volumes and unique image tags; cleanup verified no project containers, volumes, or networks and exact app tag absence on each run. UI bootstrap/login is still unstable and saved-grant readback is inconsistent: one run persisted the site-wide grant but not the camera-specific grant; a later run showed the draft in UI but API readback count 0. Acceptance is therefore incomplete; no PR opened.
Acceptance update (2026-11-08): focused E2E test now asserts the authenticated admin `GET api/sites?page=1&pageSize=20` contains the created site before opening the UI selector, waits for CameraAccessPanel loading to finish, and reads the page-level MudBlazor popover options. The Compose recipe used isolated generated credentials, ports, project/volumes and unique image tags; cleanup verified no project containers, volumes, or networks and exact app tag absence on each run. UI bootstrap/login is still unstable and saved-grant readback is inconsistent: one run persisted the site-wide grant but not the camera-specific grant; a later run showed the draft in UI but API readback count 0. Acceptance is therefore incomplete; no PR opened.
Acceptance correction (2026-11-08): the test readback race was caused by waiting on .mud-alert-info, which did not match the rendered notice. The test now waits for the actual unsaved notice text to appear and disappear after save, and performs login through the UI so Blazor circuit AuthState and the middleware cookie are both initialized. Passing disposable Compose run: project heimdall-nullable-20261108182003-26028; local app tag heimdall:heimdall-nullable-20261108182003-26028-acceptance; generated admin/DB/JWT credentials and isolated ports/volumes. Focused Playwright E2E passed (1/1), selecting and saving site-wide and camera-specific grants and reading both back through the admin API; healthz passed. Cleanup verified zero project containers, volumes, and networks and confirmed the exact app tag absent; shared upstream images were retained. dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-restore -m:1 -p:BuildInParallel=false passed 434/434, and the focused E2E project build passed with zero warnings/errors. CI remains pending; no production environment was used.
Acceptance correction (2026-11-08): the test readback race was caused by waiting on `.mud-alert-info`, which did not match the rendered notice. The test now waits for the actual unsaved notice text to appear and disappear after save, and performs login through the UI so Blazor circuit AuthState and the middleware cookie are both initialized. Passing disposable Compose run: project `heimdall-nullable-20261108182003-26028`; local app tag `heimdall:heimdall-nullable-20261108182003-26028-acceptance`; generated admin/DB/JWT credentials and isolated ports/volumes. Focused Playwright E2E passed (1/1), selecting and saving site-wide and camera-specific grants and reading both back through the admin API; healthz passed. Cleanup verified zero project containers, volumes, and networks and confirmed the exact app tag absent; shared upstream images were retained. `dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-restore -m:1 -p:BuildInParallel=false` passed 434/434, and the focused E2E project build passed with zero warnings/errors. CI remains pending; no production environment was used.
The acceptance gates are now complete and PR #311 is open: #311 (Closes #288). The PR is intentionally unmerged pending required CI.
The acceptance gates are now complete and PR #311 is open: https://sources.tordais.cc/arnaud.dartois/Heimdall/pulls/311 (`Closes #288`). The PR is intentionally unmerged pending required CI.
Clôture confirmée par le merge squash de la PR #311 (5b1255ad807f5a82353a6fa365755d6412f6128f). La migration et la correction des sélecteurs nullable sont intégrées; tests Web, E2E et recette Compose documentés dans la PR ont réussi. Le run Gitea 871 est vert, y compris les scans d’images et la politique CI. Skill : skills/camera-access-nullable-select/SKILL.md.
Clôture confirmée par le merge squash de la PR #311 (`5b1255ad807f5a82353a6fa365755d6412f6128f`). La migration et la correction des sélecteurs nullable sont intégrées; tests Web, E2E et recette Compose documentés dans la PR ont réussi. Le run Gitea 871 est vert, y compris les scans d’images et la politique CI. Skill : `skills/camera-access-nullable-select/SKILL.md`.
Completion evidence: PR #311 was merged on 2026-11-08 as commit 5b1255ad807f5a82353a6fa365755d6412f6128f; issue #288 is closed. All required CI contexts on merged head 42b0691d3824879e6c7a328629db0f87869ebf51 succeeded (Detect CI scope, CI policy, Build and tests, server image scan, agent image scan, NVIDIA agent image scan); publication jobs were correctly skipped. Local Web tests passed 434/434, focused E2E build passed with 0 warnings/errors, and disposable Compose Playwright acceptance passed for saved/read-back site-wide and camera-specific grants. Exact cleanup was verified for project heimdall-nullable-20261108182003-26028 and tag heimdall:heimdall-nullable-20261108182003-26028-acceptance; no containers, volumes, networks, or that tag remained.
Completion evidence: PR #311 was merged on 2026-11-08 as commit `5b1255ad807f5a82353a6fa365755d6412f6128f`; issue #288 is closed. All required CI contexts on merged head `42b0691d3824879e6c7a328629db0f87869ebf51` succeeded (Detect CI scope, CI policy, Build and tests, server image scan, agent image scan, NVIDIA agent image scan); publication jobs were correctly skipped. Local Web tests passed 434/434, focused E2E build passed with 0 warnings/errors, and disposable Compose Playwright acceptance passed for saved/read-back site-wide and camera-specific grants. Exact cleanup was verified for project `heimdall-nullable-20261108182003-26028` and tag `heimdall:heimdall-nullable-20261108182003-26028-acceptance`; no containers, volumes, networks, or that tag remained.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Résumé
Fix the user camera-access grant form so selecting a site or camera does not throw a
MudSelectgeneric type cast exception.Pourquoi
Administrators need to grant site-wide or camera-specific access to a user from the Users page. A failed selector interaction prevents that workflow from completing.
État actuel et preuves
InvalidCastExceptionwhile handling aMudSelectItem<Guid>click; the runtime tried to cast its parentMudSelect<Guid?>toMudSelect<Guid>.GET /_blazor; the stack identifiesMudSelectItem<T>.OnClickHandleAsyncandMudSelect<T>.get_MudSelect().CameraAccessPanel.razorbinds both_newAccessSiteIdand_newAccessCameraIdasGuid?, while its nested items currently inferGuidfromsite.Idandcamera.Id. This matches the reported cast.Écart à résoudre
The parent selector and every option must use the same
Guid?generic type. The admin grant workflow must complete without an invalid cast and preserve its site-wide and camera-specific semantics.Analyse
The problematic controls are in
src/Heimdall.Web/Components/Pages/CameraAccessPanel.razor, embedded byUsersPage.razor. The fix should make generic types and option values explicit, then exercise both selectors. No persistence or domain behavior change is intended.Plan de travail
InvalidCastExceptionand confirm the requested grant is saved. Teardown and verify the exact project resources and image tags are absent.Critères d’acceptation
InvalidCastException; both access modes remain functional.Hors périmètre / dépendances
No authorization rule changes, schema changes, release, deployment, or hardware verification is part of this fix. Production validation is not claimed.
Maquette
Aucune maquette requise : this fixes an existing form interaction without changing layout or product behavior.
Liens
src/Heimdall.Web/Components/Pages/CameraAccessPanel.razorImplementation update (2026-11-07)
Guid?, while site/camera options currently inferGuid; repository search found no alternateGuid?-bound select with non-nullable options. This matches the GlitchTip cast evidence.Validation update (2026-11-07)
dotnet build src/Heimdall.Web/Heimdall.Web.csproj --no-restore -m:1(0 warnings, 0 errors).dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-build --no-restore(434 passed).(Guid?)option values, a focused skill, and an attempted E2E regression test. Acceptance remains open pending reliable browser interaction and disposable Compose evidence.E2E diagnosis update (2026-11-07)
GET api/sites?page=1&pageSize=20assertion passes and confirms the created site ID is in the returneditemsarray.api/sitesrequests:CameraAccessPanelruns in a Blazor Server circuit, soHeimdallApiClientcalls execute server-side and are not browser requests. The test instead waits for the panel's loading indicator to disappear and verifies the API list directly..mud-selectpositional indexing opened a MudTable page-size popover (10/25/50/100), not the grant selector. The test now targets grant selectors by their rendered labels and site/camera options in.mud-popover-open .mud-list-item.Enregistrer les accès, authenticated API readback does not contain the site-wide grant. Camera-specific grant was present in the earlier combined-flow readback. This remains unresolved; Compose acceptance and PR have not been run/opened.Scope update (2026-11-08)
The failed site-wide acceptance exposed a persistence defect in addition to the nullable selector. The focused Playwright test confirms a site is present in the authenticated first-page list and stages one site-wide grant; after save, both API readback and a direct EF Core verification query return zero grants, and a direct site-wide replacement returns HTTP 500.
20261020002409_ReconcileExistingAccessSchemacreatesUserCameraAccesses.CameraIdas non-nullable, whileUserCameraAccess.CameraIdand the API DTO allow null for site-wide access.Expanded scope: include an EF Core migration that makes
UserCameraAccesses.CameraIdnullable (preserving current camera-specific rows), update the current model snapshot, and add PostgreSQL relational verification for site-wide and camera-specific replacements. Existing selector fix and browser locators remain in scope. Acceptance remains blocked until both grants persist through the UI and are read back after the migration.Mise à jour — 8 novembre 2026
MudSelectdeCameraAccessPanelet toutes leurs options utilisent maintenant explicitementGuid?; le test bUnit vérifie les sélecteurs site/caméra et la valeur choisie. Suite Web Release : 448 réussis.Blocage de reprise — 2026-11-08
L’issue reste ouverte et est réservée à
arnaud.dartois. Le workspace de ce run (auto-heimdall-fix-issues-run-3-20261108T0910) est propre et ne contient pas la branche de travail. Le worktree local dédiéfix-camera-access-nullable-selectcontient des modifications non publiées :CameraAccessPanel.razor,tests/Heimdall.E2E.Tests/Pages/UserManagementTests.csetskills/camera-access-nullable-select/. Le test E2E documenté ici échoue encore : après sélection et sauvegarde, la lecture API ne retrouve pas l’octroi site-wide; aucune recette Compose ni PR n’est enregistrée.Ce run n’a pas modifié ces fichiers ni créé une branche/PR concurrente, conformément à l’isolation des workspaces. Les critères nullable-Guid et le test d’interaction restent à reprendre depuis le worktree propriétaire, en corrigeant d’abord la persistance de l’octroi site-wide; ensuite exécuter les tests/build, la recette Compose complète et son nettoyage exact, puis publier une PR
Refs #288avec les preuves. L’issue reste ouverte jusqu’à ces résultats.Mise à jour du run
auto-heimdall-fix-issues-run-4-20261108T1010— reprise vérifiée le 2026-11-08.L’issue reste ouverte et assignée à
arnaud.dartois. Les références locales etorigin/*disponibles dans ce workspace ne contiennent pas de branche de correctif pour #288; aucune PR correspondante n’est ouverte. Le commentaire précédent situe les modifications non publiées (CameraAccessPanel.razor, test E2E et skill) dans le worktree propriétairefix-camera-access-nullable-select, et rapporte que le test ne retrouve pas l’octroi site-wide après sauvegarde.Ce workspace n’a pas accès à ce worktree propriétaire. Aucun fichier ni branche n’a été modifié et aucun travail concurrent n’a été créé. Les critères nullable-Guid, test E2E, build/tests et recette Compose restent non validés ici; en particulier, la sauvegarde de l’octroi site-wide demeure le blocage observable.
Prochaine étape : reprendre dans le worktree propriétaire, diagnostiquer pourquoi l’octroi site-wide n’est pas persisté, puis exécuter les tests et l’acceptance Compose avec vérification du nettoyage avant d’ouvrir une PR
Refs #288.Acceptance update (2026-11-08): focused E2E test now asserts the authenticated admin
GET api/sites?page=1&pageSize=20contains the created site before opening the UI selector, waits for CameraAccessPanel loading to finish, and reads the page-level MudBlazor popover options. The Compose recipe used isolated generated credentials, ports, project/volumes and unique image tags; cleanup verified no project containers, volumes, or networks and exact app tag absence on each run. UI bootstrap/login is still unstable and saved-grant readback is inconsistent: one run persisted the site-wide grant but not the camera-specific grant; a later run showed the draft in UI but API readback count 0. Acceptance is therefore incomplete; no PR opened.Acceptance correction (2026-11-08): the test readback race was caused by waiting on
.mud-alert-info, which did not match the rendered notice. The test now waits for the actual unsaved notice text to appear and disappear after save, and performs login through the UI so Blazor circuit AuthState and the middleware cookie are both initialized. Passing disposable Compose run: projectheimdall-nullable-20261108182003-26028; local app tagheimdall:heimdall-nullable-20261108182003-26028-acceptance; generated admin/DB/JWT credentials and isolated ports/volumes. Focused Playwright E2E passed (1/1), selecting and saving site-wide and camera-specific grants and reading both back through the admin API; healthz passed. Cleanup verified zero project containers, volumes, and networks and confirmed the exact app tag absent; shared upstream images were retained.dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-restore -m:1 -p:BuildInParallel=falsepassed 434/434, and the focused E2E project build passed with zero warnings/errors. CI remains pending; no production environment was used.The acceptance gates are now complete and PR #311 is open: #311 (
Closes #288). The PR is intentionally unmerged pending required CI.Clôture confirmée par le merge squash de la PR #311 (
5b1255ad807f5a82353a6fa365755d6412f6128f). La migration et la correction des sélecteurs nullable sont intégrées; tests Web, E2E et recette Compose documentés dans la PR ont réussi. Le run Gitea 871 est vert, y compris les scans d’images et la politique CI. Skill :skills/camera-access-nullable-select/SKILL.md.Completion evidence: PR #311 was merged on 2026-11-08 as commit
5b1255ad807f5a82353a6fa365755d6412f6128f; issue #288 is closed. All required CI contexts on merged head42b0691d3824879e6c7a328629db0f87869ebf51succeeded (Detect CI scope, CI policy, Build and tests, server image scan, agent image scan, NVIDIA agent image scan); publication jobs were correctly skipped. Local Web tests passed 434/434, focused E2E build passed with 0 warnings/errors, and disposable Compose Playwright acceptance passed for saved/read-back site-wide and camera-specific grants. Exact cleanup was verified for projectheimdall-nullable-20261108182003-26028and tagheimdall:heimdall-nullable-20261108182003-26028-acceptance; no containers, volumes, networks, or that tag remained.