Skip to content

Cherry-pick health and version API enhancements to release-3.6.1#192

Merged
vanitha1822 merged 21 commits intoPSMRI:release-3.6.1from
DurgaPrasad-54:release-3.6.1
Mar 12, 2026
Merged

Cherry-pick health and version API enhancements to release-3.6.1#192
vanitha1822 merged 21 commits intoPSMRI:release-3.6.1from
DurgaPrasad-54:release-3.6.1

Conversation

@DurgaPrasad-54
Copy link
Copy Markdown
Contributor

@DurgaPrasad-54 DurgaPrasad-54 commented Mar 12, 2026

This PR cherry-picks health monitoring and version API enhancements from the main branch into the release-3.6.1 branch to ensure the improvements are included in the upcoming production release.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 12, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ffe8bde8-3467-4d61-9102-f9448c5bee23

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@DurgaPrasad-54 DurgaPrasad-54 changed the title Release 3.6.1 Cherry-pick health and version API enhancements to release-3.6.1 Mar 12, 2026
Comment thread src/main/java/com/iemr/hwc/controller/health/HealthController.java
Comment thread pom.xml
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>7.0.0</version>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is these plugin really required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@vanitha1822 Yes, this plugin is required. It generates the git.properties file during the build, which is used by the /version endpoint to expose build metadata such as branch, commit hash, version, and build timestamp.

@sonarqubecloud
Copy link
Copy Markdown

@vanitha1822 vanitha1822 merged commit ce92b3e into PSMRI:release-3.6.1 Mar 12, 2026
2 checks passed
drtechie pushed a commit that referenced this pull request Mar 19, 2026
* Elasticsearch Implementation for Beneficiary Search (#182)

* fix: implement elasticsearch functionality

* fix: update the response code

* fix: update pom.xml

* fix: advance search functionality

* fix: add env properties

* fix: updated to advancedSearch

* fix: update to advanced

* Added the Signature for hwc (#184)

* fix:prescription drug for hwc

* fix:doctor signature

* fix:doctor signature

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

* Add /health endpoint and update /version endpoint

* Update HTTPRequests and fix issues in /health and /version

* fix(security): validate authentication for /health details

* feat: update version and health endpoints

* fix(redis): fix redis timeout handling issue

* fix(health): fix InterruptedException handling and add redis timeout with proper interrupt restore

* refactor(health): simplify MySQL health check and remove sensitive details

* fix(health): removed unused methods from healthservices

* fix(health): remove unused imports

* fix(health): scope PROCESSLIST lock-wait check to application DB user

* fix(health): avoid permanent DEGRADED from historical deadloc

* fix(health): handle executor rejection during shutdown in /health

* refactor(health): centralize component names and fix InterruptedException handling

* fix(health): resolve remaining reliability issues on new code

* fix(health): isolate advanced checks in dedicated executor to avoid thread starvation

* fix(health): cancel timed-out advanced MySQL checks to avoid orphaned tasks

* fix(health): make advanced MySQL checks interruptible on timeout

* fix(health): remove unsafe connection sharing from advanced MySQL checks

* refactor(health): reduce cognitive complexity of advanced MySQL throttle logic

* fix(health): cancel in-flight futures on generic failure

* feat(health): add gpl  license header

* change release vserion in pom file (#194)

---------

Co-authored-by: Vishwanath Balkur <118195001+vishwab1@users.noreply.github.com>
Co-authored-by: KOPPIREDDY DURGA PRASAD <144464542+DurgaPrasad-54@users.noreply.github.com>
Co-authored-by: Saurav Mishra <saurav.mishra@bizbrolly.com>
Co-authored-by: Saurav Mishra <80103738+SauravBizbRolly@users.noreply.github.com>
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