TheiaBackendModelServerClientV2.edit() does not work with CompoundCommand #209
-
Hi. I am currently developing with Modelserver Theia integration(eclipse-emfcloud/emfcloud-modelserver-theia).
edit(modeluri: URI, patchOrCommand: PatchOrCommand, format?: Format): Promise<ModelUpdateResult> {
if (ModelServerCommand.is(patchOrCommand)) {
return super.edit(modeluri, ensureCommandPrototype(patchOrCommand));
}
return super.edit(modeluri, patchOrCommand, format);
} I think the reason is that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @kubomann, Thank you for catching that! Would you mind opening an issue in the Thanks and BR, |
Beta Was this translation helpful? Give feedback.
Hi @kubomann,
Thank you for catching that!
I had a look and I would agree that this is a bug.
The if clause should check for both command types (e.g. like
if (ModelServerCommand.is(patchOrCommand) || CompoundCommand.is(patchOrCommand))
).Would you mind opening an issue in the
emfcloud-modelserver-theia
repository, as you found it 🐛We would also gladly accept a contribution to get this fixed :)
Thanks and BR,
Nina