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

Handle entities without IDs #763

Merged
merged 5 commits into from
May 27, 2024
Merged

Handle entities without IDs #763

merged 5 commits into from
May 27, 2024

Conversation

seadowg
Copy link
Member

@seadowg seadowg commented May 13, 2024

Work towards getodk/collect#6109

What has been done to verify that this works as intended?

New tests.

Why is this the best possible solution? Were any other approaches considered?

The idea here is to still expose these entities, but make entity ID explicity null. Being more lenient here allows the UI (Collect) to make a decision about how it wants to deal with the problem. We could have altnernatively just hidden this happening, but that would restrict us from logging or even showing an error in the future.

The emerging philosophy here is that JavaRosa's Entity is more of a representation of the XML node than of the conceptiual "entity" itself. The versioning logic disagress with this, but we'll be changing that soon most likely (with discussions of runID etc).

@seadowg seadowg requested a review from lognaturel May 23, 2024 15:07
@seadowg seadowg marked this pull request as ready for review May 23, 2024 15:07
Copy link
Member

@lognaturel lognaturel left a comment

Choose a reason for hiding this comment

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

Minor naming issue and then this looks ready to merge to me. I’d prefer to squash because the direction changed but will leave that up to you.

@seadowg seadowg merged commit 9408533 into getodk:master May 27, 2024
3 checks passed
@seadowg seadowg deleted the entity-updates branch May 27, 2024 08:59
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