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

NEW: Mode Version Protect #33

Merged
merged 1 commit into from Nov 21, 2021
Merged

NEW: Mode Version Protect #33

merged 1 commit into from Nov 21, 2021

Conversation

jedie
Copy link
Owner

@jedie jedie commented Nov 20, 2021

Protect a model against overwriting a newer entry with an older one, by adding a auto increment version number.

@jedie jedie force-pushed the model-version-protection branch 4 times, most recently from 25ad578 to aa09b77 Compare November 21, 2021 10:51
@codecov
Copy link

codecov bot commented Nov 21, 2021

Codecov Report

Merging #33 (9b2004a) into master (7d22ced) will increase coverage by 0.90%.
The diff coverage is 96.49%.

❗ Current head 9b2004a differs from pull request most recent head 4d814dc. Consider uploading reports for the commit 4d814dc to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   80.85%   81.76%   +0.90%     
==========================================
  Files         145      147       +2     
  Lines        5882     6048     +166     
==========================================
+ Hits         4756     4945     +189     
+ Misses       1126     1103      -23     
Impacted Files Coverage Δ
django_tools_test_project/test_settings.py 100.00% <ø> (ø)
...jango_tools_test_project/tests/test_permissions.py 100.00% <ø> (ø)
...ols_test_project/tests/test_unittest_utils_user.py 100.00% <ø> (ø)
django_tools/model_version_protect/models.py 89.65% <89.65%> (ø)
django_tools/model_utils.py 46.80% <100.00%> (+20.33%) ⬆️
django_tools/model_version_protect/apps.py 100.00% <100.00%> (ø)
...o_tools/model_version_protect/tests/test_models.py 100.00% <100.00%> (ø)
...tools_test_project/django_tools_test_app/models.py 100.00% <100.00%> (ø)
...jango_tools_test_project/tests/test_model_utils.py 100.00% <100.00%> (ø)
...ols_test_app/management/commands/run_testserver.py 45.45% <0.00%> (-0.38%) ⬇️
... and 18 more

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 51cc118...4d814dc. Read the comment docs.

@jedie jedie force-pushed the model-version-protection branch 3 times, most recently from 3c14677 to b3f13aa Compare November 21, 2021 14:19
@jedie jedie changed the title Draft: NEW: Mode Version Protect NEW: Mode Version Protect Nov 21, 2021
Protect a model against overwriting a newer entry with an older one, by adding a auto increment
version number.
@jedie jedie merged commit 0298b57 into master Nov 21, 2021
@jedie jedie deleted the model-version-protection branch November 21, 2021 17:33
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.

None yet

1 participant