HomeSoftware Heritage

Add support for model object anonymization

Description

Add support for model object anonymization

Simply add a BaseModel.anonymize() method. Default implementation returns
None, meaning the object is not anonymizable.

For Person, the method returns a Person whith hashed fullname (and unset
name and email).

For Revision and Release, the method returns an anonymized version of
the object, i.e. with instance of Person replaced by anonymized ones.

Details

Provenance
douarddaAuthored on May 19 2020, 4:04 PM
douarddaPushed on May 20 2020, 4:32 PM
Differential Revision
D3171: Add support for model object anonymization
Parents
rDMODcce303663432: SWHID spec: fix typos ";;" which made some examples fail
Branches
Unknown
Tags
Unknown
References
tag: v0.2.0
Build Status
Buildable 12460
Build 18912: test-and-buildJenkins console · Jenkins