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

[BACKLOG-43059] - Kettle changes for DB Connections #9779

Open
wants to merge 1 commit into
base: webttle-mvp2
Choose a base branch
from

Conversation

amitkumar3hitachi
Copy link
Contributor

No description provided.

@amitkumar3hitachi amitkumar3hitachi requested a review from a team as a code owner January 2, 2025 06:56
Method actionMethod = DatabaseLookup.class.getDeclaredMethod(fieldName + "Action", Map.class);
this.setStepMetaInterface(stepMetaInterface);
response = (JSONObject) actionMethod.invoke(this, queryParamToValues);
} catch (NoSuchMethodException e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

checkstyle is not followed please take care of it

response = (JSONObject) actionMethod.invoke(this, queryParamToValues);
} catch (NoSuchMethodException e) {
log.logError("Method not found: " + e.getMessage(), e);
response.put("actionStatus", "FAILURE");
Copy link
Contributor

Choose a reason for hiding this comment

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

why are the values "Failure" etc are hard coded, please use the ones present in step Interface as used by other steps

}

@SuppressWarnings("java:S1144") // Using reflection this method is being invoked
private JSONObject getTableFieldAction(Map<String, String> queryParams) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the same code is present in dialog as well? If so then we have to refactor the dialog code for maintainability

Copy link
Contributor

@sVarma1992 sVarma1992 left a comment

Choose a reason for hiding this comment

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

Requested few changes

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.

2 participants