Object relations in templates reverts back to empty

WHAT IS THE BUG

I’ve created a custom template for my “task” object. In that template I’ve created a couple of “object” relations and I chose to specify the type of those relations to “task”. Everything is fine and it saves and I can create a new task with this template without any problem either from my tasks set or from within a page by the command line.

The problem is after some time, probably a couple of minutes, that object relation looses the specific type of object that I’ve been specified for it; in this case the task type. No matter how many times I go back to the template and choose the type again, the same problem will appear. I haven’t faced this particular problem with other objects and the relations I create based on them.

HOW TO REPRODUCE IT

  1. go to the default task object type.
  2. create a new template with an object relation.
  3. specify the type of that object.
  4. create a new task based on the new template.
  5. wait for a couple of minutes, maybe half an hour.
  6. try to create a new task based on the template.
  7. check the relation to see the specified type of the object is gone.

THE EXPECTED BEHAVIOR

For relations in the templates to stay the same!

SYSTEM INFORMATIONS

  • OS:
    Mac OS Ventura 13.0.1
  • Device:
    M1 MacBook Air
  • Anytype Version:
    0.29.1
2 Likes

Hi @dzlg

Has this issue persisted or was it resolved?

Hello @Angelo,

I just tested this issue on 0.29.25 and unfortunately it’s still there and has not been resolved.

1 Like

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

1 Like

WHAT IS THE BUG

I’ve tried multiple times to edit Relations of Type “Object” to be linked to a specific Object Type to make it easier to select the correct Objects (of that Type). Unfortunately, after a restart, the changes are undone.

HOW TO REPRODUCE IT

  1. Locate an Object Type with the Relation you would like to change
  2. Ensure you change the “Selected object types”
  3. Create a new Object with this type and see that the Relation search results are properly filtered
  4. Close Anytype (Quit)
  5. Start Anytype
  6. Create another Object of the same Type
  7. See that the Relation filter is gone. Objects of all Types are shown again

THE EXPECTED BEHAVIOR

The change I made to be persistent across restarts.

SYSTEM INFORMATIONS

  • OS:
    Windows 11
  • Device:
    Dell XPS 15
  • Anytype Version:
    0.29.30-beta

ADDITIONAL CONTEXT

I have the feeling (but I cannot reproduce it yet) that the removal of Types also is not always persistent. I have already deleted the built in Task type once, and I had to do it again today.

My issue is slightly different from the op’s issue (changes to Relations discarded vs added Relations gone) but I experience both issues and they might be related.

1 Like

This issue has been fixed by the Development Team and will be implemented in an upcoming release.

2 Likes