Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GA release major changes. #21

Merged
merged 1 commit into from
Oct 16, 2023
Merged

GA release major changes. #21

merged 1 commit into from
Oct 16, 2023

Conversation

vikasrathee-cs
Copy link
Collaborator

GA release major changes.

Copy link
Collaborator

@anup-cloudsufi anup-cloudsufi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please format the code and add some java docs is possible.

@@ -376,35 +236,14 @@ public List<Map<String, Object>> fetchTableRecordsRetryableMode(String tableName
*/
@Nullable
public Schema fetchServiceNowTableSchema(String tableName, FailureCollector collector) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems this can be replaced by fetchTableSchema.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed the method. 093d31e


return Double.parseDouble(String.valueOf(fieldValue));
try {
return NumberFormat.getNumberInstance(java.util.Locale.US).parse(String.valueOf(fieldValue)).doubleValue();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure that US local parsing is expected to different regions or better to have a comment stating that US locale number format is hardcoded.

schema = restApi.fetchTableSchema(tableName);
recordCount = restApi.getTableRecordCount(tableName);
} catch (OAuthProblemException | OAuthSystemException e) {
throw new RuntimeException(e);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since only auth exceptions are captured so please add some user friendly message for better understanding.
Ignore if you are already handling it somewhere.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added an exception message. 093d31e

@sgarg-CS
Copy link
Collaborator

Please format the code and add some java docs is possible.

Formatted the code and added Javadoc. 093d31e

@sgarg-CS sgarg-CS requested a review from anup-cloudsufi June 22, 2023 13:31
@sgarg-CS sgarg-CS force-pushed the ga_major_changes branch 3 times, most recently from e464d65 to bfb8fed Compare June 27, 2023 10:39
@AnkitCLI AnkitCLI force-pushed the ga_major_changes branch 3 times, most recently from 143b520 to 728711b Compare October 6, 2023 16:45
@sgarg-CS sgarg-CS merged commit 554fa90 into develop Oct 16, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants