zeldigas / text2confl

Publisher of documents to confluence
Apache License 2.0
12 stars 2 forks source link

Confluence comments are lost on page update #200

Open feliksik opened 2 months ago

feliksik commented 2 months ago

When inline comments are used on a page, they are lost when the page is updated. I'm using editor v1 (as it offers more features w.r.t. HTML macros etc) on Confluence Cloud.

This is super-unfortunate.

I see that the comments are stored in the page XML as follows:

        <p>Page contents like normal go here and there is a comment on 
        <ac:inline-comment-marker ac:ref="87342740-a564-38af-a337-4fd80eb5612b">this particular text</ac:inline-comment-marker>, that we want to preserve</p>
        <p>This should be feasible</p>

I think it should be feasible to do this, as follows:

The only tricky part is obviously merging the comments. It would require some sophistication that I'm personally not experienced with, so it'd require more research for me; But I think it's doable and would be easily isolated.

feliksik commented 1 month ago

It would be extra nice (and even an improvement over regular confluence) if we would never drop any comments, but always preserve all of them, even if we would have to reinsert them at some guesswork-based location in the body as

        <ac:inline-comment-marker ac:ref="87342740-a564-38af-a337-4fd80eb5612b">(text was deleted)</ac:inline-comment-marker>