It is possible to create empty diffs with the new inline description editing

Bug #414980 reported by Markus Korn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAZR Javascript Library
Invalid
Medium
Unassigned
Launchpad itself
Fix Released
Medium
Unassigned

Bug Description

1.) click the yellow pencil to edit the description of a bug
2
.) change nothing in the shown up textbox
3.) click the green check to apply the 'new' (infact old) description

This results in a activity log entry and also a notification email with empty diff is send.
See bug 385570 as an example.
As far as I remember in the old way of editing descriptions an empty diff did not result in a notification email and activity log entry.
I think the best solution for this would be to grey out the green check as long as nothing is changed and also do not handle empty diffs here as an activity.

Markus

Changed in malone:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.2.8
Revision history for this message
Deryck Hodge (deryck) wrote :

mpt's initial suggestions at bug 415365 are a good way to fix this bug.

We should not enable the submit button (the green check) until the description has changed. This will have to be fixed in the lazr-js branch.

This, also, would not be too hard to fix if someone is interested in helping with Launchpad development since both Launchpad's code and lazr-js code are open source. My initial thought is that the fix amounts to deferring the _bindButtons call for C_SUBMIT until someone types in the textarea. I'm available to help any developer who is interested in fixing this.

Deryck Hodge (deryck)
Changed in lazr-js:
status: New → Triaged
importance: Undecided → Medium
Deryck Hodge (deryck)
Changed in malone:
milestone: 2.2.8 → 3.0
Deryck Hodge (deryck)
Changed in malone:
assignee: nobody → Deryck Hodge (deryck)
Changed in lazr-js:
assignee: nobody → Deryck Hodge (deryck)
Deryck Hodge (deryck)
Changed in malone:
milestone: 3.0 → 3.1.10
Deryck Hodge (deryck)
tags: added: inline-description post-3-ui-cleanup
Deryck Hodge (deryck)
tags: added: bug-page
Changed in malone:
milestone: 3.1.10 → none
assignee: Deryck Hodge (deryck) → nobody
Changed in lazr-js:
assignee: Deryck Hodge (deryck) → nobody
Revision history for this message
Paul Hummer (rockstar) wrote :

I don't think this is a lazr-js issue. It's common to have Ok available even when there are no changes.

Changed in lazr-js:
status: Triaged → Invalid
Huw Wilkins (huwshimi)
tags: added: ui-easy
tags: added: easy ui
removed: ui-easy
Huw Wilkins (huwshimi)
tags: removed: post-3-ui-cleanup
Revision history for this message
Curtis Hovey (sinzui) wrote :

I updated the fields some months ago to prevent emtpy descriptions because they can cause oopses.

Changed in launchpad:
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Curtis Hovey (sinzui) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.