|
Venkat Ranganathan
2012-12-01, 16:49
Jarek Cecho
2012-12-01, 18:49
Venkat Ranganathan
2012-12-02, 06:11
Venkat Ranganathan
2012-12-02, 06:49
Jarek Cecho
2012-12-02, 17:07
Venkat Ranganathan
2012-12-03, 18:04
Jarek Cecho
2012-12-03, 18:11
Venkat Ranganathan
2012-12-05, 07:56
Jarek Cecho
2012-12-05, 16:09
Venkat Ranganathan
2012-12-05, 18:41
Jarek Cecho
2012-12-08, 15:59
Venkat Ranganathan
2012-12-08, 17:58
Jarek Cecho
2012-12-08, 18:57
|
-
Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaVenkat Ranganathan 2012-12-01, 16:49
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/ ----------------------------------------------------------- Review request for Sqoop and Jarek Cecho. Description ------- I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this Diffs ----- client/src/main/java/org/apache/sqoop/client/core/ClientError.java fd3b97d client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 client/src/main/java/org/apache/sqoop/client/request/Request.java 1720507 client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java a34c48c client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStopFunction.java 97628f7 client/src/main/java/org/apache/sqoop/client/shell/UpdateCommand.java 5bac209 client/src/main/java/org/apache/sqoop/client/shell/UpdateConnectionFunction.java 4e55dba client/src/main/java/org/apache/sqoop/client/shell/UpdateJobFunction.java f7cdf26 client/src/main/java/org/apache/sqoop/client/utils/ThrowableDisplayer.java 45c78fb client/src/main/resources/client-resource.properties 201efe9 Diff: https://reviews.apache.org/r/8305/diff/ Testing ------- Ran the SQOOP2 client tests and manually ran various client commands to make sure that all commands have their localizable strings and constants properly displayed apart from running all the unit tests. No new tests were added Thanks, Venkat Ranganathan
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaJarek Cecho 2012-12-01, 18:49
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/#review13940 ----------------------------------------------------------- Hi Venkat, thank you very much for your time and effort working on this JIRA. I do have just couple of high level suggestions: client/src/main/java/org/apache/sqoop/client/core/ClientError.java <https://reviews.apache.org/r/8305/#comment29746> Sqoop is currently using common schema for exception all over the place and the named constants are quite important. I would suggest to leave the exception handling "as it is" for now and file additional JIRA for translating them. client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java <https://reviews.apache.org/r/8305/#comment29747> What about using static call MessageFormat.format here and on all other places? That way we would skip explicit object and explicit array creation. - Jarek Cecho On Dec. 1, 2012, 4:49 p.m., Venkat Ranganathan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/8305/ > ----------------------------------------------------------- > > (Updated Dec. 1, 2012, 4:49 p.m.) > > > Review request for Sqoop and Jarek Cecho. > > > Description > ------- > > I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. > > 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this > > > Diffs > ----- > > client/src/main/java/org/apache/sqoop/client/core/ClientError.java fd3b97d > client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 > client/src/main/java/org/apache/sqoop/client/request/Request.java 1720507 > client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad > client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa > client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 > client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 > client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d > client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf > client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 > client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf > client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 > client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 > client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 > client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 > client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 > client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java a34c48c > client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 > client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d > client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b > client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 > client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e > client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee > client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaVenkat Ranganathan 2012-12-02, 06:11
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/ ----------------------------------------------------------- (Updated Dec. 2, 2012, 6:11 a.m.) Review request for Sqoop and Jarek Cecho. Changes ------- Hi Jarek Cecho I have updated the patch based on the comments and did the same tests as before. Can you please review these changes Thanks Description ------- I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this Diffs (updated) ----- client/src/main/java/org/apache/sqoop/client/core/ClientError.java fd3b97d client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 client/src/main/java/org/apache/sqoop/client/request/Request.java 1720507 client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java a34c48c client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStopFunction.java 97628f7 client/src/main/java/org/apache/sqoop/client/shell/UpdateCommand.java 5bac209 client/src/main/java/org/apache/sqoop/client/shell/UpdateConnectionFunction.java 4e55dba client/src/main/java/org/apache/sqoop/client/shell/UpdateJobFunction.java f7cdf26 client/src/main/java/org/apache/sqoop/client/utils/ThrowableDisplayer.java 45c78fb client/src/main/resources/client-resource.properties 201efe9 Diff: https://reviews.apache.org/r/8305/diff/ Testing ------- Ran the SQOOP2 client tests and manually ran various client commands to make sure that all commands have their localizable strings and constants properly displayed apart from running all the unit tests. No new tests were added Thanks, Venkat Ranganathan
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaVenkat Ranganathan 2012-12-02, 06:49
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/ ----------------------------------------------------------- (Updated Dec. 2, 2012, 6:49 a.m.) Review request for Sqoop and Jarek Cecho. Changes ------- I noticed that ClientError had an unused import and exception message was not declared final. Please review the latest. I rebuild and tested after this Description ------- I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this Diffs (updated) ----- client/src/main/java/org/apache/sqoop/client/core/ClientError.java fd3b97d client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 client/src/main/java/org/apache/sqoop/client/request/Request.java 1720507 client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java a34c48c client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStopFunction.java 97628f7 client/src/main/java/org/apache/sqoop/client/shell/UpdateCommand.java 5bac209 client/src/main/java/org/apache/sqoop/client/shell/UpdateConnectionFunction.java 4e55dba client/src/main/java/org/apache/sqoop/client/shell/UpdateJobFunction.java f7cdf26 client/src/main/java/org/apache/sqoop/client/utils/ThrowableDisplayer.java 45c78fb client/src/main/resources/client-resource.properties 201efe9 Diff: https://reviews.apache.org/r/8305/diff/ Testing ------- Ran the SQOOP2 client tests and manually ran various client commands to make sure that all commands have their localizable strings and constants properly displayed apart from running all the unit tests. No new tests were added Thanks, Venkat Ranganathan
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaJarek Cecho 2012-12-02, 17:07
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/#review13957 ----------------------------------------------------------- Hi Venkat, thank you very much for this fast turnaround. I still do have couple of notes, I'm sorry to not putting them all together at once: client/src/main/java/org/apache/sqoop/client/core/ClientError.java <https://reviews.apache.org/r/8305/#comment29797> Sqoop is currently using common schema for exception all over the place and the named constants are quite important - including the message text. I would suggest to leave the exception handling "as it is" for now and file additional JIRA for translating them. E.g. let's put into resources everything but exceptions. client/src/main/java/org/apache/sqoop/client/core/Constants.java <https://reviews.apache.org/r/8305/#comment29798> Constantize commands and parameters was originally outside of current JIRA scope, however it seems very beneficial. Thank you for doing that! client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java <https://reviews.apache.org/r/8305/#comment29800> I can see repetition of this code fragment in almost every file. What about putting it into SqoopFunction class and provide public getResource() method that can be used in all subclasses? client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java <https://reviews.apache.org/r/8305/#comment29799> I would suggest to create constants for short arguments rather than using charAt() function here. client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java <https://reviews.apache.org/r/8305/#comment29801> What about putting this code to SqoopCommand class similarly as I've proposed for SqoopFunction? client/src/main/resources/client-resource.properties <https://reviews.apache.org/r/8305/#comment29803> I would suggest not to use error codes in resources for the moment as we need to introduce way to how translate all exceptions from entire Sqoop first (including server for example). client/src/main/resources/client-resource.properties <https://reviews.apache.org/r/8305/#comment29804> Would you mind putting resource keys in lower case? client/src/main/resources/client-resource.properties <https://reviews.apache.org/r/8305/#comment29805> Would be great to have hierarchical path in the resources similarly as Hadoop is using. One way that would think about it would be to use command/function for making the hierarchy, for example: clone.conn_successful = Connection ... clone.usage = Usage: clone client/src/main/resources/client-resource.properties <https://reviews.apache.org/r/8305/#comment29802> I believe that there is a typo and "{0|" should be "{0}", right? Thank you very much for your effort! - Jarek Cecho On Dec. 2, 2012, 6:49 a.m., Venkat Ranganathan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/8305/ > ----------------------------------------------------------- > > (Updated Dec. 2, 2012, 6:49 a.m.) > > > Review request for Sqoop and Jarek Cecho. > > > Description > ------- > > I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. > > 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this > > > Diffs > ----- > > client/src/main/java/org/apache/sqoop/client/core/ClientError.java fd3b97d > client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 > client/src/main/java/org/apache/sqoop/client/request/Request.java 1720507 > client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad > client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaVenkat Ranganathan 2012-12-03, 18:04
> On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/resources/client-resource.properties, line 61 > > <https://reviews.apache.org/r/8305/diff/3/?file=232829#file232829line61> > > > > I believe that there is a typo and "{0|" should be "{0}", right? Thanks. I did not realize this issue. Will check again > On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/resources/client-resource.properties, lines 45-47 > > <https://reviews.apache.org/r/8305/diff/3/?file=232829#file232829line45> > > > > Would be great to have hierarchical path in the resources similarly as Hadoop is using. One way that would think about it would be to use command/function for making the hierarchy, for example: > > > > clone.conn_successful = Connection ... > > clone.usage = Usage: clone Did not check hadoop - will do so > On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/resources/client-resource.properties, line 39 > > <https://reviews.apache.org/r/8305/diff/3/?file=232829#file232829line39> > > > > Would you mind putting resource keys in lower case? Will do > On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/resources/client-resource.properties, lines 25-34 > > <https://reviews.apache.org/r/8305/diff/3/?file=232829#file232829line25> > > > > I would suggest not to use error codes in resources for the moment as we need to introduce way to how translate all exceptions from entire Sqoop first (including server for example). Sure, currently these are no longer used, but will remove them from resources also > On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java, lines 37-38 > > <https://reviews.apache.org/r/8305/diff/3/?file=232811#file232811line37> > > > > What about putting this code to SqoopCommand class similarly as I've proposed for SqoopFunction? Sure. Good thing to refactor > On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java, line 60 > > <https://reviews.apache.org/r/8305/diff/3/?file=232800#file232800line60> > > > > I would suggest to create constants for short arguments rather than using charAt() function here. Good point. It looks kind of odd in a way > On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java, lines 49-50 > > <https://reviews.apache.org/r/8305/diff/3/?file=232800#file232800line49> > > > > I can see repetition of this code fragment in almost every file. What about putting it into SqoopFunction class and provide public getResource() method that can be used in all subclasses? Good point - can be refactored. > On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/java/org/apache/sqoop/client/core/Constants.java, lines 31-35 > > <https://reviews.apache.org/r/8305/diff/3/?file=232796#file232796line31> > > > > Constantize commands and parameters was originally outside of current JIRA scope, however it seems very beneficial. Thank you for doing that! Thanks you > On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/java/org/apache/sqoop/client/core/ClientError.java, lines 22-45 > > <https://reviews.apache.org/r/8305/diff/3/?file=232795#file232795line22> > > > > Sqoop is currently using common schema for exception all over the place and the named constants are quite important - including the message text. I would suggest to leave the exception handling "as it is" for now and file additional JIRA for translating them. E.g. let's put into resources everything but exceptions. Thanks Jarek. Will change them including the constants. But I am not sure I understand about the common schema. Just trying to understand better. Is there a table with all the exceptions persisted? On Dec. 2, 2012, 5:07 p.m., Venkat Ranganathan wrote: > > Thank you very much for your effort! Thanks a lot for taking the time to review. Will upload after making the changes and testing them - Venkat This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/#review13957 On Dec. 2, 2012, 6:49 a.m., Venkat Ranganathan wrote:
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaJarek Cecho 2012-12-03, 18:11
> On Dec. 2, 2012, 5:07 p.m., Jarek Cecho wrote: > > client/src/main/java/org/apache/sqoop/client/core/ClientError.java, lines 22-45 > > <https://reviews.apache.org/r/8305/diff/3/?file=232795#file232795line22> > > > > Sqoop is currently using common schema for exception all over the place and the named constants are quite important - including the message text. I would suggest to leave the exception handling "as it is" for now and file additional JIRA for translating them. E.g. let's put into resources everything but exceptions. > > Venkat Ranganathan wrote: > Thanks Jarek. Will change them including the constants. But I am not sure I understand about the common schema. Just trying to understand better. Is there a table with all the exceptions persisted? Hi Venkat, thank you very much for your feedback. Please accept my apology for confusing you. I wasn't talking about database when I've mentioned word schema. I wanted to express that we're currently doing all exceptions across entire code base in exactly the same way and I would prefer to keep doing that. I would suggest to create follow up JIRA and handle localization of exceptions there. - Jarek ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/#review13957 ----------------------------------------------------------- On Dec. 2, 2012, 6:49 a.m., Venkat Ranganathan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/8305/ > ----------------------------------------------------------- > > (Updated Dec. 2, 2012, 6:49 a.m.) > > > Review request for Sqoop and Jarek Cecho. > > > Description > ------- > > I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. > > 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this > > > Diffs > ----- > > client/src/main/java/org/apache/sqoop/client/core/ClientError.java fd3b97d > client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 > client/src/main/java/org/apache/sqoop/client/request/Request.java 1720507 > client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad > client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa > client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 > client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 > client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d > client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf > client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 > client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf > client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 > client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 > client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 > client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 > client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 > client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java a34c48c > client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 > client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d > client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaVenkat Ranganathan 2012-12-05, 07:56
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/ ----------------------------------------------------------- (Updated Dec. 5, 2012, 7:56 a.m.) Review request for Sqoop and Jarek Cecho. Changes ------- Hi Jarek Cecho I have applied the review comments and ran the tests. I also resynced to the latest head and merged the changes in. Hopefully I have understood and made the right changes. Let me know if there are any issues Thanks again for reviewing the changes Venkat Description ------- I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this Diffs (updated) ----- client/src/main/java/org/apache/sqoop/client/core/ClientError.java fd3b97d client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java ac2683c client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStopFunction.java 97628f7 client/src/main/java/org/apache/sqoop/client/shell/UpdateCommand.java 5bac209 client/src/main/java/org/apache/sqoop/client/shell/UpdateConnectionFunction.java 4e55dba client/src/main/java/org/apache/sqoop/client/shell/UpdateJobFunction.java f7cdf26 client/src/main/resources/client-resource.properties 201efe9 Diff: https://reviews.apache.org/r/8305/diff/ Testing ------- Ran the SQOOP2 client tests and manually ran various client commands to make sure that all commands have their localizable strings and constants properly displayed apart from running all the unit tests. No new tests were added Thanks, Venkat Ranganathan
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaJarek Cecho 2012-12-05, 16:09
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/#review14052 ----------------------------------------------------------- Hi Venkat, thank you very much for quick feedback. I do have only couple of small nits: client/src/main/java/org/apache/sqoop/client/core/ClientError.java <https://reviews.apache.org/r/8305/#comment30057> Would you mind removing this unused import? client/src/main/java/org/apache/sqoop/client/core/ClientError.java <https://reviews.apache.org/r/8305/#comment30058> I believe that dropping the "final" keyword is not necessary here, right? client/src/main/resources/client-resource.properties <https://reviews.apache.org/r/8305/#comment30059> I would suggest to merging this two properties into one as they have exactly the same value and this will likely not change. Jarcec - Jarek Cecho On Dec. 5, 2012, 7:56 a.m., Venkat Ranganathan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/8305/ > ----------------------------------------------------------- > > (Updated Dec. 5, 2012, 7:56 a.m.) > > > Review request for Sqoop and Jarek Cecho. > > > Description > ------- > > I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. > > 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this > > > Diffs > ----- > > client/src/main/java/org/apache/sqoop/client/core/ClientError.java fd3b97d > client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 > client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad > client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa > client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 > client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 > client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d > client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf > client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 > client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf > client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 > client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 > client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 > client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 > client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 > client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java ac2683c > client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 > client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d > client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b > client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 > client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e > client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee > client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaVenkat Ranganathan 2012-12-05, 18:41
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/ ----------------------------------------------------------- (Updated Dec. 5, 2012, 6:41 p.m.) Review request for Sqoop and Jarek Cecho. Changes ------- Changes from v4 Fixed ClientError - Removed ResourceBundle import and fixed the client message to be final. Some issue with patch I have to look at. The same issue was between v2 and v3 also that I noticed. Thanks for catching that Fixed the version message for client and server to be a single one Description ------- I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this Diffs (updated) ----- client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java ac2683c client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStopFunction.java 97628f7 client/src/main/java/org/apache/sqoop/client/shell/UpdateCommand.java 5bac209 client/src/main/java/org/apache/sqoop/client/shell/UpdateConnectionFunction.java 4e55dba client/src/main/java/org/apache/sqoop/client/shell/UpdateJobFunction.java f7cdf26 client/src/main/resources/client-resource.properties 201efe9 Diff: https://reviews.apache.org/r/8305/diff/ Testing ------- Ran the SQOOP2 client tests and manually ran various client commands to make sure that all commands have their localizable strings and constants properly displayed apart from running all the unit tests. No new tests were added Thanks, Venkat Ranganathan
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaJarek Cecho 2012-12-08, 15:59
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/#review14220 ----------------------------------------------------------- Hi Venkat, thank you very much for your quick feedback and please accept my apology for late review. It looks good to me and I'm ready to get it in. The patch seems to be not applying cleanly on current Sqoop2 branch. I think that it's because we've add version to connector component in SQOOP-739. Would you mind rebasing your patch? I'll commit it soon after that. Jarcec - Jarek Cecho On Dec. 5, 2012, 6:41 p.m., Venkat Ranganathan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/8305/ > ----------------------------------------------------------- > > (Updated Dec. 5, 2012, 6:41 p.m.) > > > Review request for Sqoop and Jarek Cecho. > > > Description > ------- > > I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. > > 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this > > > Diffs > ----- > > client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 > client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad > client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa > client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 > client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 > client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 734276d > client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 0b685bf > client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 > client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf > client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 > client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 > client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 > client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 > client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 > client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java ac2683c > client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 > client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d > client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b > client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 > client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e > client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee > client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionStopFunction.java 97628f7 > client/src/main/java/org/apache/sqoop/client/shell/UpdateCommand.java 5bac209 > client/src/main/java/org/apache/sqoop/client/shell/UpdateConnectionFunction.java 4e55dba > client/src/main/java/org/apache/sqoop/client/shell/UpdateJobFunction.java f7cdf26
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaVenkat Ranganathan 2012-12-08, 17:58
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/ ----------------------------------------------------------- (Updated Dec. 8, 2012, 5:58 p.m.) Review request for Sqoop and Jarek Cecho. Changes ------- Hi Jarcec Thanks for reviewing. I have updated the client resource to add the new version string and also updated ShowConnector.java. I have tested to make sure that the Version string is printed in show connector option Description ------- I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this Diffs (updated) ----- client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 4df1c71 client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 3aa6c4f client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java 3116cd9 client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0 client/src/main/java/org/apache/sqoop/client/shell/SubmissionStopFunction.java 97628f7 client/src/main/java/org/apache/sqoop/client/shell/UpdateCommand.java 5bac209 client/src/main/java/org/apache/sqoop/client/shell/UpdateConnectionFunction.java 4e55dba client/src/main/java/org/apache/sqoop/client/shell/UpdateJobFunction.java f7cdf26 client/src/main/resources/client-resource.properties 201efe9 Diff: https://reviews.apache.org/r/8305/diff/ Testing ------- Ran the SQOOP2 client tests and manually ran various client commands to make sure that all commands have their localizable strings and constants properly displayed apart from running all the unit tests. No new tests were added Thanks, Venkat Ranganathan
-
Re: Review Request: SQOOP-648 Moving localizable strings to resources and consolidate all String constants to Constants.javaJarek Cecho 2012-12-08, 18:57
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8305/#review14222 ----------------------------------------------------------- Ship it! Hi Venkat, thank you very much for your quick turn around. It's looks good to me, so please attach last version of your patch to JIRA and I'll commit it. Jarcec - Jarek Cecho On Dec. 8, 2012, 5:58 p.m., Venkat Ranganathan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/8305/ > ----------------------------------------------------------- > > (Updated Dec. 8, 2012, 5:58 p.m.) > > > Review request for Sqoop and Jarek Cecho. > > > Description > ------- > > I have moved localizable strings to the client resources (those that are descriptions, messages in general etc). Also consolidated constants to one place and removed repetitive occurrences. > > 4 more files in utils need to be updated, but wanted to get this reviewed and take that after this > > > Diffs > ----- > > client/src/main/java/org/apache/sqoop/client/core/Constants.java 47c0547 > client/src/main/java/org/apache/sqoop/client/shell/CloneCommand.java 847a6ad > client/src/main/java/org/apache/sqoop/client/shell/CloneConnectionFunction.java 21c41aa > client/src/main/java/org/apache/sqoop/client/shell/CloneJobFunction.java b0e8d90 > client/src/main/java/org/apache/sqoop/client/shell/CreateCommand.java 2453543 > client/src/main/java/org/apache/sqoop/client/shell/CreateConnectionFunction.java 4df1c71 > client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java 3aa6c4f > client/src/main/java/org/apache/sqoop/client/shell/DeleteCommand.java bb09bf3 > client/src/main/java/org/apache/sqoop/client/shell/DeleteConnectionFunction.java ee2a1cf > client/src/main/java/org/apache/sqoop/client/shell/DeleteJobFunction.java acc8e21 > client/src/main/java/org/apache/sqoop/client/shell/HelpCommand.java 03499d8 > client/src/main/java/org/apache/sqoop/client/shell/SetCommand.java 20c8090 > client/src/main/java/org/apache/sqoop/client/shell/SetOptionFunction.java 3764306 > client/src/main/java/org/apache/sqoop/client/shell/SetServerFunction.java daf1ff4 > client/src/main/java/org/apache/sqoop/client/shell/ShowCommand.java bd74253 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java 4e49288 > client/src/main/java/org/apache/sqoop/client/shell/ShowConnectorFunction.java 3116cd9 > client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 8dcf976 > client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java ee8c63d > client/src/main/java/org/apache/sqoop/client/shell/ShowServerFunction.java 039e28b > client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java 9e8c607 > client/src/main/java/org/apache/sqoop/client/shell/SqoopCommand.java 9ae693e > client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java 200b3ee > client/src/main/java/org/apache/sqoop/client/shell/SqoopShell.java b2d05f4 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionCommand.java 39a2b31 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionStartFunction.java 74ce905 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionStatusFunction.java 4d683c0 > client/src/main/java/org/apache/sqoop/client/shell/SubmissionStopFunction.java 97628f7 > client/src/main/java/org/apache/sqoop/client/shell/UpdateCommand.java 5bac209 > client/src/main/java/org/apache/sqoop/client/shell/UpdateConnectionFunction.java 4e55dba > client/src/main/java/org/apache/sqoop/client/shell/UpdateJobFunction.java f7cdf26 > client/src/main/resources/client-resource.properties 201efe9 > > Diff: https://reviews.apache.org/r/8305/diff/ > > > Testing > ------- > > Ran the SQOOP2 client tests and manually ran various client commands to make sure that all commands have their localizable strings and constants properly displayed apart from running all the unit tests. No new tests were added |