-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TECH] Regrouper la gestion des centres (PIX-12462). #8892
Conversation
Une fois les applications déployées, elles seront accessibles via les liens suivants :
Les variables d'environnement seront accessibles via les liens suivants : |
923911f
to
c133f70
Compare
c133f70
to
21ba9a2
Compare
92e6535
to
7893745
Compare
67bbf96
to
ac779d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je suis pas certain que mettre "center" en dehors du scope certif soit une bonne chose (lib + dans les message d'erreur).
Sinon OK :D
createdAt: 'certification-centers.createdAt', | ||
updatedAt: 'certification-centers.updatedAt', | ||
isV3Pilot: 'certification-centers.isV3Pilot', | ||
isComplementaryAlonePilot: knex.raw( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On peut en avoir plusieurs? je ne comprends pas pourquoi le count
...ts/integration/infrastructure/repositories/certification-center-for-admin-repository_test.js
Outdated
Show resolved
Hide resolved
api/lib/infrastructure/repositories/certification-point-of-contact-repository.js
Outdated
Show resolved
Hide resolved
* @param {Array} centerList - List of certification centers. | ||
* @returns {Promise<Array>} - List of allowed center accesses. | ||
*/ | ||
const getAllowedCenterAccesses = async function (centerList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On ne se sert que des ids, peut etre qu'on ne devrait prendre en parametre que cela
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Faire un centerIdList ? Le problème c'est qu'on se sert des autres informations + bas, dans le toDomain
api/lib/infrastructure/repositories/certification-point-of-contact-repository.js
Outdated
Show resolved
Hide resolved
2d8e25e
to
ff55052
Compare
ff55052
to
e72d286
Compare
@@ -110,7 +110,7 @@ describe('Integration | Repository | CertificationPointOfContact', function () { | |||
type: certificationCenter.type, | |||
isV3Pilot: certificationCenter.isV3Pilot, | |||
habilitations: [], | |||
isComplementaryAlonePilot: false, | |||
// isComplementaryAlonePilot: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On dé-commente ou on supprime ? :)
e72d286
to
ac5bf5b
Compare
ac5bf5b
to
3e6b408
Compare
J'ai cassé la RA, vu avec @mcampourcy je ferme et j'ouvre une autre PR |
🦄 Problème
On répète à de nombreux endroits les mêmes instructions dans le cadre de la Séparation Pix / Pix+, notamment de récupérer pour un centre donné ses features (CAN_REGISTER_FOR_A_COMPLEMENTARY_CERTIFICATION_ALONE)
On constate déjà à ce jour
Un objet Center.js dans api/src/certification/enrolment/domain/models/Center.js qui représente un centre de certif de manière générique
Un objet CertificationCenterForAdmin dans api/lib/domain/models/CertificationCenterForAdmin.js qui est un aggregat entre les informations d’un centre + le DPO officer
Un objet AllowedCertificationCenterAccess dans api/lib/domain/read-models/AllowedCertificationCenterAccess.js qui est un aggregat entre un centre, des tags et des informations supplémentaires lié au SCO
On voudrait mettre en cohérence ce code pour éviter de refaire un nombre identique de fois les mêmes opérations qui sont faites dans les repositories.
🤖 Proposition
🌈 Remarques
💯 Pour tester