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

Issue 796 support custom functions #797

Merged
merged 2 commits into from
Sep 18, 2019
Merged

Issue 796 support custom functions #797

merged 2 commits into from
Sep 18, 2019

Conversation

ggalmazor
Copy link
Contributor

@ggalmazor ggalmazor commented Sep 4, 2019

Closes #796

Use this form to test the PR: custom-function-form.txt

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

Added an automated regression test

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

A brute force approach that used actual exception messages was considered to provide a quick&dirty solution that didn't require changes in JR, but we ultimately thought it was better to add a method in JR to provide fallback function handlers that would prevent the error from #796.

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?

This should be a narrow change that only prevents the issue from #796

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.

@ggalmazor
Copy link
Contributor Author

Sorry, @joeflack4! I deleted your comment by mistake :(

I've reworked the PR to take advantage to a new feature of JavaRosa v1.16.0 and I was cleaning my own comments with my brain shut off and I deleted yours too :( :(

@ggalmazor ggalmazor marked this pull request as ready for review September 12, 2019 09:12
@kkrawczyk123
Copy link
Contributor

Tested with success!
Verified on Ubuntu, MacOS and WIndows.

@opendatakit-bot unlabel "needs testing"
@opendatakit-bot label "behavior verified"

@joeflack4
Copy link

@ggalmazor NP. Thanks for the work!

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.

Great that it ends up simplifying the pulldata case, too!

@ggalmazor ggalmazor merged commit 4453351 into getodk:master Sep 18, 2019
@ggalmazor ggalmazor deleted the issue_796_support_custom_functions branch September 18, 2019 08:24
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.

XPathUnhandledException on export of forms using 3rd party client functions
5 participants