-
Notifications
You must be signed in to change notification settings - Fork 109
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
Fixed the problem with parsing instances #416
Conversation
@grzesiek2010 This looks like it will break last-saved support. Is that something you tried? Edit: hmm, looks like you did. I haven't dug very deep yet but the check on a |
Yes, I tried as I said.
It was moved there just to return but we still need that additional check https://github.com/opendatakit/javarosa/pull/406/files#diff-3c2dbe0e3dc62d2d751abeb77add7986L464 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, won't this break support for jr://file-csv/
? That might be why the bug went away, because that form is trying to use jr://file-csv/
.
Above, instanceSrc = parseInstanceSrc()
should already only be non-null if src
starts with "jr://file/
, "jr://file-csv/
, or "jr://instance/last-saved/
so I don't think this is quite the right fix.
Agree with @cooperka. The exception is a deserialization exception. Did you clear the cached file between each trial, @grzesiek2010? |
yes, maybe I missed something... |
Ok a few last words from me before I go to sleep: Maybe I missed something I don't really understand your concerns @cooperka but you know the code here better since you are the last editor. @lognaturel @cooperka if you are 100% sure I was wrong please go ahead and fix it. |
The code prior to #406 didn't have the trailing slash that was added here (see 406 diff), so I think this change basically removes support for Thank you for the context @grzesiek2010, |
Sort of. This form doesn't actually use the |
I thought that Regardless, in that test form, we don't actually want to load All that to say that the problem has nothing to do with #406, it's actually caused by #397. But this change does incidentally work because it disables support for I'm going to mark this as |
I've checked sample preloading forms, forms with external itemsets, external secondary instances, select one external - I haven't noticed anything suspicious, any error messages, I was able to finalize forms in all cases. I have also looked for the regression in the last saved submission feature and here nothing suspicious. I hope I didn't miss anything. |
58b2429
to
e15a06d
Compare
@ggalmazor, when you are satisfied with this, please merge and re-snapshot from master! 🙏 Thanks again for the initial legwork, @grzesiek2010. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good :)
Closes #415
What has been done to verify that this works as intended?
I tested the attached form and the form provided by @kkrawczyk123 getodk/collect#2882 (comment) (Remembering previously entered values)
Why is this the best possible solution? Were any other approaches considered?
The if statement was edited in this pr #406 and it was a mistake. I think @cooperka can confirm.
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 change should just fix the problem with the attached form. I edited the code implemented for remembering previously entered values so it would be good to confirm there is no problem with that functionality as well.
Do we need any specific form for testing your changes? If so, please attach one.
The form attached to the issue and the form provided by @kkrawczyk123 getodk/collect#2882 (comment)
Does this change require updates to documentation? If so, please file an issue here and include the link below.
No.