-
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] ajoute un script pour créer les knowledge-element-snapshot perdus (pix-17101) #11780
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 : |
}); | ||
|
||
describe('#handle', function () { | ||
it("should create ke-snapshot for participation when they don't exists", async function () { |
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.
il manque un test pour valider qu'on prend bien les ke avant la date de partage de résultats
454f1bc
to
f6e957f
Compare
|
||
const LOG_CONTEXT = 'add-remove-knowledge-element-snapshot'; | ||
|
||
class AddRemoveKnowledgeElementSnapshots extends Script { |
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.
addRemove ? removed ?
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.
AddMissingKnowledgeElementSnapshots
?
continue; | ||
} | ||
if (campaign.isExam) { | ||
logger.error(`${LOG_CONTEXT} | Skip campaign participation ${campaignParticipationId}, campaign to exam`); |
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.
campaign is of type exam
🌸 Problème
Suite à des incidents de prod et un bug dans l'utilisation des transactions, certaines données ont partiellement été écrites au moment du partage de résultat. Le statut de la campagne a été mis à jour mais le snapshot associé n'a pas été créé.
🌳 Proposition
On a corrigé l'utilisation de transaction. Il faut maintenant rattraper les données et créer les snapshot
🐝 Remarques
ras
🤧 Pour tester