-
Notifications
You must be signed in to change notification settings - Fork 297
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
chore: add support for live events in internal batch endpoint #4627
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4627 +/- ##
==========================================
- Coverage 74.66% 74.55% -0.12%
==========================================
Files 408 409 +1
Lines 48381 48423 +42
==========================================
- Hits 36124 36100 -24
- Misses 9905 9964 +59
- Partials 2352 2359 +7 ☔ View full report in Codecov by Sentry. |
3324ff7
to
20b0301
Compare
gateway/handle.go
Outdated
|
||
// Sending events to config backend | ||
for _, job := range jobs { | ||
writeKey, ok := jobsUUIDToWriteKeyMap[job.UUID] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we call gw.writeKeyForSourceID
here instead of passing the jobsUUIDToWriteKeyMap
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean to say, we get the source ID from params and call writeKeyForSourceID
with sourceID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't understand the motivation behind changing some stat functions.
Otherwise LGTM
@@ -1,5 +1,6 @@ | |||
package sourcedebugger | |||
|
|||
//go:generate mockgen -destination=./mocks/mock.go -package=mocks github.com/rudderlabs/rudder-server/services/debugger/source SourceDebugger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[minor] [non-blocking] Do we need to generate a mock? The interface signature seems simple enough to mock by hand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its simpler to just generate a mock, mock by hand feels too much manual work(in writing a mock as well as to maintain it) :D
Description
Linear Ticket
https://linear.app/rudderstack/issue/PIPE-842/%5Bingestionsvc%5D-source-live-events
Security