Skip to content

Cherry-pick health and version API enhancements to release-3.6.1 (#145)

3703ac6
Select commit
Loading
Failed to load commit list.
Merged

Merge Release 3.6.1 to main #146

Cherry-pick health and version API enhancements to release-3.6.1 (#145)
3703ac6
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 19, 2026 in 19s

Quality Gate failed

Failed conditions
3.9% Duplication on New Code (required ≀ 3%)
C Reliability Rating on New Code (required β‰₯ A)
E Security Rating on New Code (required β‰₯ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 1049 in src/main/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Integer integer'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMt-_gv1uvZ9fFEA&open=AZ0FiMt-_gv1uvZ9fFEA&pullRequest=146

Check warning on line 61 in src/main/java/com/iemr/common/identity/controller/elasticsearch/ElasticsearchSyncController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMwy_gv1uvZ9fFE4&open=AZ0FiMwy_gv1uvZ9fFE4&pullRequest=146

Check failure on line 325 in src/main/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "villageName" 5 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMt-_gv1uvZ9fFDM&open=AZ0FiMt-_gv1uvZ9fFDM&pullRequest=146

Check warning on line 134 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryElasticsearchIndexService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

4th argument is not used.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMtN_gv1uvZ9fFCK&open=AZ0FiMtN_gv1uvZ9fFCK&pullRequest=146

Check warning on line 649 in src/main/java/com/iemr/common/identity/service/IdentityService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMv9_gv1uvZ9fFEt&open=AZ0FiMv9_gv1uvZ9fFEt&pullRequest=146

Check warning on line 277 in src/main/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchIndexingService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMul_gv1uvZ9fFER&open=AZ0FiMul_gv1uvZ9fFER&pullRequest=146

Check failure on line 79 in src/main/java/com/iemr/common/identity/controller/IdentityESController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Success" 4 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMw8_gv1uvZ9fFE8&open=AZ0FiMw8_gv1uvZ9fFE8&pullRequest=146

Check warning on line 68 in src/main/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMt-_gv1uvZ9fFDs&open=AZ0FiMt-_gv1uvZ9fFDs&pullRequest=146

Check failure on line 93 in src/main/java/com/iemr/common/identity/controller/elasticsearch/ElasticsearchSyncController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "status" 17 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMwy_gv1uvZ9fFEx&open=AZ0FiMwy_gv1uvZ9fFEx&pullRequest=146

Check warning on line 57 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryTransactionHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Either log this exception and handle it, or rethrow it with some contextual information.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMu8_gv1uvZ9fFEa&open=AZ0FiMu8_gv1uvZ9fFEa&pullRequest=146

Check warning on line 333 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryElasticsearchIndexService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Number number'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMtN_gv1uvZ9fFCQ&open=AZ0FiMtN_gv1uvZ9fFCQ&pullRequest=146

Check warning on line 132 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryElasticsearchIndexService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested try block into a separate method.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMtN_gv1uvZ9fFB-&open=AZ0FiMtN_gv1uvZ9fFB-&pullRequest=146

Check warning on line 158 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryDocumentDataService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof BigInteger biginteger'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMtZ_gv1uvZ9fFCc&open=AZ0FiMtZ_gv1uvZ9fFCc&pullRequest=146

Check failure on line 279 in src/main/java/com/iemr/common/identity/controller/elasticsearch/ElasticsearchSyncController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "benRegId" 3 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMwy_gv1uvZ9fFEy&open=AZ0FiMwy_gv1uvZ9fFEy&pullRequest=146

Check failure on line 279 in src/main/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "benAccountID" 4 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMt-_gv1uvZ9fFDi&open=AZ0FiMt-_gv1uvZ9fFDi&pullRequest=146

Check warning on line 592 in src/main/java/com/iemr/common/identity/service/IdentityService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove these unused method parameters "auth", "is1097".

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMv9_gv1uvZ9fFEs&open=AZ0FiMv9_gv1uvZ9fFEs&pullRequest=146

Check warning on line 336 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryDocumentDataService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof BigInteger biginteger'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMtZ_gv1uvZ9fFCn&open=AZ0FiMtZ_gv1uvZ9fFCn&pullRequest=146

Check warning on line 56 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryElasticsearchIndexService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMtN_gv1uvZ9fFCD&open=AZ0FiMtN_gv1uvZ9fFCD&pullRequest=146

Check warning on line 587 in src/main/java/com/iemr/common/identity/service/IdentityService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Method has 19 parameters, which is greater than 7 authorized.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMv9_gv1uvZ9fFEp&open=AZ0FiMv9_gv1uvZ9fFEp&pullRequest=146

Check failure on line 286 in src/main/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "blockId" 3 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMt-_gv1uvZ9fFDD&open=AZ0FiMt-_gv1uvZ9fFDD&pullRequest=146

Check warning on line 150 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryDocumentDataService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested try block into a separate method.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMtZ_gv1uvZ9fFCU&open=AZ0FiMtZ_gv1uvZ9fFCU&pullRequest=146

Check warning on line 1089 in src/main/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Date date'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMt-_gv1uvZ9fFEJ&open=AZ0FiMt-_gv1uvZ9fFEJ&pullRequest=146

Check warning on line 224 in src/main/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchSyncService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Integer integer'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMto_gv1uvZ9fFC4&open=AZ0FiMto_gv1uvZ9fFC4&pullRequest=146

Check warning on line 320 in src/main/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryDocumentDataService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof BigInteger biginteger'

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMtZ_gv1uvZ9fFCk&open=AZ0FiMtZ_gv1uvZ9fFCk&pullRequest=146

Check failure on line 79 in src/main/java/com/iemr/common/identity/controller/IdentityESController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "errorMessage" 4 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ0FiMw8_gv1uvZ9fFE_&open=AZ0FiMw8_gv1uvZ9fFE_&pullRequest=146