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

Diagram saves only the current page in attachments when multiple pages are used #261

Open
oanalavinia opened this issue Apr 10, 2024 · 1 comment

Comments

@oanalavinia
Copy link

oanalavinia commented Apr 10, 2024

Steps to reproduce:

  1. Create a diagram with multiple pages
  2. Save the diagram while being on the second page
  3. Observe the attachments

Actual result:
The 2 attachments (png and svg) are for the page where this diagram was saved, which in this case is the second.
This will affect the short preview displayed when first opening the diagram.
Also, the diagram macro is affected. When the macro is used with the cached option set to true, it will use the attachments from the diagram, which display only the second diagram

diagramPagesTest.mp4

Expected result:
For the short preview displayed on the diagram page, the first page should be used.
For the diagram macro, when used with the cached option, I would expect for it to display the first page by default and have an option to specify another page if I want

Probably this can be seen as a limitation and simply add a suggestion to use the non-cached diagram when there are multiple pages, but still not nice.

@Farcasut
Copy link

Farcasut commented Dec 3, 2024

In addition to the cases mentioned above, we should also consider wiki export as PDF and Confluence migration. A possible solution would be to save all the diagrams as attachments in PNG/SVG format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants