Comment drafts misbehave if description field is clicked

6. lokakuuta 2018 klo 19.38
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Wekan

Server Setup Information:

  • Wekan version: 1.53
  • Deployment Method: snap (tracking stable)
  • Operating System: Ubuntu 16.04
  • Http frontend: Apache 2.4
  • ROOT_URL environment variable

Screen recording:
peek 2018-10-06 19-21

Steps to reproduce:

  1. Create a card
  2. Click on the comment field, enter ”some text”
  3. Click on the description field
  4. Close the card
  5. Open the card
  6. Try to delete the ”some text” comment draft, either by selecting and clearing out the text, or by posting the comment (by selecting ’Comment’)
  7. Close the card, open it again

What happens:
The comment draft remains in the comment field. If you posted it at step 6 above, you now have the posted comment plus the same comment as draft.

What I expect to happen:
For the comment draft to have been deleted. If you skip step 3 (i.e. don’t click on the description field but close the card directly), the draft is deleted. While I’d actually prefer the draft to remain in this situation, this is slightly better than the undeleteable draft.

Web Console contents:
Upon closing the card at step 4, console shows this:

remove failed: Internal server error 9f30bda751070caba2631cd997a9c88102b36537.js:1:6261
insert failed: i@

Other info

  • I’d rate this Severity:Inconvenient
  • There is at least one way to delete the draft: after clearing out the text, click the description field, then close the card. This again results in the above errors being reported in the console, but opening the card reveals that the draft is now gone.
  • This is slightly reminiscient of issue #1287 (also reported by me way back when), though my guess would be that these are completely unrelated, and I’m only making the link here just in case the solutions happen to be similar (as both deal with drafts and saving).
  • I’m attaching snap logs output from today (while testing this), although the events there do not seem to coincide with the draft problem (just card deletion).


Vastaa viestiin sen kontekstissa (Github)