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

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11838
  • Thanked: 434 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #30 on: September 11, 2020, 19:53:40 »
@balloni55
ah so @janaton was correct when told me that there may be a problem with the icon of the group. Thanks for the video, I've added this to my tasks for the next days. Seems it works correctly for points, but not for groups with custom (but not available) icons.

Behavior with attachments is currently correct. They are not currently synchronized, anyway, it is a task with will work on, during the next months as well.
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: 647
  • Thanked: 52 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #31 on: September 11, 2020, 22:31:08 »
@balloni55
...
I've just uploaded new version "MapGooglePlay_3.48.0.6_964_beta", so give it a try. I believe it will works correctly now.
...
Hi Menion,
looking at Google Drive I only see the 960 version from late August. How to get to the 964, pls ?
TXs and cheers
Michael
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11838
  • Thanked: 434 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #32 on: September 11, 2020, 23:11:58 »
Check link in the first post. I work on sync and routing separately, so every topic has its own versions. Once, sync will be considered as "final", I'll merge them.

Sent from my Pixel 2 using Tapatalk

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: 790
  • Thanked: 46 times
    • View Profile
  • Device: Samsung Galaxy A5 Oreo/8, Lenovo Note 4 Nougat/7.1
Re: Locus Map - cloud/sync server
« Reply #33 on: September 12, 2020, 01:47:58 »
Just a very low priority thought, and I'm sure there is help topic elsewhere... With public sharing of tracks it becomes even more useful to implement a feature where the start or end of a recorded track can be optionally deleted so that the home address can be obfuscated/ hidden. Of course this is already possible via the track editor, but is too tedious for most users just to hide their home address.
 

Offline tapio

  • Padavan of Locus
  • ***
  • Posts: 382
  • Thanked: 63 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #34 on: September 12, 2020, 10:14:21 »
I wouldn't call it "backup" btw. - It syncs deletions to server. With the term backup, people would eg. expect to get accidentally deleted tracks back - which is not possible.
 

Offline michaelbechtold

  • Master of Locus
  • ****
  • Posts: 647
  • Thanked: 52 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #35 on: September 12, 2020, 19:20:46 »
Hi Menion and Janaton,
I am reading about conflict resolutions, even deletions and in particular the latter rings alarm bells.
To save users and Asamm from trouble (and believe me, when that goes out into the wild, life WILL become wild ...) Istrongly propose at least two things:
- any sync run shall create a separate, human readable log file which includes all points and track actions in a meaningful description
- any overwrite should not be a physical overwrite in the DB, but rather creating a new point/track and makr the earlier one "invisible"
- same for deletions
- then add a cleanup function that physically removes those flagged entries
- and if you want to be really nice, also offer to restore (with "restored-DATE") inserted into the object name
If you think this may puzzle users, you can offer such as "safe mode" :-)
Just my 2c
Cheers
Michael
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11838
  • Thanked: 434 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #36 on: September 12, 2020, 22:02:52 »
@Andrew Heard
good point, we probably forget on this important point. I've added this to list of things to discuss on our next meeting, thanks.

@tapio
correct, backup is little bit "missleading" :)

@michaelbechtold
hmm quite a complex change. I believe that such backups won't be necessary on the server-side. Ondřej (@janaton) already tried to do something similar, but in the end we declined this concept. I'll add this as a note to our discussion as well, thanks for the tip!
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: 647
  • Thanked: 52 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #37 on: September 12, 2020, 22:37:20 »
Hi Menion,
I am not talking about server side. Today you notify about the last update. Locally on the device.
That could be a history of more than one.
When ypou tap the "?" you get some stats today. Very technical. That should be a drill down for each category: addition, deletion, change. All locally on the device, as you must have this information there anyway. Hence no complexity.
The flagging etc. I propose below is also LOCAL, not on the server side.
Resilience ...
Cheers
Michael
 

Offline michaelbechtold

  • Master of Locus
  • ****
  • Posts: 647
  • Thanked: 52 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #38 on: September 12, 2020, 23:08:02 »
Now some test results:
- tracks DB is nearly 1 GB in size
- waypoints has about 35,000 entries (6 MB)
- this is the sequence of events
- S10 has the latest DB, sync, runs through
- Note 3: started sync around 16:30 - still not finished, now at 8% of the points
- LG G5: it had an older version of the DBs, a bit smaller. Sync started - everything flattened
- Tab S6 lite: DB grew massively in size (now 1.4 GB), but seems to work at least. However, now with a new sync start, the points are flattened (groups are still there, but empty)
 

