Skip to content
This repository was archived by the owner on Apr 16, 2022. It is now read-only.

Provide fallback cursor implementation #769

Merged
merged 5 commits into from
Aug 6, 2019
Merged

Provide fallback cursor implementation #769

merged 5 commits into from
Aug 6, 2019

Conversation

ggalmazor
Copy link
Contributor

@ggalmazor ggalmazor commented Aug 1, 2019

Closes #768

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

Since we can't test every aggregate compatible server, I've added automated tests covering the fallback option.

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

This is what should have been shipped in v1.16 in the first place. An opaque cursor implementation as a fallback for non-aggregate server is the most reasonable way to maintain compatibility with non aggregate servers.

Code with the solution was cherry picked from cims-bioko@91ca88a (thanks, @batkinson!)

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Users using non-aggregate servers should be able to pull forms from their servers after this PR gets merged.

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.

@ggalmazor ggalmazor added this to the v1.16.2 milestone Aug 1, 2019
@ggalmazor ggalmazor requested a review from batkinson August 1, 2019 09:37
- Even though any value outside the set of "aggregate", "ona", or "opaque" would be invalid, we don't really need to fail when the cursor is not ona or aggregate, because an opaque cursor is able to handle any cursor value.
@ggalmazor ggalmazor requested a review from dcbriccetti August 5, 2019 05:55
@ggalmazor ggalmazor merged commit 4cf861d into getodk:master Aug 6, 2019
@ggalmazor ggalmazor deleted the issue_768_provide_fallback_cursor_implementation branch August 6, 2019 18:03
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.

Pulls no longer work due to 'Unknown cursor format'
3 participants