feat(backend): update Sati#1436
Conversation
xtiannyeto
commented
Jun 25, 2026
- Change Database structure, Model, entity
- Add Monitor attributes
- Implement SatiEntityMapper
- getComputeSati use case which getSait or Create if is not iexisting
- processAti save sati if changes
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Coverage Report for frontend
File CoverageNo changed files found. |
- Change Database structure, Model, entity - Add Monitor attributes - Implement SatiEntityMapper - getComputeSati use case which getSait or Create if is not iexisting - processAti save sati if changes
471fb79 to
da4ac59
Compare
da4ac59 to
cd98bbc
Compare
- update mapping attribute orphan - create a enable sati flag regarding the user service
4397bc6 to
ffa380a
Compare
|
|
||
| import fr.gouv.dgampa.rapportnav.infrastructure.api.bff.model.v2.sati.Contact | ||
|
|
||
| data class SatiParty( |
There was a problem hiding this comment.
Je suis pas sûr de vraiment comprendre le sens de Party. C'est quoi le mot en francais ?
| val createdAt: Instant? = null, | ||
| val updatedAt: Instant? = null |
There was a problem hiding this comment.
Les champs d'audit, en général, je les remonte pas côté domain. Ils ont pas vraiment de business logic.
Par contre, je les remonte du Model vers le Admin type quand on les gère depuis l'admin panel
| if (!action.actionType.toString().endsWith("_CONTROL")) return null | ||
| val sati = satiRepo.findByActionId(actionId = action.id.toString()) | ||
| var sati = satiRepo.findByActionId(actionId = action.id.toString()) | ||
| if (sati == null) sati = satiRepo.save(getNewSati(action = action)) |
There was a problem hiding this comment.
ok donc là, tu créés une row (par action) si elle existe pas encore, c'est ça ?
|
|
||
| @Column(name = "zipcode", nullable = true, length = 20) | ||
| val zipcode: String? = null, | ||
| @Column(name = "full_address", length = 400) |
There was a problem hiding this comment.
fullAddress à 400 ? J'ai du mal à savoir si c'est suffisant ou pas
| @Column(name = "nationality", length = 16) | ||
| var nationality: String? = null, |
There was a problem hiding this comment.
Un countrycode alpha3 comme on utilise dans d'autres trucs, c'est pas suffisant ?
| @Column(name = "agent_id", length = 255) | ||
| var agentId: Int? = null, |
There was a problem hiding this comment.
le "length" ici, tu peux enlever je pense
| @CreatedDate | ||
| @Column(name = "created_at", nullable = true, updatable = false) | ||
| var createdAt: Instant? = null, | ||
|
|
||
| @LastModifiedDate | ||
| @Column(name = "updated_at", nullable = true) | ||
| var updatedAt: Instant? = null, |
There was a problem hiding this comment.
T'as aussi d'autres champs genre createdBy et updatedBy aussi si tu veux pour les audits
ffa380a to
73bfa04
Compare
|