Repository navigation
fix: add timestamp conversion mock - #2763
Merged
Merged
Conversation
- move timestamp conversion logic to helper & use the helper object - include common mock logic - add mocks for all relevant test-cases - clean-up unnecessary imports Signed-off-by: Sai Sankeerth <[email protected]>
sanpj2292
requested review from
a team,
ItsSudip,
koladilip,
krishna2020,
saikumarrs and
yashasvibajpai
and removed request for
a team
October 21, 2023 19:07
Signed-off-by: Sai Sankeerth <[email protected]>
Signed-off-by: Sai Sankeerth <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## chore.refactor-testcases #2763 +/- ##
===========================================================
Coverage ? 87.05%
===========================================================
Files ? 716
Lines ? 28258
Branches ? 6647
===========================================================
Hits ? 24601
Misses ? 3320
Partials ? 337 ☔ View full report in Codecov by Sentry. |
|
Kudos, SonarCloud Quality Gate passed! |
Author
|
Used My Observations:
|
koladilip
approved these changes
Oct 22, 2023
ItsSudip
approved these changes
Oct 25, 2023
yashasvibajpai
approved these changes
Oct 25, 2023
3 of 10 tasks
ItsSudip
added a commit
that referenced
this pull request
Sep 28, 2026
## What are the changes introduced in this PR? Merges the Topsort feature branch into `develop`. It contains: - #5606 (contributed by Topsort): deterministic event ids so retries are idempotent (`<messageId>`, or `<messageId>-<index>` for events fanned out from `properties.products`), removal of the `additionalAttribution` mapping, and chunking at the Events API's per-array cap of 50. - #5618: moves Topsort fully onto the batching framework. - Registers `TOPSORT: { routerTransform: true, batching: true, transformerProxy: true }` in `src/features.ts`. - Removes the legacy `process` / `processRouterDest` transform and the processor test fixtures; the destination is router-only. - Converts the destination to TypeScript. - Requires `messageId` in the input schema. - Sends impressions, clicks and purchases in one request, each array capped at 50. - Adds `delivery.ts`: a 400 from the Events API retries each job on its own with `dontBatch: true`; a job already sent alone is aborted. ## What is the related Linear task? Resolves INT-7228 ## Please explain the objectives of your changes below **Dependent change:** rudder-integrations-config #2763 (`transformAtV1: "router"` for Topsort) is merged. It must be released before this PR, because this PR removes the processor `process` transform. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? - Topsort is router-only; the processor route (`/v0/destinations/topsort`) is no longer supported. - The `id` sent for events carrying a `products` array changes to `<messageId>-<index>`. - `additionalAttribution` is no longer mapped. - Events of different types share a request. - A message without `messageId` fails with `message.messageId: Required`. - A 400 from Topsort retries each job alone (`dontBatch`) instead of aborting the batch. ### Any new dependencies introduced with this change? N/A ### Any new generic utility introduced or modified. Please explain the changes. N/A ### Any technical or performance related pointers to consider with the change? N/A <hr> ### Developer checklist - [x] 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? - [x] Is the PR limited to one linear task? - [x] 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: bernirosas <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Bernardita Rosas <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Description of the change
Changes only applicable for GAOC tests
Resolves INT-886
Type of change
Related issues
Checklists
Development
Code review