fix: 1330 bo filter list ds from organisation#1196
Conversation
revu-bot
left a comment
There was a problem hiding this comment.
Summary
This PR fixes a filtering issue in the back-office where the list of "demandes de séjour" (stay requests) for a PersonnePhysique organization was returning unfiltered results. The fix changes the filter type from "number" to "default" for the organismeId parameter.
Key Findings
| Severity | Issue | Impact |
|---|---|---|
| CRITICAL | Type change may break existing filters | Could cause incorrect query behavior or data exposure |
| IMPORTANT | Missing test coverage | No verification that the fix actually works |
Overall Assessment
The change is minimal (1 line) but affects a critical filtering mechanism. The type change from "number" to "default" suggests the underlying issue may be related to how the query parameter is being processed, but without seeing the processQuery or mapQueryParams implementation, it's difficult to verify this is the correct fix. The PR lacks tests to validate the filtering behavior works correctly for PersonnePhysique organizations.
|



Ticket(s) lié(s)
1330
Description
Côté BO la liste des demandes de séjours associées à un organisme PersonnePhysique revenait sans aucun filtrage
Correction : restriction du retour sur l'organisme concerné
Screenshot / liens loom
Check-list
console.log<script lang="ts">Testing instructions
Sur un compte BO qui gère un organisme Personne Physique qui possède des déclarations de séjour
Aller dans le menu "Organisme"
Filtrer sur la personne physique
Cliquer sur le bouton action >
Cliquer sur l'onglet "Déclaration de séjours"
Avant : Affichait toutes les déclarations de séjour du territoire de l'utilisateur connecté
Maintenant : Affiche toutes les déclarations de séjours du territoire pour l'organisme sélectionné