Conversation
Cohort Update Api changes
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting 📒 Files selected for processing (2)
WalkthroughThe changes extend custom field update handling in two services to propagate metadata through the field update flow. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant CohortService
participant CohortMembersService
participant FieldsService
Client->>CohortService: updateCohort(data)
CohortService->>CohortService: extractAdditionalData(tenantId, contextType, createdBy, updatedBy)
CohortService->>FieldsService: updateCustomFields(cohortId, fieldData, attributes, additionalData)
FieldsService-->>CohortService: success
Client->>CohortMembersService: updateCohortMember(memberData)
CohortMembersService->>CohortMembersService: fetch cohort details
CohortMembersService->>CohortMembersService: constructAdditionalData(tenantId, COHORTMEMBER, createdBy, updatedBy)
CohortMembersService->>CohortMembersService: processCustomFields(fields, additionalData)
CohortMembersService->>CohortMembersService: registerFieldValue(fieldId, value, additionalData)
CohortMembersService->>FieldsService: updateCustomFields(memberId, fieldData, additionalData)
FieldsService-->>CohortMembersService: success
CohortMembersService-->>Client: member updated
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
|



Summary by CodeRabbit