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

MVJ-733 Fix areasearch address and district update #854

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

juho-kettunen-nc
Copy link
Contributor

Don't overwrite existing address and district information with None when geometry data is not provided.

@juho-kettunen-nc juho-kettunen-nc force-pushed the MVJ-733-fix-address-and-district-update branch from d490511 to 311c717 Compare March 3, 2025 14:53
@juho-kettunen-nc
Copy link
Contributor Author

Rebased over latest develop changes

@juho-kettunen-nc
Copy link
Contributor Author

Noticed a possible bug in implementation, will fix

@henrinie-nc
Copy link
Contributor

Unit test would be preferable for the function

If geometry service had returned a partial result (e.g. only a
district) and previous data existed for the missing variable (e.g. only
an address), the result would have mistakingly bundled them together.
@juho-kettunen-nc
Copy link
Contributor Author

Ready for review again, @henrinie-nc . Will squash when merging

assert district == district_from_geometry


@pytest.mark.django_db
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the mark.django_db needed, does this do something with db?

Copy link
Contributor

@henrinie-nc henrinie-nc 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! Wondering about some of the test, is the db marker decorator needed (I don't know the answer and would like to)?

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