-
-
Notifications
You must be signed in to change notification settings - Fork 45
Bug solved for retrieve notification API for storing connect messaging #3410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThe Sequence DiagramsequenceDiagram
participant Parser as RetrieveNotificationsResponseParser
participant Validator as isNotificationMessageType
participant MessageRecord as ConnectMessagingMessageRecord
Note over Parser: Old Flow (with data check)
loop For each notification
Parser->>Validator: Check type
alt Type matches
Parser->>Parser: Check if data.message_id exists
alt message_id present
Parser->>MessageRecord: fromJson(notification.data)
MessageRecord-->>Parser: MessageRecord created
end
end
end
Note over Parser: New Flow (guard removed)
loop For each notification
Parser->>Validator: Check type
alt Type matches
rect rgb(200, 220, 255)
Note over Parser: Guard condition removed
Parser->>MessageRecord: fromJson(entire notification)
MessageRecord-->>Parser: MessageRecord created
end
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (7)📓 Common learnings📚 Learning: 2025-02-04T21:22:56.537ZApplied to files:
📚 Learning: 2025-01-21T18:20:43.883ZApplied to files:
📚 Learning: 2025-02-19T15:15:01.935ZApplied to files:
📚 Learning: 2025-05-08T11:08:18.530ZApplied to files:
📚 Learning: 2025-04-22T17:04:26.780ZApplied to files:
📚 Learning: 2025-04-22T17:04:26.780ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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 |
Connect messages were not getting stored due to recent changes in retrieve notification api. This is solved in this PR.
Labels and Review