Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

Issue 373 Temporal filters after upgrading to v2.0 #374

Merged
merged 1 commit into from
Jan 14, 2019
Merged

Issue 373 Temporal filters after upgrading to v2.0 #374

merged 1 commit into from
Jan 14, 2019

Conversation

ggalmazor
Copy link
Contributor

Closes #373

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

Manually tested following the instructions on #373.

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

This PR improves the detection of temporal fields of forms uploaded before upgrading to v2.0

  • They can lack their FormElementModel
  • They can be metadata fields
  • They can have a FormElementModel without child elements

Are there any risks to merging this code? If so, what are they?

Nope.

Do we need any specific form for testing your changes? If so, please attach one

Yes. The instructions to reproduce the scenario are attached to #373

Does this change require updates to documentation? If so, please file an issue at https://github.com/opendatakit/docs/issues/new and include the link below.

Nope.

- They can lack their FormElementModel
- They can be metadata fields
- They can have a FormElementModel without child elements
@ggalmazor ggalmazor added the bug label Jan 11, 2019
@ggalmazor ggalmazor added this to the v2.0.0 milestone Jan 11, 2019
@ggalmazor ggalmazor requested a review from dcbriccetti January 11, 2019 07:52
else
throw new IllegalArgumentException("Unrecognized dateTime field");
super.addFilterChildren(fem, column.getChildColumnCode(), op, compareValue);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed the exception because now I know more about this and I'm more confident about the range of scenarios we could get.

@ggalmazor ggalmazor merged commit b0882f7 into getodk:master Jan 14, 2019
@ggalmazor ggalmazor deleted the issue_373_temporal_filters_after_upgrade branch January 14, 2019 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants