Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle query for the audit logs of deleted objects #558

Merged

Conversation

hoangpn
Copy link
Contributor

@hoangpn hoangpn commented Dec 12, 2024

If an object is deleted, the current code cannot find the object or its related objects, and causes an error in the Audit Log feature (Edit History) when we try to filter that object. In that case, we directly use the object_id and content_type_id fields of the Audit model to find it and skip finding the related objects.

AS-IS:
image

image

TO-BE:
image

image

If an object is deleted, the current code cannot find the object or its related objects,
and causes an error in the Audit Log feature when we try to filter that object.
In that case, we directly use the object_id and content_type_id fields of the Audit model
to find it and skip finding the related objects.
@hoangpn hoangpn requested review from kfdm and a team as code owners December 12, 2024 02:43
Copy link
Contributor

@vincent-olivert-riera vincent-olivert-riera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@vincent-olivert-riera vincent-olivert-riera merged commit 6a2356f into line:master Dec 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants