-
Notifications
You must be signed in to change notification settings - Fork 57
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] Export de la liste blanche SCO #10593
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 : |
const token = this.session.data.authenticated.access_token; | ||
await this.fileSaver.save({ url, fileName, token }); | ||
} catch (error) { | ||
this.notifications.error(this.intl.t('pages.administration.certification.sco-whitelist.export.error')); |
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.
si jamais ma PR passe avant (mais j'y crois moyen 😅)
this.notifications.error(this.intl.t('pages.administration.certification.sco-whitelist.export.error')); | |
this.pixToast.sendErrorNotification({message:this.intl.t('pages.administration.certification.sco-whitelist.export.error')}); |
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.
Est-ce que je peux le faire avant que ta PR merge ? Sinon je vais devoir laisser ainsi
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.
Tu pourrais avant mais la notif n'apparaîtra pas tant que ma PR n'est pas mergé :)
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.
Ma PR à été mergé, le commentaire plus haut est à corriger :)
api/src/certification/configuration/application/sco-whitelist-route.js
Outdated
Show resolved
Hide resolved
api/src/certification/configuration/application/sco-whitelist-route.js
Outdated
Show resolved
Hide resolved
c45966a
to
aeab8dd
Compare
Co-authored-by: P-Jeremy < jemyplu@gmail.com>
1ab82f7
to
a5d0b65
Compare
"externalId"
"CERTIFICATION_SCO_MANAGING_STUDENTS_EXTERNAL_ID","SCOSCO","SCO_123"
"externalId"
"CERTIFICATION_SCO_MANAGING_STUDENTS_EXTERNAL_ID"
"SCOSCO"
"SCO_123"
|
OK, c'était dans |
const numberOfUpdatedLines = await centerRepository.addToWhitelistByExternalIds({ externalIds }); | ||
|
||
if (externalIds.length !== numberOfUpdatedLines) { | ||
throw new RangeError('Some externalIds are not valid, please verify whitelist'); |
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.
Cette erreur n'est pas catché ce qui donne la 500
🍂 Problème
Dans la suite des episodes "on en peut plus de gerer la liste blanche par variable d'environnement", et pour pouvoir importer une liste blanche, il faut pouvoir aussi l'exporter.
🌰 Proposition
🎃 Remarques
🪵 Pour tester
/administration/certification