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

Make the comment editable through the API #1196

Merged

Conversation

todd-dembrey
Copy link
Contributor

This makes the activities revision-able and adds the endpoints to work with this through the API.

@zerolab
Copy link
Contributor

zerolab commented May 7, 2019

LGTM

serializer.is_valid(raise_exception=True)

if serializer.validated_data['message'] != comment_to_update.message:
self.perform_create(serializer)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without testing this locally, I am a uncertain whether this will add a messenger entry as in CommentListCreate

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This definitely doesn't.
We spoke offline -- was not specced. Could be beneficial, but may get noisy with small spelling edits (for example)

@todd-dembrey todd-dembrey changed the base branch from master to mini-sprint-may-2019 May 7, 2019 16:08
@todd-dembrey todd-dembrey merged commit 712adae into mini-sprint-may-2019 May 8, 2019
@todd-dembrey todd-dembrey deleted the feature/gh-1193-comment-editing-be branch August 27, 2019 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants