Repository navigation
feat: enhance mapping with missing fields of app event_source and the batching logic with grouping - #4501
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Allure Test reports for this run are available at:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## fix/tiktok_ads_v2 #4501 +/- ##
=====================================================
- Coverage 91.23% 91.22% -0.01%
=====================================================
Files 640 640
Lines 33721 33720 -1
Branches 7954 7955 +1
=====================================================
- Hits 30765 30762 -3
- Misses 2691 2693 +2
Partials 265 265 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| body: { | ||
| output: [ | ||
| { | ||
| batched: true, |
There was a problem hiding this comment.
without batched true, how it was working before ?
There was a problem hiding this comment.
It was there. Actually, 'batched: true' was in the line below. I have refactored the test case.
| @@ -2651,7 +2651,7 @@ export const data: RouterTestData[] = [ | |||
| { | |||
There was a problem hiding this comment.
too many changes in test cases at the field level whereas changes are majorly on the batching logic - can you throw some light ?
There was a problem hiding this comment.
I have refactored the test case for minimal changes.
|
Allure Test reports for this run are available at:
|
|
| if (event.message.statusCode) { | ||
| // already transformed event | ||
| getEventChunks(event, trackResponseList, eventsChunk); | ||
| getEventChunks(event, trackResponseList, processedEvents); |
There was a problem hiding this comment.
| getEventChunks(event, trackResponseList, processedEvents); | |
| getProcessedEvents(event, trackResponseList, processedEvents); |
There was a problem hiding this comment.
Going to address this in the next pr.
| }); | ||
| } | ||
| // Grouping events by event_source | ||
| const groupedEventChunks = await groupByInBatches( |
There was a problem hiding this comment.
| const groupedEventChunks = await groupByInBatches( | |
| const groupedEvents = await groupByInBatches( |
There was a problem hiding this comment.
Going to address this in the next pr.
… batching logic with grouping (#4501) * feat: enable group by event_source before batching * feat: add missing parameter for app event_source * chore: refactor test cases * chore: revert unwanted changes to test cases --------- Co-authored-by: Sudip Paul <[email protected]>
… batching logic with grouping (#4501) * feat: enable group by event_source before batching * feat: add missing parameter for app event_source * chore: refactor test cases * chore: revert unwanted changes to test cases --------- Co-authored-by: Sudip Paul <[email protected]>
* fix: add mapping of event_source instead of static * feat: enhance mapping with missing fields of app event_source and the batching logic with grouping (#4501) * feat: enable group by event_source before batching * feat: add missing parameter for app event_source * chore: refactor test cases * chore: revert unwanted changes to test cases --------- Co-authored-by: Sudip Paul <[email protected]> * feat: add missing params and refactor (#4527) * feat: add missing parameters and refactor code * chore: fix as per cursor review * chore: add test cases to increase coverage * feat: add support of mapping to consider default eventSource --------- Co-authored-by: Sudip Paul <[email protected]> * chore: refactor code * chore: address comments * chore: address coderabbit comments --------- Co-authored-by: Sudip Paul <[email protected]>



What are the changes introduced in this PR?
We have added logic to group by event_source before batching and added missing mapping for app related fields.
What is the related Linear task?
Resolves INT-3933
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
Introduced grouping logic depending on event_source and added the missing mapping for app event_source.
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.