swh.web.mailmap.models module#
- class swh.web.mailmap.models.UserMailmapManager(*args, **kwargs)[source]#
Bases:
Manager
A queryset manager which defers all
models.DateTimeField
fields, to avoid resetting them to an old value involuntarily.
- class swh.web.mailmap.models.UserMailmap(*args, **kwargs)[source]#
Bases:
Model
Model storing mailmap settings submitted by users.
- user_id#
Optional user id from Keycloak
- from_email#
Email address to find author in the archive
- from_email_verified#
Indicates if the from email has been verified
- from_email_verification_request_date#
Last from email verification request date
- display_name#
Display name to use for the author instead of the archived one
- display_name_activated#
Indicates if the new display name should be used
- to_email#
Optional new email to use in the display name instead of the archived one
- to_email_verified#
Indicates if the to email has been verified
- to_email_verification_request_date#
Last to email verification request date
- mailmap_last_processing_date#
Last mailmap synchronisation date with swh-storage
- last_update_date#
Last date that mailmap model was updated
- objects = <swh.web.mailmap.models.UserMailmapManager object>#
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- get_next_by_last_update_date(*, field=<django.db.models.fields.DateTimeField: last_update_date>, is_next=True, **kwargs)#
- get_previous_by_last_update_date(*, field=<django.db.models.fields.DateTimeField: last_update_date>, is_next=False, **kwargs)#
- id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class swh.web.mailmap.models.UserMailmapEvent(*args, **kwargs)[source]#
Bases:
Model
Represents an update to a mailmap object
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- get_next_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=True, **kwargs)#
- get_previous_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=False, **kwargs)#
- id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- timestamp#
Timestamp of the moment the event was submitted
- user_id#
User id from Keycloak of the user who changed the mailmap. (Not necessarily the one who the mail belongs to.)
- request_type#
Either
add
orupdate
.
- request#
JSON dump of the request received.
- successful#
If False, then the request failed or crashed before completing, and may or may not have altered the database’s state.