"Applying a template" to an existing object erases data after syncing

What’s The Bug?

This has happened several times over the last couple of days. I’ll create many objects in a set to keep track of events and fill out the relations, and everything will be fine. I’ll edit some of them a couple of times to add new information, which will also appear okay. In some, I edited the original template, went through the objects, and re-selected the template, and it appears all of the information is updated without any losses. Then, a couple of hours later, half of the relations and content from the objects will be missing.

In the history, the change where the template was applied and erased all of the relations will show hours after I originally made them, sometimes even the next day.

I’m syncing my space with two machines running Fedora 41, one Macbook, and one Android phone.

The part I find confusing is that after applying the template, all the data gets merged correctly, and the issue only shows up much later. Is it possible that the other devices are receiving the changes where the template is applied and don’t understand how to merge the data?

How To Reproduce It

  1. Create an object based on a template
  2. Add information to the object, fill out relations, etc.
  3. Update the template
  4. Re-apply the template in the object using the button at the top: “This type has X templates” > select one of the templates
  5. Edit the object more
  6. Wait/sync with other devices/phones
  7. Data is missing

The Expected Behavior

If the template is applied and the data is merged correctly, it should not disappear later.

Device

Lenovo X1 Carbon Gen 9

OS

Fedora 41

Anytype Version

0.43.4

Network Mode

AnySync

Technical Information

OS version: linux x64 6.11.5-300.fc41.x86_64
App version: 0.43.4
Build number: build on 2024-10-31 14:14:45 +0000 UTC at #5ede1352da2eb6be9c64ee3b29c22e9cdb9e4b6d (dirty)
Library version: v0.36.7
Anytype Identity: A7NMHa5V7HUT5EEcbNsyZUT9v95sqV4Bg6ed2e36CA4NxZyo
Analytics ID: 943b038f-e1d0-47eb-98f3-3d8dda263144
Device ID: 12D3KooWRNMDEy4y5PwaL8S84YfcnEzn8M3t8ytuyuf82JEHRPuf

It is not yet possible to Apply Template to an Existing Object in Anytype. What exactly are you doing? Can we get some screenshots or a video?

If I fill out relations in the set list, select the object and change the template, and then continue to modify the object, all data entered prior to selecting the template gets lost a couple of hours later after I sync between devices

This report has been added to our issue tracker and received by the Development Team.