You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lors de la sauvegarde d'une mission contenant des contrôles, l'utilisation d'index lors de la sauvegarde par diff des contrôles modifie les identifiants id des contrôles.
Cas de reproduction :
The first control in this test has the id 4
A new control is added
We save the form
The bug was sending :
1 POST request with the data of the first control (instead of an update of the id 4)
1 PUT request with the date of the new control (instead of a creation with a POST request)
Cas étudiés
Cas 1:
Le contrôle du 2024-03-12T09:17:00Z.
MissionId : 11393
CFR: FRA000707251
Cas 2:
VesselId : 1728753
CFR: FRA000931328
Contrôle du 2024-03-19T09:45:00Z
Ils ont été supprimés le 26 :
The text was updated successfully, but these errors were encountered:
## Linked issues
- Resolve#3051
- Resolve#3053
----
- [ ] Tests E2E (Cypress)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Enhanced the mission action deletion process to ensure accurate data
is sent to the API.
- **Refactor**
- Updated the internal logic for handling the creation, update, and
deletion of mission actions to improve efficiency and reliability.
- **Tests**
- Adjusted test cases to align with the new logic for managing mission
actions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Lors de la sauvegarde d'une mission contenant des contrôles, l'utilisation d'
index
lors de la sauvegarde par diff des contrôles modifie les identifiantsid
des contrôles.Cas de reproduction :
4
4
)Cas étudiés
Cas 1:
Le contrôle du
2024-03-12T09:17:00Z
.MissionId :
11393
CFR:
FRA000707251
Cas 2:
VesselId :
1728753
CFR:
FRA000931328
Contrôle du
2024-03-19T09:45:00Z
The text was updated successfully, but these errors were encountered: