Open CormacKinsella opened 5 months ago
Update to this, found this in the quarto docs - perhaps this is the reason? Quarto was rendering these diagrams locally and storing as pngs rather than rendering the diagram code on Confluence.
"However, there is currently no support for Citations, Videos, Diagrams, Tabsets, or Equations. In the future, we may add these features if there is a Confluence equivalent that can support the functionality."
rather than rendering the diagram code on Confluence.
What do you mean by "rendering the diagram code on Confluence"? Has Confluence added support for it? In general, you cannot run Javascript code in confluence sites, and so we're required to render them all locally ahead of time.
I don't have a Confluence installation readily available to check, but if anything, the bug here is that Quarto should always be rendering the diagrams locally before uploading, and so Confluence would never know it's not a simple image.
Apologies I worded this badly - no there is still no support for rendering on Confluence itself. Just wondering if this might be linked to the issue with updating the webpage if it contains a locally rendered diagram.
the bug here is that Quarto should always be rendering the diagrams locally before uploading, and so Confluence would never know it's not a simple image
Yes that sounds right to me. And as I said in the original post, it handles it fine on the first publication to Confluence, only when republishing an edit does this issue occur.
I'm trying out publishing to Confluence and get the same behavior (Quarto 1.6.9; Positron 2024.09.0).
Maybe this info from the error message is of relevance?
warning: '299 - "Deprecated API, will be removed on Mon, 2 Dec 2024 00:00:00 GMT"',
This is the complete message issued for each mermaid cell:
ERROR:
[Confluence] [General] response.status !== 200 Response {
body: ReadableStream { locked: false },
bodyUsed: false,
headers: Headers {
"atl-confluence-via": "<redacted>",
"atl-traceid": "<redacted>",
"cache-control": "no-cache, no-store, must-revalidate",
"content-type": "application/json",
date: "Fri, 06 Sep 2024 15:33:26 GMT",
deprecation: "Wed, 1 Mar 2023 00:00:00 GMT",
expires: "Thu, 01 Jan 1970 00:00:00 GMT",
link: '<https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-864>; rel="deprecation"',
nel: '{"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}',
"report-to": '{"endpoints": [{"url": "<redacted>"}], "group": "endpoint-1", "include_sub'... 31 more characters,
server: "<redacted>",
"strict-transport-security": "max-age=63072000; includeSubDomains; preload",
vary: "Accept-Encoding",
warning: '299 - "Deprecated API, will be removed on Mon, 2 Dec 2024 00:00:00 GMT"',
"x-content-type-options": "nosniff",
"x-xss-protection": "1; mode=block"
},
ok: false,
redirected: false,
status: 400,
statusText: "Bad Request",
url: "<redacted>"
Maybe this info from the error message is of relevance?
Definitely ! Not explain a 400 error, but it points us to some warning regarding API deprecation 🙀 We have this link: https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-864
We need to review which endpoints gets changed and adapt.
Bug description
When I republish qmd files containing mermaids or graphviz diagrams to confluence, I get an error.
Steps to reproduce
quarto publish confluence --no-browser test.qmd
)