Skip to content

fix: resolve ONLY_FULL_GROUP_BY violations and bulk registration username bug#136

Open
vishwab1 wants to merge 82 commits into
release-3.8.2from
vb/fixservice
Open

fix: resolve ONLY_FULL_GROUP_BY violations and bulk registration username bug#136
vishwab1 wants to merge 82 commits into
release-3.8.2from
vb/fixservice

Conversation

@vishwab1

Copy link
Copy Markdown
Member

📋 Description

JIRA ID: AMM-2335

Please provide a summary of the change and the motivation behind it. Include relevant context and details.

Summary

  • Fix bulk employee registration setting username from contact number instead of the actual username field (BulkRegistrationServiceImpl.java)
  • Remove unnecessary GROUP BY clauses causing ONLY_FULL_GROUP_BY SQL mode violations in two service-lookup queries, replacing one with DISTINCT to preserve dedup behavior without grouping by a non-selected column

✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

SauravBizbRolly and others added 27 commits November 11, 2025 17:03
fix: amm-1927 send headers only if the request is from the allowed origin
# Conflicts:
#	src/main/java/com/iemr/admin/service/employeemaster/EmployeeSignatureServiceImpl.java
…#121)

* fix:changed the pom xml

* fix: added facilty type master change

* feat: created facility creation

* fix: rabiit review fix

* fix: rabiit review fix

* fix: rabiit review fix

* fix: pom version
* fix:changed the pom xml

* fix: added facilty type master change

* feat: created facility creation

* feat:added work location

* feat:added work location

* fix: rabiit review fix

* fix: rabiit review fix

* fix: rabiit review fix

* fix: ui chnges

* fix: pom version

* fix: corrections

* fix: facilty hierachy

* fix: facility heirachy

* fix: remove logs folder from repository

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: add logs/ to .gitignore

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix:changed the pom xml

* fix: added facilty type master change

* feat: created facility creation

* feat:added work location

* feat:added work location

* fix: rabiit review fix

* fix: rabiit review fix

* fix: rabiit review fix

* fix: ui chnges

* fix: pom version

* fix: corrections

* fix: facilty hierachy

* fix: facility heirachy

* fix: item facility mapping and store updates

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: fixed inventory flow

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Cherry-pick health and version API enhancements to release-3.6.1 (#124)

* feat(health,version): add health and version endponts

* fix(health): add constant and remove duplicates

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

* fix(health): Removed the unnecessary boolean literal

* fix(health):  Fixed the broken lock-wait detection

* fix(health): avoid blocking DB I/O under write lock and restore interrupt flag

* fix(health): add cancelFutures in healthservice

* fix(health): close basic DB connection before advanced checks and remove shared-map race

* feat: expose account lock state in SearchEmployee4 (#129)

Co-authored-by: Varun Deep Saini <varun.23bcs10048@ms.sst.scaler.com>

* Fix the reset password issue (#131)

* fix: reset password

* fix: build issue

* fix: update the url

* fix: update config properties

* fix: initialize constructor

---------

Co-authored-by: KOPPIREDDY DURGA PRASAD <144464542+DurgaPrasad-54@users.noreply.github.com>
Co-authored-by: Varun Deep Saini <deep.sa@rippling.com>
Co-authored-by: Varun Deep Saini <varun.23bcs10048@ms.sst.scaler.com>
Co-authored-by: Vanitha S <116701245+vanitha1822@users.noreply.github.com>
GROUP BY sm.serviceName selected non-aggregated, non-functionally-dependent
columns (serviceID, isNational, statusID), which MySQL rejects under
ONLY_FULL_GROUP_BY. Use SELECT DISTINCT instead since no aggregation is
actually needed.
…tead of username field

mUser.setUserName(employee.getContactNo()) was using the uploaded
contact number as the login username, ignoring the actual UserName
column in the bulk upload sheet.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
# Conflicts:
#	src/main/java/com/iemr/admin/service/bulkRegistration/BulkRegistrationServiceImpl.java
#	src/main/java/com/iemr/admin/utils/JwtUserIdValidationFilter.java
@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a5309b1e-1156-4dc1-8897-fd2c4a681b58

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

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.

@sonarqubecloud

Copy link
Copy Markdown

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.

8 participants