Feat/1265 renouvellement agrement historique#1194
Merged
olivier-rabot merged 12 commits intofeat/1079-gestion-renouvellement-agrementfrom Feb 23, 2026
Merged
Conversation
revu-bot
reviewed
Feb 18, 2026
Collaborator
revu-bot
left a comment
There was a problem hiding this comment.
Summary
This PR implements a history tracking feature for agrements (approvals), including database schema, backend API, and frontend UI. The implementation is generally solid but has several CRITICAL and IMPORTANT issues that need attention:
Critical Issues
- Security vulnerability: Missing authorization check in history endpoint allows any authenticated user to view any agrement's history
- SQL injection risk: Unparameterized query construction in repository
- Data integrity: Missing transaction handling in history insertion
Important Issues
- Incomplete feature: Commented-out tracking code suggests the feature isn't fully implemented
- Code quality: Inconsistent error handling and logging patterns
- Type safety: Missing null checks and type validations
Positive Aspects
- Clean database migration with proper foreign keys
- Well-structured TypeScript types for history data
- Good separation of concerns (controller/service/repository)
Recommendation: Address the security and data integrity issues before merging.
achorein
reviewed
Feb 18, 2026
## Ticket(s) lié(s) 1320 ## Description Ajout d'un test de retour sur la donnée. Si elle est [ND] cela signifie que la personne ne souhaite pas de diffusion de données personnelles [RGPD] Cf https://portail-api.insee.fr/catalog/api/2ba0e549-5587-3ef1-9082-99cd865de66f/doc?page=41bc4d65-fca4-436d-bc4d-65fca4136dcd#api-sirene-v4
added 4 commits
February 19, 2026 17:48
…rmissionAgrement)
…rmissionAgrement)
…rmissionOrganisme)
achorein
approved these changes
Feb 23, 2026
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
🎉 Deployment for commit 881d308 : Ingresses
Docker images
|
270bb21
into
feat/1079-gestion-renouvellement-agrement
25 of 33 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket(s) lié(s)
https://jira-mcas.atlassian.net/jira/software/c/projects/VAO/boards/336?selectedIssue=VAO-1265
Description
Page historique gestion renouvellement agrement
Dont régressions potentielles à tester
Screenshot / liens loom
Check-list
console.log