-
Notifications
You must be signed in to change notification settings - Fork 54
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
[FEATURE] Créer une alerte en cas de non détection de l'extension Companion lors de la certification sur Pix App (PIX-14727). #10303
base: dev
Are you sure you want to change the base?
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 : |
10f6a86
to
62e7c60
Compare
62e7c60
to
3656f36
Compare
8e9e471
to
9fb9b04
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.
J'ai fais pas mal de retour sur la definition des model, et du coup ca risque d'impacter la partie Front qu'il faudrait que je relise.
api/db/migrations/20241011074058_create-certification-companion-live-alert-table.js
Outdated
Show resolved
Hide resolved
api/db/migrations/20241011074058_create-certification-companion-live-alert-table.js
Show resolved
Hide resolved
api/db/migrations/20241011074058_create-certification-companion-live-alert-table.js
Show resolved
Hide resolved
api/src/certification/session-management/domain/models/CertificationCompanionLiveAlert.js
Outdated
Show resolved
Hide resolved
api/src/certification/session-management/domain/usecases/create-companion-alert.js
Outdated
Show resolved
Hide resolved
api/src/certification/session-management/domain/usecases/create-companion-alert.js
Outdated
Show resolved
Hide resolved
...n/session-management/infrastructure/repositories/certification-companion-alert-repository.js
Outdated
Show resolved
Hide resolved
...s/certification/session-management/acceptance/application/companion-live-alert-route_test.js
Outdated
Show resolved
Hide resolved
9fb9b04
to
5efe444
Compare
3a484e9
to
9dd057a
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.
await knex.schema.createTable(TABLE_NAME, function (table) { | ||
table.increments().primary().notNullable(); | ||
table.integer('assessmentId').notNullable().unsigned().references('assessments.id').index(); | ||
table.string('status').notNullable().defaultTo('ONGOING'); |
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.
Merci pour le commentaire sur la table, DATA est aussi interesse sur la definition fonctionnelle aussi des colonnes. Typiquement que veut dire cleared et ongoing. :)
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.
j'ai tenté ! à confirmer :)
async function ({ assessmentId, certificationCompanionAlertRepository }) { | ||
const companionAlert = new CertificationCompanionLiveAlert({ | ||
assessmentId, | ||
status: 'ONGOING', |
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.
CertificationCompanionLiveAlertStatus.ONGOING (autant utiliser l'enumeration cree pour l'occaz ce qui evite les magic strings).
Autre version que j'aime bien, mais ptet overkill, une factory (j'ai pas cherche d'article en node) : CertificationCompanionLiveAlert.createOngoing()
...s/certification/session-management/acceptance/application/companion-live-alert-route_test.js
Outdated
Show resolved
Hide resolved
9dd057a
to
098a06c
Compare
13e9288
to
75d4edf
Compare
…/{assessmentId}/companion-alert Co-authored-by: Andreia Pena Ferreira <andreia.pena@pix.fr>
Co-authored-by: Andreia Pena Ferreira <andreia.pena@pix.fr>
Co-authored-by: Andreia Pena Ferreira <andreia.pena@pix.fr>
75d4edf
to
bd63f5b
Compare
🦄 Problème
En certification, lorsque Pix App ne détecte plus l'extension, la page Blocker s'affiche mais ça n'entraîne rien de plus.
On souhaiterait pouvoir bloquer l'utilisateur sur la question en cours tant que le surveillant n'a pas confirmé l'activation de l'extension. Pour cela nous avons besoin d'enregistrer une alerte en BDD.
🤖 Proposition
Créer une alerte spécifique à Companion.
🌈 Remarques
Création d'une nouvelle table 'certfication-companion-live-alerts'
💯 Pour tester