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

Issue 359 filter metadata date marked as complete #365

Merged
merged 4 commits into from
Jan 2, 2019
Merged

Issue 359 filter metadata date marked as complete #365

merged 4 commits into from
Jan 2, 2019

Conversation

ggalmazor
Copy link
Contributor

Closes #359, and #360

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

Try to filter submissions by submission date or "date marked as complete" metadata fields and verify it works

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

This is the narrowest solution I could thin of.

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

No.

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.

No.

- This makes the code more clear and easy to understand
- It also allows us to reason better about those continue statements
- Replace continues with breaks
- Also, make it sturdier by explicitly throwing when it receives an unexpected form element model type.
@ggalmazor ggalmazor merged commit c13926f into getodk:master Jan 2, 2019
@ggalmazor ggalmazor deleted the issue_359_filter_metadata_date_marked_as_complete branch January 2, 2019 06:31
case INTEGER:
case DECIMAL:
case SELECT1:
case STRING:
Copy link
Contributor

Choose a reason for hiding this comment

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

Much cleaner!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, you have an eye for this :) Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants