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

Allow location_type to use name for lookup #416

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

jmcgill298
Copy link
Contributor

Currently location_types that use the name to reference the related object will always report as "changed" since it compares the name with the ID of the existing location_type. Updated to convert name to ID.

Currently location_types that use the name to reference the related
object will always report as "changed" since it compares the name with
the ID of the existing location_type. Updated to convert name to ID.
@jmcgill298
Copy link
Contributor Author

image image

@joewesch
Copy link
Contributor

Can you please change all location_type to use the name in the location test file to confirm this works as expected?

@jmcgill298
Copy link
Contributor Author

Can you please change all location_type to use the name in the location test file to confirm this works as expected?

should we test both?

@joewesch
Copy link
Contributor

Can you please change all location_type to use the name in the location test file to confirm this works as expected?

should we test both?

Sure, if you want to leave half as key that works too.

@jmcgill298 jmcgill298 merged commit 50b27cf into develop Aug 29, 2024
7 checks passed
@jmcgill298 jmcgill298 deleted the jmcgill/location_type-lookup branch August 29, 2024 14:25
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