Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharedObject concept #1023

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

SharedObject concept #1023

wants to merge 5 commits into from

Conversation

katehryhorenko
Copy link
Contributor

@katehryhorenko katehryhorenko commented Sep 7, 2023

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:

  • All changes are up to date in CHANGELOG.md.

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant