-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
feat: editing townsquare comments #6023
feat: editing townsquare comments #6023
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6023 +/- ##
=========================================
Coverage ? 27.58%
=========================================
Files ? 282
Lines ? 26167
Branches ? 3853
=========================================
Hits ? 7218
Misses ? 18684
Partials ? 265
Continue to review full report at Codecov.
|
8d68376
to
5ab94f1
Compare
e0bce79
to
7837609
Compare
7837609
to
d4c1fcb
Compare
8e55640
to
525ea23
Compare
2ba052c
to
20432f3
Compare
@walidmujahid - this looks pretty dope! thank you for the videos!
edit: just checked the delete comment seems like it's live already! I would want a "are you sure you want to delete this comment" or something but it should be fine right now
|
@frankchen07 Deleting comments is actually feature that @thelostone-mc -if I am not mistaken- had rolled out.
Yes, only the user who posted the comment can edit. I actually tested this with the very useful user impersonation tool, but I did not show it in any video.
That is actually a very good idea. I have opened a feature request at #6084 and add it to my list of things to do |
e4c58a1
to
4942f7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a bunch of comments regarding indentation plus using const
wherever possible
@octavioamu I have worked on the migrations issue. I hope it is better now :-) |
6062fb7
to
424dcad
Compare
@walidmujahid so you migrations you've deleted , a few would aleady been in live |
Yes. Sorry about that. I will do that as soon as possible. |
b2785ed
to
f0ba30a
Compare
Resolved @thelostone-mc |
54844c8
to
81e0f86
Compare
32241fe
to
7c5d0c3
Compare
Comments can be edited. Editing can be cancled via Cancel button or ESC. This is part of the townsquare improvements: gitcoinco#6003 fixes gitcoinco#6010
7c5d0c3
to
feec2a5
Compare
@danlipert @thelostone-mc @octavioamu I have updated this with most recent upstream master changes and have recreated the migrations. Manual smoke testing for comment editing functionality passed. Is there anything preventing this from being merged into master? |
…ty-comments-edit
@walidmujahid nah it looks good but looks like CI fails due to eslint errors ! |
@walidmujahid nvm I fixed it up ! |
Oh, okay. You were quick :-) |
Editing a comment is as simple as clicking the edit button on a comment. All other comments of the user will have their edit buttons disabled when editing of a comment is active. Posting new comments for the user will also be disabled while they are editing a comment. If you try to submit an edit with zero characters, it will not go through. An edited comment will show
(edited)
string next to thetimAgo
section.2020-02-30 - Working Demo - Video: https://youtu.be/wibE0emPwBE
2020-02-22 - Video: https://youtu.be/H9tvgp3i0y8
EDIT
method in apicloses #6010