HomeSoftware Heritage

Add a sync_mailmaps management command

Description

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.

Details

Provenance
olasdAuthored on Feb 4 2022, 3:19 PM
olasdPushed on Feb 4 2022, 9:05 PM
Differential Revision
D7090: Add a sync_mailmaps management command
Parents
rDWAPPS4ed4512e7bdf: templates/show-swhid: Add link to HOWTO reference your code page
Branches
Unknown
Tags
Unknown
Build Status
Buildable 26566
Build 41550: test-and-buildJenkins console · Jenkins