Open jadelkhoury opened 3 years ago
Confirmed.
Yes this is a scenario we want (and need) to support, but knowing how the current implementation works it does not surprise me.
org.eclipse.sirius.web.spring.controllers.DocumentController.getDocument(String, String)
and and org.eclipse.sirius.web.services.documents.DocumentService.getBytes(Document, String)
assume a given document (model) can be loaded/saved all by itself, but as soon as there are cross-model references we need to load the whole editing context / resource set for references to make sense.
Note that trying to download the whole project's content fails in the same way (it treats models one by one instead of as a whole).
From a user perspective, it would be nice if I can upload a number of models (instead of just 1), which I know fit together. and if I upload 1 (or more) models that are not complete, I get a warning of the missing models.
Hi I was wondering if there is any planned progess on this issue? We are also thinking if the following short term solution would be of benefit (until bug is fixed): When uploading a model with a proxy object, instead of loading the missing/referenced EMF resource, simply remove that proxy reference? (and preferably mark the object as missing). This means that one can still upload a model with proxy objects. Even if not 100% perfect, it can still be of value to have a less complete model.
Currently, I have problems handling models that are composed of multiple EMF resources. Is this something that Sirius Web is expected to handle?
Below I describe the problem when trying to download such models. I face similar problems when uploading such models.
Steps to reproduce
Similar problem occur when uploading model(s) with dependencies.