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

Update how partOf is added to a location #234

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

Wambere
Copy link
Contributor

@Wambere Wambere commented Jul 23, 2024

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes #230
Also part of #210

Engineer Checklist

  • I have run ./gradlew spotlessApply to check my code follows the project's style guide
  • I have built and run the efsity jar to verify my change fixes the issue and/or does not break the application

).replace("$parentID", locationParentId)
if locationParentId and locationParentId != "parentId":
payload_string = payload_string.replace("$parentID", locationParentId)
if not locationParentName or locationParentName == "parentName":
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just mentioning here, that this implementation makes the assumption that if only the parentName is provided and the id is not provided, then it's okay to ignore it and remove the whole section

Copy link
Member

Choose a reason for hiding this comment

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

Yes, this assumption is correct.

@Wambere Wambere enabled auto-merge (squash) July 23, 2024 10:23
@Wambere Wambere merged commit 69e34a1 into main Jul 23, 2024
4 checks passed
@Wambere Wambere deleted the 230-add-location-id branch July 23, 2024 12:00
Wambere added a commit that referenced this pull request Jul 29, 2024
Co-authored-by: Peter Muriuki <pmuriuki98@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Importer] Allow adding the Location partOf even when the reference display does not exist
3 participants