Files
overleaf-cep/services/web/scripts
Antoine Clausse f2788868ac [web] Create script to re-add wrongly deleted emails (#29550)
* Allow passing auditLog extra info in addEmailAddress

* Create script re_add_deleted_emails.mjs

* Check email validity when parsing the CSV

* Allow no IP and initiator for the log events

* Add an acceptance test on re_add_deleted_emails

* Fix remove_unconfirmed_emails.mjs

We're not planning to run this again, but this could help if some code from here ever gets copy-pasted

* Fix remove_unconfirmed_emails.mjs

Rename `emailsToRemove` to `emailsToRemoveCandidates`

* Remove console.logs of event logs:

That's unnecessary complexity and we already have the data from the previous script

* Copy `addEmailAddress` into the script

* Handle primary emails correctly

* Ignore a TS error

* Fix async function in createUsers (tests)

* Add assertion for already in use emails in ReAddDeletedEmailsTests

* Add information in admin-panel for add-email audit logs

GitOrigin-RevId: f8480426d7b323f88a268874488d9ae641bc6045
2025-11-07 09:05:17 +00:00
..
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-10-21 08:05:37 +00:00
2025-10-21 08:05:42 +00:00
2025-11-06 09:07:09 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2025-10-23 08:06:10 +00:00
2025-10-23 08:06:10 +00:00
2025-10-23 08:06:10 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-09-09 08:06:36 +00:00
2025-11-06 09:05:57 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-10-23 08:06:10 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00