Bug#484245: reportbug: --body-file does not use header/footer info from body

2008-06-03 Thread Y Giridhar Appaji Nag
# Bcc: control
retitle 484245 provide a CLI option that uses header/footer info also from a 
file
severity 484245 wishlist
thanks

Hi Shai,

On 08/06/03 10:39 +0300, Shai Berger said ...
 When saving a bug report for later, than using it in
 
 $ reportbug --body-file=BODYFILE
 
 The BODYFILE typically contains reportbug headers and footers,
 but reportbug fails to use them; instead, it prompts again for
 a subject line, a package etc. if they were not given on the 
 command line.
 
 The problem is aggravated by the choice to not open an editor.
 While I can see some sense in that (to allow for programmatic
 use), the result is that the user submitting the bug has no
 way to see exactly what they're sending before it is submitted.
 It makes especially little sense when the program has already
 decided to prompt for other things.

If I read this bug report correctly, what you ask for is an option that would
allow you to report bugs using reportbug directly from a file that was saved
earlier by reportbug.  And include the headers, footers etc. without having to
go through the prompt/answer routine again.

Cheers,

Giridhar

-- 
Y Giridhar Appaji Nag | http://appaji.net/


signature.asc
Description: Digital signature


Bug#484245: reportbug: --body-file does not use header/footer info from body

2008-06-03 Thread Shai Berger
Package: reportbug
Version: 3.40
Severity: normal


When saving a bug report for later, than using it in

$ reportbug --body-file=BODYFILE

The BODYFILE typically contains reportbug headers and footers,
but reportbug fails to use them; instead, it prompts again for
a subject line, a package etc. if they were not given on the 
command line.

The problem is aggravated by the choice to not open an editor.
While I can see some sense in that (to allow for programmatic
use), the result is that the user submitting the bug has no
way to see exactly what they're sending before it is submitted.
It makes especially little sense when the program has already
decided to prompt for other things.

You can see the results of my confusion with the UI in a bug I
wanted to report, bug #484239. In case you wonder, kadahat
in zalahat is mixed Hebrew-English, and means fever in a dish.

-- Package-specific info:
** Environment settings:
INTERFACE=text

** /home/shai/.reportbugrc:
reportbug_version 2.64
mode standard
ui text
realname Shai Berger
email [EMAIL PROTECTED]
smtphost mail.barak.net.il
smtpuser shai-platonix.com
smtppasswd omitted

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages reportbug depends on:
ii  apt   0.7.14 Advanced front-end for dpkg
ii  python2.5.2-1An interactive high-level object-o
ii  python-central0.6.7  register and build utility for Pyt

reportbug recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484245: reportbug: --body-file does not use header/footer info from body

2008-06-03 Thread Shai Berger
Hi Giridhar,

On Tuesday 03 June 2008 11:25:57 Y Giridhar Appaji Nag wrote:

 If I read this bug report correctly, what you ask for is an option that
 would allow you to report bugs using reportbug directly from a file that
 was saved earlier by reportbug.  And include the headers, footers etc.
 without having to go through the prompt/answer routine again.


This is almost my intention, except that I think the current behavior (make 
some prompts, and change report so it is not identical to the file, but not 
allow the user to review these changes) is not reasonable and therefore a 
defect. 

As a side point, the --body-file option is recommended by the program when you 
decide not to submit a report; with current behavior, though, the file it 
produces is actually not suitable for use with this option. I wonder, what  
use-case makes the current behavior desirable.

Thus, I disagree with both the new title and the 'wishlist' severity.

Thanks,
Shai.





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484245: reportbug: --body-file does not use header/footer info from body

2008-06-03 Thread Y Giridhar Appaji Nag
# Bcc: control
retitle 484245 reportbug: --body-file does not use header/footer info from body
severity normal
thanks

Hi Shai,

On 08/06/03 13:00 +0300, Shai Berger said ...
 
 On Tuesday 03 June 2008 11:25:57 Y Giridhar Appaji Nag wrote:
 
  If I read this bug report correctly, what you ask for is an option that
  would allow you to report bugs using reportbug directly from a file that
  was saved earlier by reportbug.  And include the headers, footers etc.
  without having to go through the prompt/answer routine again.
 
 This is almost my intention, except that I think the current behavior (make 
 some prompts, and change report so it is not identical to the file, but not 
 allow the user to review these changes) is not reasonable and therefore a 
 defect. 

