-
Notifications
You must be signed in to change notification settings - Fork 53
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
Sandbox tenant data setup #600
base: sandbox
Are you sure you want to change the base?
Conversation
|
||
// Setting userInfo with UUID | ||
User userInfo = User.builder() | ||
.uuid("40dceade-992d-4a8f-8243-19dda76a4171") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove hardcoded uuid. Move to app props if required
public void upsertLocalization(TenantRequest tenantRequest) { | ||
|
||
List<Message> messageList = generateDynamicMessage(tenantRequest); | ||
tenantRequest.getRequestInfo().getUserInfo().setId(128L); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove hardcoding
this.serviceConfig = serviceConfig; | ||
} | ||
|
||
public void createHrmsEmployee(String HrmsRequest, String tenantId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comments on top of each functions
|
||
Tenant tenant = tenantRequest.getTenant(); | ||
|
||
String tenantCode = tenant != null && tenant.getCode() != null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move null check to annotation based in POJO
? tenant.getCode().toUpperCase().replace(".", "_") | ||
: null; | ||
|
||
String ulbKey = tenantCode != null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove if condition
try { | ||
emailBody = resource.getContentAsString(Charset.defaultCharset()); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throw custom exception
core-services/default-data-handler/src/main/java/org/egov/handler/kafka/TenantConsumer.java
Outdated
Show resolved
Hide resolved
core-services/default-data-handler/src/main/java/org/egov/handler/kafka/TenantConsumer.java
Outdated
Show resolved
Hide resolved
core-services/default-data-handler/src/main/java/org/egov/handler/util/ElasticsearchUtil.java
Outdated
Show resolved
Hide resolved
try { | ||
restTemplate.postForObject(uri.toString(), mdmsRequest, MdmsResponseV2.class); | ||
} catch (Exception e) { | ||
if (e instanceof HttpClientErrorException httpException && (httpException.getStatusCode().value() == 400)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow standard error handling
…EASSIGN when a complaint is at PENDINGATLME.
This reverts commit b8c863a.
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
No description provided.