Elements icon indicating copy to clipboard operation
Elements copied to clipboard

SharedObject concept

Open katehryhorenko opened this issue 1 year ago • 0 comments

BACKGROUND: It's a part of the PRs that will help to introduce multiple representations concept.

DESCRIPTION: SharedObject - is object with id.
During deserialization SharetdObject has the same behavior as Element. If Element has SharedObject property, it will be replaced with GUID and shared object will be saved inside Model.SharedObjects list, So now we have two lists: Elements and SharedObjects.

SharedObject can be deserialized after Element, so I added WaitList that keep track of giuds that were not replaced with deserialized objects. Once element is deserialized, it will replace the pending guid.

TESTING: I tested it with multiple representations, but it can be tested by adding shared object to the Element.

REQUIRED:

  • [x] All changes are up to date in CHANGELOG.md.

This change is Reviewable

katehryhorenko avatar Sep 07 '23 18:09 katehryhorenko