Offline michaelbechtold

  • Master of Locus
  • ****
  • Posts: 647
  • Thanked: 52 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #39 on: September 12, 2020, 23:29:46 »
New observation on the Tab: all groups are there twice, some appear even a third time. Many of them are not complete.
Quite a mess !
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11838
  • Thanked: 434 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #40 on: September 12, 2020, 23:52:20 »
Do I understand correctly, that you have more devices, everyone with your own version of the database and you started full sync on all of them? Then all your data are merged on the server and downloaded on all devices!

During the first sync, you have an options to perform "full-sync" so merge current device data with data already existing on the server or start sync as a new device, so all local data are deleted and data already existing on the server are downloaded -> and this option should be used on all secondary devices!
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: 647
  • Thanked: 52 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #41 on: September 13, 2020, 08:36:46 »
Well, what you describe is a copy/paste, not a sync.
I had the suspicion that on the older devices there were some tracks that I had not manually transferred to the latest device (S10) in the past (waiting for your sync feature :-)).
So they would NOT be a fresh install, but rather a full-sync for a good reason.

Is there a way to access the server for my account and have a list of what is there ? You know, I do not need fancy features for this kind of fundamental testing.
 

Offline janaton

  • Administrator
  • Newbie
  • *****
  • Posts: 6
  • Thanked: 1 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #42 on: September 14, 2020, 09:54:41 »
Hi michaelbechtold,
thanks for your time, testing sync and giving us feedback.I would like to reveal a little bit of technical side of sync algorithm and explain why sync is not working as you would expect.

Each object in device database (point, track) has to be uniquely identified. We use unique numeric ID for this purpose. If you have multiple devices (e.g. D1, D2) there is absolutely no guarantee that point[#1] (point with id=1) in D1 is the same as point[#1] in D2. This is true in the case when you transfer DB from D1 to D2 but in general we can not assume this.

Possibly, we could try to match objects by all properties but it is not correct, in my opinion, too. Let's imagine, that we have exactly the same point[#1] on D1 and D2. When you make minor modification to point[#1] on D1 then point[#1] on D2, which was previously the same, is now different one.

In order to match objects server side we added another ID to client DB -  UUID (example: 162d3708-b2d1-458d-8054-d8e866fb9b10) which is used as unique identification of object across all your devices (as explained, simple numeric ID can not be used for this).

After rolling out new Locus version including synchronization (UUIDs will be automatically generated) then you should be able copy and paste objects between devices and sync should have no issue with it (objects will be correctly paired using UUID) and synced correctly - no duplicates should occur.

Unfortunately, in your case, each device will generate different UUIDs on every device thus you will need to sync these changes manually, once. I will discuss this scenario with @Menion. Hopefully, we will by able to come up with some idea to make this merge easier ;).

I hope that my explanation is good enough for you and understandable. If not, do not hesitate to ask me :).
 

Offline tapio

  • Padavan of Locus
  • ***
  • Posts: 382
  • Thanked: 63 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #43 on: September 14, 2020, 11:18:39 »
I can totally feel what MichaelBechtold is saying. Currently, the user cannot see what is about to happen and what is stored on server side. Backup/sync means a lot of complexity after all.
I am speaking very general. Experience is telling us, there will be a lot confusion, (assumed) data loss etc... A lot of users in need of support. Lots of pain for the dev side. I think it is crucial that a user can easily see/understand what exactly will happen to the data after he presses "sync".

Just one aspect of the pain: I am convinced users will at first understand this as a backup system, as it is happening with RAID systems. So when they accidentally delete a track on client side, they likely expect to get it back via a sync -which will not happen. Which will delete on server side as well.

You opened pandoras box :D  ;)
« Last Edit: September 14, 2020, 11:22:08 by tapio »
 

Offline Frivold

  • Newbie
  • *
  • Posts: 5
    • View Profile
  • Device: Samsung s10+
Re: Locus Map - cloud/sync server
« Reply #44 on: September 14, 2020, 14:09:18 »
I have tested the new version now, and i like it very much! But one thing is missing, when I tap on a point in map, then I don't get the context-menu, that I am used to. (Fex guide too, detail etc).