Sure, I agree.

 As a side point, the --body-file option is recommended by the program when 
 you 
 decide not to submit a report; with current behavior, though, the file it 
 produces is actually not suitable for use with this option. I wonder, what  
 use-case makes the current behavior desirable.

reportbug advises using --body-file and --include since the previous release.
This was done for #328531 but reading that report closely ...

quote
Anyway, -i apparently reasks questions already in the /tmp file, so isn't
exactly what we want here.
/quote

... it looks like the submitter there wanted functionality like you expect.

 Thus, I disagree with both the new title and the 'wishlist' severity.

Hence reverting them :)

Cheers,

Giridhar

-- 
Y Giridhar Appaji Nag | http://appaji.net/


signature.asc
Description: Digital signature


Bug#484245: reportbug: --body-file does not use header/footer info from body

2008-06-03 Thread Y Giridhar Appaji Nag
severity 484245 normal
thanks

On 08/06/03 17:26 +0530, Y Giridhar Appaji Nag said ...
 On 08/06/03 13:00 +0300, Shai Berger said ...
  On Tuesday 03 June 2008 11:25:57 Y Giridhar Appaji Nag wrote:
  
   If I read this bug report correctly, what you ask for is an option that
   would allow you to report bugs using reportbug directly from a file that
   was saved earlier by reportbug.  And include the headers, footers etc.
   without having to go through the prompt/answer routine again.
  
  This is almost my intention, except that I think the current behavior (make 
  some prompts, and change report so it is not identical to the file, but not 
  allow the user to review these changes) is not reasonable and therefore a 
  defect. 

Looking at this again, the --include / -i option allows preview in the editor.
So we could change the text to remove suggesting using --body-file.  Does that
sound OK and a reasonable option as far as this defect is concerned?

And as for the wishlist we should re-open #328531 IMO.  reportbug maintainers,
what do you think?

Cheers,

Giridhar

-- 
Y Giridhar Appaji Nag | http://appaji.net/


signature.asc
Description: Digital signature


Bug#484245: reportbug: --body-file does not use header/footer info from body

2008-06-03 Thread Shai Berger
On Tuesday 03 June 2008 15:14:46 Y Giridhar Appaji Nag wrote:

 Looking at this again, the --include / -i option allows preview in the
 editor. So we could change the text to remove suggesting using --body-file.
  Does that sound OK and a reasonable option as far as this defect is
 concerned?


Almost. I would rename the --body and --body-file options to something 
like --report and --report-file (or --description, --description-file, if you 
don't find these names too long) -- as the text they take is only used 
instead of the description in the bug-report. Perhaps their documentation 
also could be made clearer, but perhaps that's just me :-)

 And as for the wishlist we should re-open #328531 IMO.

Yes, certainly. If you ignore my confusion with --body-file, this bug is just 
a dupe of #328531. While reopening it, though, I would retitle it to 
something like provide option to continue with saved report.

Thanks,
Shai.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#484245: reportbug: --body-file does not use header/footer?info from body

2008-06-03 Thread Y Giridhar Appaji Nag
tags 484245 + pending
thanks

On 08/06/03 15:32 +0300, Shai Berger said ...
 On Tuesday 03 June 2008 15:14:46 Y Giridhar Appaji Nag wrote:
 
  Looking at this again, the --include / -i option allows preview in the
  editor. So we could change the text to remove suggesting using --body-file.
   Does that sound OK and a reasonable option as far as this defect is
  concerned?
 
 Almost. I would rename the --body and --body-file options to something 
 like --report and --report-file (or --description, --description-file, if you 
 don't find these names too long) -- as the text they take is only used 
 instead of the description in the bug-report. Perhaps their documentation 
 also could be made clearer, but perhaps that's just me :-)

We could make the documentation a bit more clear, but I wouldn't like to
rename the options in the interest of backward compatibility.

  And as for the wishlist we should re-open #328531 IMO.
 
 Yes, certainly. If you ignore my confusion with --body-file, this bug is just 
 a dupe of #328531. While reopening it, though, I would retitle it to 
 something like provide option to continue with saved report.

Cheers,

Giridhar

-- 
Y Giridhar Appaji Nag | http://appaji.net/


signature.asc
Description: Digital signature