use left join in getLog() finders when no ecrfId is provided#243
use left join in getLog() finders when no ecrfId is provided#243
Conversation
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
|
Caution Review failedThe pull request is closed. WalkthroughSwitches the Visit association join type to LEFT JOIN in criteria-building paths within ECRFFieldStatusEntryDaoImpl and ECRFFieldValueDaoImpl, affecting detached criteria generation and specific log-query fast paths. No public API or signatures changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant DAO as DAO (ECRF*DaoImpl)
participant HC as Hibernate Criteria
participant DB as Database
DAO->>HC: build criteria
note right of HC: Join Visit using LEFT JOIN (changed)
HC->>HC: add visit filters<br/>- visit.id is null OR<br/>- visit.id = :visitId
DAO->>HC: finalize (projections/subqueries)
HC->>DB: execute query
DB-->>HC: result set (includes rows without Visit)
HC-->>DAO: return results
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
this is a regression from 7fd549a "ecrf<->visits many-to-many - adjust DAOs"
that comes into effect in the uncommon case of using eCRFs without any visit.
Summary by CodeRabbit