Bug 209410 - [bot] improve documentation/feedback & error handling
Summary: [bot] improve documentation/feedback & error handling
Status: CLOSED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Remy Suen CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-11-10 02:52 EST by Nick Boldt CLA
Modified: 2008-05-18 19:53 EDT (History)
1 user (show)

See Also:


Attachments
misc fixes (26.28 KB, patch)
2007-11-10 02:52 EST, Nick Boldt CLA
no flags Details | Diff
146 LOC patch to generate HTML from commands and externalize command regexs into properties (15.33 KB, patch)
2007-11-12 15:23 EST, Nick Boldt CLA
no flags Details | Diff
82 LOC patch for improved error handling, TODOs, and HTML output w/ line breaks and highlighting for {0} replacements (8.60 KB, patch)
2007-11-12 15:37 EST, Nick Boldt CLA
no flags Details | Diff
add colour to commands.html; better handling for NPEs; simplify cases when target == null (21.07 KB, patch)
2007-11-19 21:16 EST, Nick Boldt CLA
no flags Details | Diff
Tweaked patch to correct some hiccups. (21.36 KB, patch)
2008-01-08 15:28 EST, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Boldt CLA 2007-11-10 02:52:54 EST
Created attachment 82602 [details]
misc fixes

This is for improved i/o with the bot, HTMLified commands, and using the commands themselves as regexes instead of simply as comments in the properties file.

See also comments / TODOs in attached patch.
Comment 1 Nick Boldt CLA 2007-11-10 03:01:16 EST
Oops. Line 346 should also check for null:

- while (input.indexOf(SUM_CLOSE_TAG) == -1) {
+ while (input != null && input.indexOf(SUM_CLOSE_TAG) == -1) {

Comment 2 Remy Suen CLA 2007-11-10 07:38:32 EST
Patches that are over 250 lines needs to have the IP process invoked. Of course, we'd rather not do that.

Nick, can you create smaller patches that tackles specific issues or enhancements please? It'd make it easier for me to review anyway. As I review and commit them, you can add attach another one to the bug.

Don't worry about externalizing every single string (including the ones that haven't been externalized), some of them I've forgotten about, some of them I'm leaving it on purpose because I want to remind myself to externalize them / make them into constants later.
Comment 3 Nick Boldt CLA 2007-11-12 15:23:55 EST
Created attachment 82699 [details]
146 LOC patch to generate HTML from commands and externalize command regexs into properties

patch part 1: `grep "+" ecf-kosmos-create-commands.html.patch | grep -v "@@" | wc -l` returns 146 lines of new and refactored code
Comment 4 Nick Boldt CLA 2007-11-12 15:37:13 EST
Created attachment 82701 [details]
82 LOC patch for improved error handling, TODOs, and HTML output w/ line breaks and highlighting for {0} replacements

patch part 2: `grep "+" ecf-kosmos-better-error-handling-and-html-output.patch | grep -v "@@" | wc -l` returns 82 lines of new and refactored code

This patch was built assuming that part 1 was NOT applied, so it should be able to be applied on top of part 2. Hopefully.
Comment 5 Remy Suen CLA 2007-11-17 09:38:32 EST
Attachment 82699 [details] has been applied and KOS-MOS has been restarted as of this comment. Attachment 82701 [details] cannot be overlaid cleanly, as expected.
Comment 6 Nick Boldt CLA 2007-11-19 21:16:20 EST
Created attachment 83293 [details]
add colour to commands.html; better handling for NPEs; simplify cases when target == null

Patch is 152 lines of new/changed code and 250 lines of removed/changed code. including some line reformatting/cleanup, which isn't new code, just me making the code prettier. I hope that passes the <250 line contraint. ;-)
Comment 7 Remy Suen CLA 2007-11-29 18:38:43 EST
Being the axesome Eclipse citizens we are, I have submitted CQ 1880 for Nick's attachment 83293 [details].
https://dev.eclipse.org/ipzilla/show_bug.cgi?id=1880
Comment 8 Nick Boldt CLA 2007-12-24 20:47:55 EST
(In reply to comment #7)
> https://dev.eclipse.org/ipzilla/show_bug.cgi?id=1880

CQ has been approved. 

Comment 9 Remy Suen CLA 2008-01-07 14:35:33 EST
Leaving a Firefox tab open on this bug so I don't forget. Will try to address this this week before assignments starts rolling in. :)
Comment 10 Remy Suen CLA 2008-01-08 15:28:30 EST
Created attachment 86426 [details]
Tweaked patch to correct some hiccups.

Removed a print statement and also corrected the bug replies so that specified targets are not ignored.
Comment 11 Remy Suen CLA 2008-01-08 15:29:30 EST
Patch applied to CVS HEAD. KOS-MOS has been restarted. Thanks, Nick.
Comment 12 Scott Lewis CLA 2008-05-18 19:53:15 EDT
closing