<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>43948</bug_id>
          
          <creation_ts>2010-08-12 22:23:35 -0700</creation_ts>
          <short_desc>Bugzilla &quot;review&quot; action should not paste full diff as comment by default</short_desc>
          <delta_ts>2010-08-19 11:24:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Website</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>aroben</cc>
    
    <cc>darin</cc>
    
    <cc>jparent</cc>
    
    <cc>mark</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>264173</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-12 22:23:35 -0700</bug_when>
    <thetext>Bugzilla &quot;review&quot; action should not paste full diff as comment by default

This makes it very easy for users to kill bugs:
https://bugs.webkit.org/show_bug.cgi?id=43595#c24

We have working line-by-line diffs, we should make that the default behavior, and replace the &quot;clear main comment box&quot; button with a &quot;paste full diff into comment box&quot; button for anyone who wants this old behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264237</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-13 01:33:27 -0700</bug_when>
    <thetext>Darin might have an opinion here.  Last time I touched this I broke his workflow, and I&apos;d rather not do that again.  :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264348</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-08-13 07:05:14 -0700</bug_when>
    <thetext>I prefer to not use the line by line diffs, and edit the full diff instead. Not that I find my current workflow efficient, but removing the full diff would make it even worse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264363</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-13 08:10:52 -0700</bug_when>
    <thetext>There needs to be some sort of safety net though.

It&apos;s *way* too easy to spam a bug with the &quot;edit the diff&quot; behavior.

Making it non-default is one way to give it a safety net.  But not the only way.

Mark&apos;s mistake is not the only bug which has died due to someone making a huge comment from our &quot;review patch&quot; tool. Even people who understand the tool don&apos;t edit down the diff nearly enough and make gigantic comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264414</commentid>
    <comment_count>4</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-08-13 09:55:33 -0700</bug_when>
    <thetext>I imagine we could just detect this case and deal with it. For example, if the number of diff lines before the first review comment or after the last one are &gt;20, we could truncate them to 20. This would be a simple tweak to the JS on the review page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264425</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-13 10:13:35 -0700</bug_when>
    <thetext>Maybe we should clear the big comment box the first time someone saves a line-by-line comment if the big box still has the original contents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265591</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-17 09:10:27 -0700</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=43055 was also just destroyed by this poor default.  We really need to remove this noose from our review system IMO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265688</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-08-17 12:11:06 -0700</bug_when>
    <thetext>I edit the full diff too. Before we added the button to add individual diffs, this error was rare, and the script I wrote to remove the full diff if you don’t edit it, made it almost never happen.

The change here was adding that new workflow.

Currently, that gets in my way when I want to search for things within the patch. I click to select a word and copy it to search, and a text field gets inserted into the patch. This is inconvenient.

I don’t think the new feature for adding comments with individual lines to the patch review has a good UI yet. It confuses people and results in patches with full diffs. Please don’t fix this by removing the old workflow!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>266716</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-19 07:19:21 -0700</bug_when>
    <thetext>Another victim:
https://bugs.webkit.org/show_bug.cgi?id=44174#c6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>266851</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-08-19 11:24:08 -0700</bug_when>
    <thetext>Someone should take my JavaScript to remove the diff if it&apos;s still there and make it handle more cases.

Also, I would find it acceptable if pasting in the diff was triggered by a button instead of default.

Generally speaking I think we are making that review page harder to understand and use with each change right now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>