Skip to content
Snippets Groups Projects
Forked from Platform / Development / swh-model
Source project has a limited visibility.
  • David Douard's avatar
    29312dff
    Add support for model object anonymization · 29312dff
    David Douard authored
    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.
    29312dff
    History
    Add support for model object anonymization
    David Douard authored
    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.