anyproto / anytype-ts

Official Anytype client for MacOS, Linux, and Windows
https://anytype.io
Other
3.61k stars 214 forks source link

Collection object conversion #758

Closed jon-vfb closed 3 weeks ago

jon-vfb commented 4 weeks ago

Have you read a contributing guide?

Current Behavior

If I create a collection I have the ability to change that object type into another different object, this results in the loss of that collection relationships (or least a small chaos). A collection should not be able to be turned into a different type of object, or at least I should be able to lock the object type to avoid a user-side error resulting in that loss of relationships.

Expected Behavior

A collection should not be able to be turned into another type of object (Ex: Page)

Steps To Reproduce

  1. Create a collection
  2. turn the object type to a page
  3. this results in the loss of the collection and its relationships

Environment

- OS: Windows 11
- Version: 0.40.9

Anything else?

No response

jon-vfb commented 3 weeks ago

the same goes for sets. Sets and collections should not be mutable. A set/collection should not be able to be converted into any other object type since, once done, the linking work is gone.