Add fallthrough logic fix#787
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe change adds a single ChangesBio Modality Threshold Mapping
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
Signed-off-by: Hendrixx-RE <athukuttan2004@gmail.com>
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
registration/registration-services/src/main/java/io/mosip/registration/service/bio/impl/BioServiceImpl.java (1)
215-239:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winAdd EXCEPTION_PHOTO case to
getSupportedBioAttributesfor consistency.The
Modalityenum definesEXCEPTION_PHOTO(RegistrationConstants.exceptionPhotoAttributes), and other methods inBioServiceImpl(getMDMQualityThresholdandgetRetryCount) handle this modality. However,getSupportedBioAttributesomits it, creating an inconsistency. WhenEXCEPTION_PHOTOis passed to this method, it will not match any case and returnnullfor that modality. Add:case RegistrationConstants.EXCEPTION_PHOTO: configuredAttributes.put(modality, RegistrationConstants.exceptionPhotoAttributes); break;🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@registration/registration-services/src/main/java/io/mosip/registration/service/bio/impl/BioServiceImpl.java` around lines 215 - 239, getSupportedBioAttributes currently omits handling for the EXCEPTION_PHOTO modality so callers get no attributes for that key; update the switch inside BioServiceImpl.getSupportedBioAttributes to add a case for RegistrationConstants.EXCEPTION_PHOTO and put the corresponding list from RegistrationConstants.exceptionPhotoAttributes into configuredAttributes (use the same pattern as the other cases and include a break).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In
`@registration/registration-services/src/main/java/io/mosip/registration/service/bio/impl/BioServiceImpl.java`:
- Around line 215-239: getSupportedBioAttributes currently omits handling for
the EXCEPTION_PHOTO modality so callers get no attributes for that key; update
the switch inside BioServiceImpl.getSupportedBioAttributes to add a case for
RegistrationConstants.EXCEPTION_PHOTO and put the corresponding list from
RegistrationConstants.exceptionPhotoAttributes into configuredAttributes (use
the same pattern as the other cases and include a break).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 2deb05bc-890e-478a-99d0-3994c78f9d13
📒 Files selected for processing (1)
registration/registration-services/src/main/java/io/mosip/registration/service/bio/impl/BioServiceImpl.java
ad60554 to
1052130
Compare
#783
Summary by CodeRabbit