consuldemocracy / consuldemocracy

Consul Democracy - Open Government and E-Participation Web Software

Home Page:https://consuldemocracy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug comments are not linked to the original text after edit

Avi-ADAM opened this issue · comments

User Story

when looking at a proposal the comments are linked to the text via yellow marks , but after the text get edited the yellow marks and the comments are in different location from where they originally assigned

Why is this Needed?

allow editing proposals while keep the comments linked to text

Type: Bug

Steps to reproduce

add comment to proposal then edit the proposal and add some text before the commented text, you will see that now the comment not linked to the original text

Definition of Done

comments linked to text not word counter

Hi, @Avi-ADAM 😄.

If we're talking about comments on legislation drafts, this actually works as intended, although I agree that it's confusing.

The idea is that, once a draft version is published and people add comments to it, you no longer edit it (maybe we should add a validation rule for this 🤔) but create a new draft version instead.

I don't think it's possible to change the current behavior at least until we replace the library we use to add annotations (which is no longer maintained).