You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple value select: double values written sometimes #121
I haven't been able to figure out exactly what triggers this yet; but sometimes, the complete value string seems to be written out twice (both when selecting just a single option, or selecting multiple).
Entering OMK again (either to retag a node, or as part of another form) does seem to be a prerequisite though. The doubled up string is also written out into the .osm file.
Could you send me the specifc XLS form and OSM data used? I think I understand the workflow you are describing. This only happens when revisiting a node that you previously tagged?
I'm thinking I could filter out duplicate tokens from the given string, but I'd like to know the underlying cause. This issue should piggy-back with #120 with a fix that solves both problems.
This seems to be quite a serious one; seeing it on all the phones, with different data (Kampala or Mbale) and different form versions. I've cut it down to using just one form, no osm data, one mbtiles for background.
Add a POI (mobile money agent form). Set amentiy=mobile_money_agent and select a couple of networks (for example, network=Airtel Money;MTN Mobile Money). Then save, go to end, exit & finalize form.
Add another POI (mobile money agent form). Set amentiy=mobile_money_agent and select a couple of networks. Then save, go to end, exit & finalize form.
Go to "Edit saved form", go to the first one, "Redo OSM tagging", and for both points look at the amenity and network values. Usually, at least one of them is doubled up now.
I think this problem is due to bug #115. It looks like this got introduced when we started putting timestamps on the file name. This made a unique file name on each write. I'm wondering if ODK collect rewrites media attachments (OSM files) when finalizing a form...
Not quite sure if that's connected? Just had one go from mobile_money_agent to mobile_money_agent; mobile_money_agent; mobile_money_agent; mobile_money_agent; mobile_money_agent in one save
(amenity), but network is still okay. So it seems to be an issue per key,
not the whole file? Only see one .osm file as well.
On Jan 11, 2016 12:07 AM, "Nicholas Hallahan" notifications@github.com
wrote:
I think this problem is due to bug #115 #115. It
looks like this got introduced when we started putting timestamps on the
file name. This made a unique file name on each write. I'm wondering if ODK
collect rewrites media attachments (OSM files) when finalizing a form...
This bug is really inconsistent. I was able to reproduce it a few times, doing your workflow, and not it doesn't seem to happen anymore... I think you are right, that it's a per key issue.
Activity
hallahan commentedon Jan 9, 2016
Could you send me the specifc XLS form and OSM data used? I think I understand the workflow you are describing. This only happens when revisiting a node that you previously tagged?
I'm thinking I could filter out duplicate tokens from the given string, but I'd like to know the underlying cause. This issue should piggy-back with #120 with a fix that solves both problems.
PaulUithol commentedon Jan 10, 2016
This seems to be quite a serious one; seeing it on all the phones, with different data (Kampala or Mbale) and different form versions. I've cut it down to using just one form, no osm data, one mbtiles for background.
Form: https://drive.google.com/open?id=0Bx3_hrMYdNwLUV9RZXF6U0pKb1U
Mbtiles: https://drive.google.com/open?id=0Bx3_hrMYdNwLN0taTUJUbXZWdTg
One sequence that certainly seems to trigger it:
amentiy=mobile_money_agentand select a couple of networks (for example,network=Airtel Money;MTN Mobile Money). Then save, go to end, exit & finalize form.amentiy=mobile_money_agentand select a couple of networks. Then save, go to end, exit & finalize form.PaulUithol commentedon Jan 10, 2016
It keeps adding values as well; I've seen them with yes;yes;yes for a yes/no question.
hallahan commentedon Jan 10, 2016
Troubleshooting today.
hallahan commentedon Jan 10, 2016
I think this problem is due to bug #115. It looks like this got introduced when we started putting timestamps on the file name. This made a unique file name on each write. I'm wondering if ODK collect rewrites media attachments (OSM files) when finalizing a form...
PaulUithol commentedon Jan 10, 2016
Not quite sure if that's connected? Just had one go from
mobile_money_agenttomobile_money_agent; mobile_money_agent; mobile_money_agent; mobile_money_agent; mobile_money_agentin one save(amenity), but network is still okay. So it seems to be an issue per key,
not the whole file? Only see one .osm file as well.
On Jan 11, 2016 12:07 AM, "Nicholas Hallahan" notifications@github.com
wrote:
hallahan commentedon Jan 10, 2016
This bug is really inconsistent. I was able to reproduce it a few times, doing your workflow, and not it doesn't seem to happen anymore... I think you are right, that it's a per key issue.
hallahan commentedon Jan 10, 2016
Regardless, I think putting all of the tag values that I'm gathering into a HashSet will guarantee that the set has unique values.
http://developer.android.com/reference/java/util/HashSet.html
Then, I'll iterate through that hash set, putting in
;with that.Fixes #121