Skip to content
Snippets Groups Projects
Commit 39a32f95 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Add a sync_mailmaps management command

The command refreshes all the active mailmaps, and disables every
mailmap that has recently been updated and marked as disabled, once.

To do these actions as atomically as possible, we make sure to select
all rows for update, and to defer all _date fields in the default
queryset manager for UserMailmap objects to avoid resetting them to
earlier values by mistake.
parent 4ed4512e
No related branches found
No related tags found
1 merge request!714Add a sync_mailmaps management command
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment