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

Field tracker patch save: failing test and fix #492

Closed

Conversation

MRigal
Copy link
Member

@MRigal MRigal commented Jul 5, 2021

Problem

Breaking change behaviour on FieldTracker, see #491

Solution

Going back to patch the save() and not the save_base() method. Adding an extra parameter to keep the feature introduced with handling update_fields

Commandments

  • Write PEP8 compliant code.
  • Cover it with tests.
  • Update CHANGES.rst file to describe the changes, and quote according issue with GH-<issue_number>.
  • Pay attention to backward compatibility, or if it breaks it, explain why.
  • Update documentation (if relevant).

@codecov
Copy link

codecov bot commented Jul 5, 2021

Codecov Report

Merging #492 (68f7404) into master (9deb39d) will increase coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #492      +/-   ##
==========================================
+ Coverage   94.70%   94.83%   +0.13%     
==========================================
  Files           6        6              
  Lines         774      775       +1     
==========================================
+ Hits          733      735       +2     
+ Misses         41       40       -1     
Impacted Files Coverage Δ
model_utils/tracker.py 81.86% <100.00%> (+0.61%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9deb39d...68f7404. Read the comment docs.

tests: Add failing test for case tracker used after super().save()

tests: Add failing test for case tracker used after super().save()

fix: Add foo

fix: Flake8
@MRigal
Copy link
Member Author

MRigal commented Oct 8, 2021

Closing in favor of #494

@MRigal MRigal closed this Oct 8, 2021
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.

1 participant