MCPcopy
hub / github.com/mattermost/mattermost / AddEventPriorState

Method AddEventPriorState

server/public/model/audit_record.go:115–117  ·  view source on GitHub ↗

AddEventPriorState adds the prior state of the modified object to the audit record

(object Auditable)

Source from the content-addressed store, hash-verified

113
114// AddEventPriorState adds the prior state of the modified object to the audit record
115func (rec *AuditRecord) AddEventPriorState(object Auditable) {
116 rec.EventData.PriorState = object.Auditable()
117}
118
119// AddEventResultState adds the result state of the modified object to the audit record
120func (rec *AuditRecord) AddEventResultState(object Auditable) {

Callers 15

TestAudit_LogAuditRecordFunction · 0.95
updateOAuthAppFunction · 0.80
deleteOAuthAppFunction · 0.80
regenerateOAuthAppSecretFunction · 0.80
localDeleteUserFunction · 0.80
localUpdateConfigFunction · 0.80
localPatchConfigFunction · 0.80
cancelJobFunction · 0.80
updateJobStatusFunction · 0.80
patchPropertyFieldFunction · 0.80
deletePropertyFieldFunction · 0.80

Calls 1

AuditableMethod · 0.65

Tested by 1

TestAudit_LogAuditRecordFunction · 0.76