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

Remove unique constraint from land use agreement estate ids #188

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

hkotkanen
Copy link
Contributor

@hkotkanen hkotkanen commented Dec 3, 2020

Remove the uniqueness constraint from land use agreement estate_id.

Updating unique fields in nested serializers has long been a source of trouble and/or discussion in DRF, and as I don't really see the need for it here, I opted to remove it instead of writing a workaround.

@codecov-io
Copy link

codecov-io commented Dec 3, 2020

Codecov Report

Merging #188 (3400a78) into develop (a3bae80) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #188      +/-   ##
===========================================
+ Coverage    71.72%   71.74%   +0.01%     
===========================================
  Files          261      262       +1     
  Lines        16234    16244      +10     
  Branches      1681     1681              
===========================================
+ Hits         11644    11654      +10     
  Misses        4367     4367              
  Partials       223      223              
Impacted Files Coverage Δ
...ns/0026_land_use_agreement_estate_remove_unique.py 100.00% <100.00%> (ø)
leasing/models/land_use_agreement.py 97.02% <100.00%> (ø)
leasing/serializers/land_use_agreement.py 100.00% <100.00%> (ø)

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 a3bae80...3400a78. Read the comment docs.

Copy link
Contributor

@tomijarvi tomijarvi left a comment

Choose a reason for hiding this comment

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

Everything looks good 👍

@hkotkanen hkotkanen merged commit 61920e0 into develop Dec 4, 2020
@hkotkanen hkotkanen deleted the fix-land-use-agreement-estate-save-existing branch December 4, 2020 08:09
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.

3 participants