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

Modeler inline comment plugin does not store the comments #100

Open
hjstrauss opened this issue Apr 19, 2023 · 6 comments
Open

Modeler inline comment plugin does not store the comments #100

hjstrauss opened this issue Apr 19, 2023 · 6 comments
Labels
backlog Queued in backlog bug Something isn't working pr welcome We rely on a community contribution to improve this.

Comments

@hjstrauss
Copy link

hjstrauss commented Apr 19, 2023

Describe the bug

I installed the plugin: bpmn-js-plugin-embedded-comments ("Embnedded Comments") in Modeler's plugin-directory under Windows 10. Modeler version is 5.10.0. I can add comments during the modelling session. But after save and restart of Modeler, the comments are lost.

Steps to reproduce

  1. add the plugin
  2. start Modeler under Windows and verify if plugin is listed in menu "Plugins"
  3. open a model or create one and add a comment
  4. save the model; ensure no other change happens
  5. close Modeler and restart
  6. open the model and look at the comment: it is gone (at least for me)

Expected behavior

The comments added to a model have to be poersisted after saving the model.

Environment

  • OS: Windows 10
  • Camunda Modeler Version: 5.10.0
  • Execution Platform: standalone
  • Installed plug-ins: Embedded Comments, Spectrum Colorpicker

Additional context

Root cause analysis in #100 (comment).

@hjstrauss hjstrauss added the bug Something isn't working label Apr 19, 2023
@nikku
Copy link
Member

nikku commented Apr 25, 2023

Thanks for reporting this bug. Could you link the resource that you're referring to here?

Related, if you find a bug with a plug-in, let's create the bug report there.

@nikku nikku added the needs more information Requires additional information to be actionable. label Apr 25, 2023
@hjstrauss
Copy link
Author

Sure, I took the plugin from here: https://github.com/camunda/camunda-modeler-plugins. It is the bpmn-js-plugin-embedded-comments. I can add an internal note in the modeler session. But after saving the model and close/reopen it, the comment is gone.

@marstamm
Copy link
Member

marstamm commented May 3, 2023

I can not reproduce this issue. Note that you need to "post" the comment by pressing "Enter" for the comment to be persisted in the XML.

Recording 2023-05-03 at 14 47 20

@marstamm marstamm closed this as completed May 3, 2023
@hjstrauss
Copy link
Author

I can reproduce at any time if the internal note is the ONLY change in the model. If there are other changes that are also reflected in the model's title bar with a blue point (indicator that a save is necessary) then the internal note is saved as well. But if I only add an internal note text, the blue point is not shown and the note's text is not saved.

@marstamm
Copy link
Member

marstamm commented May 3, 2023

Thanks for the follow-up, I can reproduce this issue. The modeler does not track moddle changes from external namespaces. Not sure if this is an issue with the modeler or the plugin itself, so I'll reopen this ticket in the meantime

@marstamm marstamm reopened this May 3, 2023
@nikku
Copy link
Member

nikku commented May 4, 2023

This is a limitation in the upstream bpmn-js extension. It simply does not change the model in the appropriate way, hence leaving the modeler with no clue that an actual change happened.

Moving this issue to the plug-in repository.

@nikku nikku transferred this issue from camunda/camunda-modeler May 4, 2023
@nikku nikku added pr welcome We rely on a community contribution to improve this. backlog Queued in backlog and removed needs more information Requires additional information to be actionable. labels May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog bug Something isn't working pr welcome We rely on a community contribution to improve this.
Projects
None yet
Development

No branches or pull requests

3 participants