-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Drag and drop feature of comment editor does not work properly when editing a comment #8670
Comments
@cesswairimu @jywarren is this something i can take up? |
Hi, thanks @urvashigupta7 for opening this, I tested locally and it works fine. @karenefereyan could you please check on https://stable.publiclab.org/ could be its fixed but its not deployed yet. If you find the issue on stable you can go ahead. Thanks all |
Hi @cesswairimu. I am unable to add images while editing the comment on https://stable.publiclab.org/ . It just shows never-ending uploading |
Great investigation, thanks @urvashigupta7, would you like to work on this or should @karenefereyan give it a try |
@urvashigupta7 would you like to work on it? Thanks cess |
@karenefereyan You can try this out 😄 Thanks!! |
@cesswairimu could you please assign this to me? |
I see that you are a competitive programmer. I have been long interested in that. Could you tell me more about it? |
Go ahead @karenefereyan |
Sure @karenefereyan . I would be happy to help. Let us just connect on twitter, we can discuss about this there. |
@cesswairimu @urvashigupta7 things have been tough on my side recently. Can you help me with the solving of this issue? |
@urvashigupta7 i'm unable to replicate the issue. I dragged and dropped files several times and afterward went ahead to edit comments and there are no irregularities. Or am i mistaken? |
Hi @karenefereyan. Edit comment does not work on https://stable.publiclab.org/ but I see edit comment works fine locally. But I am facing the issue I tried to show in the gif above. |
Oh okay. Thanks so much |
Hello all, thank you for investigating and documenting this so carefully. I'm going to edit the title to add some specificity that this is during editing a comment. It may also be different depending on if the edited comment was just made (with no page refresh) or if it was there already, since newly made comments are inserted using JavaScript instead of being built-in at the time the page is prepared by Ruby. I'm going to mark this as part of the overall Comment Editor project but whoever would like to work on it, i recommend writing a test that very specifically demonstrates this behavior, of editing a comment then drag-and-dropping an image - and to copy and adapt the test from this example: plots2/test/system/comment_test.rb Lines 136 to 156 in a23a3f9
Thank you so much! |
and linking to #8775 |
I'm researching this bug right now, and I can consistently reproduce it. Here are some instructions for those curious: Steps to Reproduce Bug
Bug Notes
I wrote a system test demonstrating this behavior and will open a PR for it shortly. |
* add test for comment image crosswiring * wrap everything in comment-form-wrapper, assign .selected in drop listener (#8670) * delete defunct function, fix indentation & spacing #8670 * rewrite tests that rely on comment-form-wrapper * remove deprecated code, comments; fix indent * initialize on pageload (#8670) * rewrite for multiple file inputs * change test to focus on image drag & drop #8670 * restore E.initialize call in drop #8670 * undo E.initialize call #8670 * assign unique IDs to comment form textareas #8670 * change ID selectors to class ones to match new IDs #8670 * fix indentation #8670 * change ID reference to class reference #8670 * initialize E with parameters in drop listener #8670 * update tests for new text-input selectors #8670 * change ID text-input reference to class ref #8670 * change text-input ID to class #8670 * drop: initialize E with params #8670 * remove semicolon
…ab#8897) * add test for comment image crosswiring * wrap everything in comment-form-wrapper, assign .selected in drop listener (publiclab#8670) * delete defunct function, fix indentation & spacing publiclab#8670 * rewrite tests that rely on comment-form-wrapper * remove deprecated code, comments; fix indent * initialize on pageload (publiclab#8670) * rewrite for multiple file inputs * change test to focus on image drag & drop publiclab#8670 * restore E.initialize call in drop publiclab#8670 * undo E.initialize call publiclab#8670 * assign unique IDs to comment form textareas publiclab#8670 * change ID selectors to class ones to match new IDs publiclab#8670 * fix indentation publiclab#8670 * change ID reference to class reference publiclab#8670 * initialize E with parameters in drop listener publiclab#8670 * update tests for new text-input selectors publiclab#8670 * change ID text-input reference to class ref publiclab#8670 * change text-input ID to class publiclab#8670 * drop: initialize E with params publiclab#8670 * remove semicolon
…ab#8897) * add test for comment image crosswiring * wrap everything in comment-form-wrapper, assign .selected in drop listener (publiclab#8670) * delete defunct function, fix indentation & spacing publiclab#8670 * rewrite tests that rely on comment-form-wrapper * remove deprecated code, comments; fix indent * initialize on pageload (publiclab#8670) * rewrite for multiple file inputs * change test to focus on image drag & drop publiclab#8670 * restore E.initialize call in drop publiclab#8670 * undo E.initialize call publiclab#8670 * assign unique IDs to comment form textareas publiclab#8670 * change ID selectors to class ones to match new IDs publiclab#8670 * fix indentation publiclab#8670 * change ID reference to class reference publiclab#8670 * initialize E with parameters in drop listener publiclab#8670 * update tests for new text-input selectors publiclab#8670 * change ID text-input reference to class ref publiclab#8670 * change text-input ID to class publiclab#8670 * drop: initialize E with params publiclab#8670 * remove semicolon
…ab#8897) * add test for comment image crosswiring * wrap everything in comment-form-wrapper, assign .selected in drop listener (publiclab#8670) * delete defunct function, fix indentation & spacing publiclab#8670 * rewrite tests that rely on comment-form-wrapper * remove deprecated code, comments; fix indent * initialize on pageload (publiclab#8670) * rewrite for multiple file inputs * change test to focus on image drag & drop publiclab#8670 * restore E.initialize call in drop publiclab#8670 * undo E.initialize call publiclab#8670 * assign unique IDs to comment form textareas publiclab#8670 * change ID selectors to class ones to match new IDs publiclab#8670 * fix indentation publiclab#8670 * change ID reference to class reference publiclab#8670 * initialize E with parameters in drop listener publiclab#8670 * update tests for new text-input selectors publiclab#8670 * change ID text-input reference to class ref publiclab#8670 * change text-input ID to class publiclab#8670 * drop: initialize E with params publiclab#8670 * remove semicolon
…ab#8897) * add test for comment image crosswiring * wrap everything in comment-form-wrapper, assign .selected in drop listener (publiclab#8670) * delete defunct function, fix indentation & spacing publiclab#8670 * rewrite tests that rely on comment-form-wrapper * remove deprecated code, comments; fix indent * initialize on pageload (publiclab#8670) * rewrite for multiple file inputs * change test to focus on image drag & drop publiclab#8670 * restore E.initialize call in drop publiclab#8670 * undo E.initialize call publiclab#8670 * assign unique IDs to comment form textareas publiclab#8670 * change ID selectors to class ones to match new IDs publiclab#8670 * fix indentation publiclab#8670 * change ID reference to class reference publiclab#8670 * initialize E with parameters in drop listener publiclab#8670 * update tests for new text-input selectors publiclab#8670 * change ID text-input reference to class ref publiclab#8670 * change text-input ID to class publiclab#8670 * drop: initialize E with params publiclab#8670 * remove semicolon
When a file is uploaded using drag and drop feature it gets added in different text box.
Steps to reproduce bug :
The text was updated successfully, but these errors were encountered: