Skip to content
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

Add warning upon entry of identical data #91

Open
saemiw opened this issue Sep 24, 2018 · 5 comments
Open

Add warning upon entry of identical data #91

saemiw opened this issue Sep 24, 2018 · 5 comments

Comments

@saemiw
Copy link

saemiw commented Sep 24, 2018

We had sometimes to problem that field workers forgot/confused that they already imported data from a certain tablet. They then copied and synchronised the same data again and finally ended up with 2 rows of the same data set. It would be nice to have some warnings like "an identical data entry already exists, are you sure you want to synronise?" or some the like. This idea probably need some more thought but some kind of checks to prevent double synchronisation would be a nice improvement one day.

@m-kuhn
Copy link
Member

m-kuhn commented Sep 24, 2018

This is pretty close to one of the design limitations of the offline editing code. But I guess still on the side that can be solved.

@saemiw
Copy link
Author

saemiw commented Sep 24, 2018

O.k. good to know.

As a reminder: If QFieldSync was to synchronise directly on the device (instead of packing files that need copy'n'pasting) this could probably reduce the risk of double synchronisation. See discussion here https://github.com/opengisch/QField/issues/370

@m-kuhn
Copy link
Member

m-kuhn commented Sep 24, 2018

On the contrary, if QField would sync directly, it could keep track of what is synced already and make sure it's not synced again. Whereas now, someone can easily sync the same files twice.

@saemiw
Copy link
Author

saemiw commented Sep 25, 2018

More precision on this issue: A possible solution (discussed with @m-kuhn) could involve the use of MD5 hashes that allows checking if an identical file has already been synchronised. If this is the case a warning message should be triggered. (side remark: I am thinking in synrhonising geopackage files set offline).

The information what files were alsready synchronised should be stored in the "mother project" (i.e. the project from where the data were set offline and are now synchronised back to).

@OBVYamaska
Copy link

Old issue, but any improvement?
We are looking for a solution on a similar issue (#577).

Also, some users will sync their project from QField, but use the same project back on their tablet and take new data in the field. Of course, when they try to sync back this project, the first datas that were synced once are still recognized as "new" data by the plugin, creating duplicates. I'm wondering it the plugin could repackage these datas to the QField project as part of the original package (restart the log) after a sync, so the same project could be used again and again without the need to repackage everytime? This is a clear limitation for the level of our users right now.

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

No branches or pull requests

4 participants