Author Topic: Locus Map - cloud/sync server  (Read 2956 times)

Offline slarti76

  • Apprentice of Locus
  • **
  • Posts: 236
  • Thanked: 24 times
    • View Profile
  • Device: S9, XCover 4s - Galaxy Tab S5e & S2 9.7
Re: Locus Map - cloud/sync server
« Reply #75 on: November 02, 2020, 08:37:03 »
Quote

sorry, but this is intended behavior.
Sync system currently sync data, but not it's visibility state.


I really want go back to this point ....

I thought sync is build for 'syncing' several devices to have the same data (points, tracks) on more than one device.

And in that way I would like to use it:
Building routes, loading and sorting geocaches on my tablet  ... and than go out with my synced mobile and see all those routes and caches ... and just walk and find them.😁
At the moment I have all my tracks and caches on my mobile but especially all those needed new points are invisible.
I have to enter every folder and set all to visible 😳

Do I use/understand 'sync' in a wrong manner?

What is the use case for a different visibility state?

Is there a workarround for this/maybe only my 🥴 problem?
I personally support the "don't sync visibility" decision, because I use Locus in different ways on my phones (in the field) and tablet (planning, editing recorded tracks, making map images) and would be annoyed by synced visibility. But I also see your usecase. For me, this would really be something that needs to have a switch "Sync visibility of points/tracks".
From a development standpoint, I also understand if this is lower on the list for Menion for now (adds additional complexity, so best to first go without). But it should be on the list.
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11929
  • Thanked: 461 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #76 on: November 02, 2020, 08:56:45 »
@slarti76
sync of icons: it should be doable over basic sync of zip files and it probably ends like this, but I would rather discuss this with the rest of the team before I'll post some more info.

Anyway, custom icons & attachments are currently not synced, we know about it, we consider this as a limitation and will definitely work on it with higher priority as the next step.

@Andrew Heard
"More info" button > well, right. More info is not really "more info". Some stats may be useful here, to see exact progress...

Duplication: hmm, there had to be something that caused this problem! Your first and second sync were from the same device? There was no restore of the old manual backup between sync?

@jonny.blue
Sync of the visibility: sync system is not just between the device, but also for the web platform (web planner). As @slarti76 correctly wrote, all these "devices" are most probably used for the different use-cases. Automatic sync of item visibility for the web means always load all visible data = overkill for the web. It will also cause a lot more synchronization operations because not just editing of the point/track will trigger a sync, but also it's simple change in the visibility. I see a few more problems that may come with it. So sorry, no, it is not planned and it brings a lot more negative effects than benefits.

Anyway, as usually ... time and usage in the field may reveal unexpected results/usages that were not visible from the sofa :).

@michaelbechtold
I remember this proposal well. We discussed this for quite a long internally but were not satisfied with any possible solution based on generated hash from title/content etc. So yes, we are going the way, where the first used device should be a master device (it is automatic for new users, existing users have to be a little careful) and all other devices get a choice in updated UI, if they want to keep & merge current data or want's to remove local content completely and pull data from the server.

If we prepare UI for this "flow" correctly, it should be perfectly safe and 100% accurate. I'm anyway curios, what happen to Andrew because data duplication should never happen.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 
The following users thanked this post: Andrew Heard

Offline michaelbechtold

  • Master of Locus
  • ****
  • Posts: 658
  • Thanked: 56 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #77 on: November 02, 2020, 18:55:25 »
I have data duplication, too - the DB is now nearly 2 GB in size ...
But I can remedy, as this device is not used for active tracking :-)
 

Offline Andrew Heard

  • Master of Locus
  • ****
  • Posts: 821
  • Thanked: 49 times
    • View Profile
  • Device: Samsung Galaxy A5 Oreo/8, Lenovo Note 4 Nougat/7.1
Re: Locus Map - cloud/sync server
« Reply #78 on: November 02, 2020, 23:01:41 »
@slarti76
Duplication: hmm, there had to be something that caused this problem! Your first and second sync were from the same device? There was no restore of the old manual backup between sync?
1st & 2nd sync were from same device - I only have LM4 installed on 1 device; "about" 2 weeks apart; no restore in between the 2 syncs; I haven't tried to sync again (risk) but next time I will do a full backup just before a test sync because this caused lots of work & nearly lost some data that was created in the 2 week period. Happy to continue testing but waiting for your advise.
« Last Edit: November 02, 2020, 23:06:00 by Andrew Heard »
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11929
  • Thanked: 461 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #79 on: November 03, 2020, 12:54:13 »
Both of you, hmm ... Michael, any idea how this may happen, as you already understand the system in the background. Two devices and merged data?

Andrew, this is a mystery to me. May you please share (privately or the public, no sensitive info inside) "Locus/data/database/sync.db" file? Inside are metadata for all sync tasks done on your device, thanks.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 

Offline michaelbechtold

  • Master of Locus
  • ****
  • Posts: 658
  • Thanked: 56 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #80 on: November 03, 2020, 23:59:29 »
Well, Menion, I know I had an older copy of the DB on that device which ended up with duplicates.
That did duplicate in my earlier testing phase and we discussed it. "Works as designed" in the end, right ?
 

Offline Andrew Heard

  • Master of Locus
  • ****
  • Posts: 821
  • Thanked: 49 times
    • View Profile
  • Device: Samsung Galaxy A5 Oreo/8, Lenovo Note 4 Nougat/7.1
Re: Locus Map - cloud/sync server
« Reply #81 on: November 04, 2020, 05:15:58 »
May you please share (privately or the public, no sensitive info inside) "Locus/data/database/sync.db" file?
I've emailed you the file. Thanks.
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11929
  • Thanked: 461 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #82 on: November 04, 2020, 09:43:01 »
@michalbechtold
well, yes, it's intended. Anyway, this should not happen with the latest version without user confirmation. When you init sync on your second device and this device detects any existing data on the server, it asks you if you want to duplicate data or replace local data with the server.

@Andrew Heard
thanks for the database. I've discussed this right now with @janaton (responsible for the server part) and we are unable to find any issue directly on our side. You are aware that Locus Map Free (LM4 alpha) and Locus Map Pro share the same data right? Isn't possible that you restored the backup/database in Locus Map Pro?
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 
The following users thanked this post: michaelbechtold

Offline Andrew Heard

  • Master of Locus
  • ****
  • Posts: 821
  • Thanked: 49 times
    • View Profile
  • Device: Samsung Galaxy A5 Oreo/8, Lenovo Note 4 Nougat/7.1
Re: Locus Map - cloud/sync server
« Reply #83 on: November 04, 2020, 23:19:28 »
You are aware that Locus Map Free (LM4 alpha) and Locus Map Pro share the same data right?
yes

Isn't possible that you restored the backup/database in Locus Map Pro?
do you mean sync? I haven't restored any backup. LM3Pro doesn't have any sync function right? I don't it's possible.

this should not happen with the latest version without user confirmation
is it possible to delete all cloud sync data before I retest? or what do you suggest I test next?
« Last Edit: November 04, 2020, 23:21:21 by Andrew Heard »