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

Set history delete_related to False by default #557

Merged

Conversation

aleh-rymasheuski
Copy link
Contributor

@aleh-rymasheuski aleh-rymasheuski commented Aug 24, 2023

Based on the discussion in #493 and my comment at #493 (comment), we should not delete audit log entries together with the tracked object by default.

This is a breaking change. The default behavior is to delete the
related objects, but it doesn't make sense to apply it to audit log
entries, at least not by default.
@aleh-rymasheuski aleh-rymasheuski added this to the 3.0 milestone Aug 24, 2023
@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Merging #557 (c24c813) into master (699d838) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #557   +/-   ##
=======================================
  Coverage   94.93%   94.93%           
=======================================
  Files          31       31           
  Lines         988      988           
=======================================
  Hits          938      938           
  Misses         50       50           
Files Changed Coverage Δ
auditlog/models.py 90.37% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@hramezani
Copy link
Member

Thanks @aleh-rymasheuski

@hramezani hramezani merged commit fb1ae7a into jazzband:master Aug 24, 2023
7 checks passed
aleh-rymasheuski added a commit to MacmillanPlatform/django-auditlog that referenced this pull request Sep 1, 2023
This is a breaking change. The default behavior is to delete the
related objects, but it doesn't make sense to apply it to audit log
entries, at least not by default.
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