cisagov / manage.get.gov

A Django-based domain name registrar used by the .gov domain to communicate with an EPP registry
https://get.gov
Other
54 stars 15 forks source link

Django admin: Changes to "Organization name and mailing address" not populating in "Log Entries" in Django Admin #979

Open zandercymatics opened 10 months ago

zandercymatics commented 10 months ago

Current Behavior

Within the Django Admin portal, user actions are logged under the 'Log Entries' tab. For instance, changing the 'Authorizing Official' will generate a logable event. However, this does not appear to be happening for update actions under that occur on the DomainOrgNameAddressForm object.

Expected Behavior

Updates made to the DomainOrgNameAddressForm object are logged in Django Admin.

Steps to Reproduce

  1. As a superuser or analyst, click 'manage' on an approved Domain.
  2. Click 'Organization name and mailing address' and edit any field.
  3. Navigate to /admin, then click 'log entries'
  4. Note the sound of crickets

Environment

Any supported environment.

Additional Context

image image

Issue Links

No response

vickyszuchin commented 9 months ago

Per Rachid in Product huddle chat (0/27/2023):

That #979 could be simple. Neil identified that m2m relationships need an extra little something for changes to track in django auditlog and this could be the case here

vickyszuchin commented 2 months ago

This bug has been sized and meets DoR criteria. Moving to "Ready."