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

Close comments when the allegations phase is closed #4876

Merged
merged 2 commits into from
Aug 19, 2022
Merged

Conversation

decabeza
Copy link
Collaborator

Objectives

If a user comments a text of collaborative legislation during the allegations phase, and further comments are added to the text once the phase is over, these are added to the text.

It should not be possible to add more comments to the text after the allegations phase is finished, so this PR hides comment form on annotations when allegations phase is closed on legislation processes.

@decabeza decabeza self-assigned this Jul 20, 2022
@javierm javierm added this to Reviewing in Consul Democracy Jul 20, 2022
@javierm javierm self-assigned this Aug 5, 2022
@javierm javierm force-pushed the hide_comments branch 2 times, most recently from 367aeeb to a1e2b65 Compare August 5, 2022 14:55
@javierm javierm force-pushed the hide_comments branch 2 times, most recently from 0d3cabc to 24f01e7 Compare August 5, 2022 15:20
Consul Democracy automation moved this from Reviewing to Testing Aug 5, 2022
@javierm javierm added the Bug label Aug 5, 2022
@javierm javierm changed the title Hide comments when allegations phase is closed Close comments when the allegations phase is closed Aug 5, 2022
@taitus taitus self-assigned this Aug 19, 2022
We were ignoring the draft version param when loading an annotation,
which could result in a strange situation where we load an annotation
and a draft version different than the one it belongs to.

Thanks to this change, we can simplify the code a little bit. IMHO the
`comments` and `new_comment` routes should have been added on member
instead of on collection, which would further simplify the code. I'm
leaving the routes untouched just in case changing the URL has side
effects on existing installations.
@javierm javierm force-pushed the hide_comments branch 2 times, most recently from 1e4a18b to cc7d4df Compare August 19, 2022 15:55
Co-Authored-By: Julian Nicolas Herrero <[email protected]>
Co-Authored-By: Javi Martín <[email protected]>
@javierm javierm merged commit e6cf37d into master Aug 19, 2022
Consul Democracy automation moved this from Testing to Release 1.6.0 Aug 19, 2022
@javierm javierm deleted the hide_comments branch August 19, 2022 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants