Repository navigation
fix: removed retry logic from v1 cm360, added adapter for v1 to v0 conversion - #2860
Conversation
|
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke 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 X ? TipsChat with CodeRabbit Bot (
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #2860 +/- ##
===========================================
- Coverage 87.19% 87.19% -0.01%
===========================================
Files 776 784 +8
Lines 28950 29064 +114
Branches 6792 6815 +23
===========================================
+ Hits 25244 25341 +97
- Misses 3364 3378 +14
- Partials 342 345 +3 ☔ View full report in Codecov by Sentry. |
|
Kudos, SonarCloud Quality Gate passed! |
| type ProxyDeliveryRequest = { | ||
| version: string; | ||
| type: string; | ||
| method: string; | ||
| endpoint: string; | ||
| userId: string; | ||
| headers?: Record<string, unknown>; | ||
| params?: Record<string, unknown>; | ||
| body?: { | ||
| JSON?: Record<string, unknown>; | ||
| JSON_ARRAY?: Record<string, unknown>; | ||
| XML?: Record<string, unknown>; | ||
| FORM?: Record<string, unknown>; | ||
| }; | ||
| files?: Record<string, unknown>; | ||
| metadata: Metadata; | ||
| }; | ||
|
|
||
| type ProxyDeliveriesRequest = { | ||
| version: string; | ||
| type: string; | ||
| method: string; | ||
| endpoint: string; | ||
| userId: string; | ||
| headers?: Record<string, unknown>; | ||
| params?: Record<string, unknown>; | ||
| body?: { | ||
| JSON?: Record<string, unknown>; | ||
| JSON_ARRAY?: Record<string, unknown>; | ||
| XML?: Record<string, unknown>; | ||
| FORM?: Record<string, unknown>; | ||
| }; | ||
| files?: Record<string, unknown>; | ||
| metadata: Metadata[]; | ||
| }; |
There was a problem hiding this comment.
Can't we
| type ProxyDeliveryRequest = { | |
| version: string; | |
| type: string; | |
| method: string; | |
| endpoint: string; | |
| userId: string; | |
| headers?: Record<string, unknown>; | |
| params?: Record<string, unknown>; | |
| body?: { | |
| JSON?: Record<string, unknown>; | |
| JSON_ARRAY?: Record<string, unknown>; | |
| XML?: Record<string, unknown>; | |
| FORM?: Record<string, unknown>; | |
| }; | |
| files?: Record<string, unknown>; | |
| metadata: Metadata; | |
| }; | |
| type ProxyDeliveriesRequest = { | |
| version: string; | |
| type: string; | |
| method: string; | |
| endpoint: string; | |
| userId: string; | |
| headers?: Record<string, unknown>; | |
| params?: Record<string, unknown>; | |
| body?: { | |
| JSON?: Record<string, unknown>; | |
| JSON_ARRAY?: Record<string, unknown>; | |
| XML?: Record<string, unknown>; | |
| FORM?: Record<string, unknown>; | |
| }; | |
| files?: Record<string, unknown>; | |
| metadata: Metadata[]; | |
| }; | |
| type DeliveryRequest = { | |
| version: string; | |
| type: string; | |
| method: string; | |
| endpoint: string; | |
| userId: string; | |
| headers?: Record<string, unknown>; | |
| params?: Record<string, unknown>; | |
| body?: { | |
| JSON?: Record<string, unknown>; | |
| JSON_ARRAY?: Record<string, unknown>; | |
| XML?: Record<string, unknown>; | |
| FORM?: Record<string, unknown>; | |
| }; | |
| files?: Record<string, unknown>; | |
| }; | |
| interface ProxyDeliveryRequest extends DeliveryRequest { | |
| metadata: Metadata; | |
| } | |
| interface ProxyDeliveriesRequest extends DeliveryRequest { | |
| metadata: Metadata[]; | |
| } |
| type DeliveriesResponse = { | ||
| status?: number; | ||
| message?: string; | ||
| statTags?: object; | ||
| authErrorCategory?: string; | ||
| response: DeliveryJobState[]; |
| return ctx; | ||
| } | ||
|
|
||
| public static async deliverToDestinationV1(ctx: Context) { |
There was a problem hiding this comment.
Apart from creating a new function can't we update the previous function to use on a different version?








Description of the change
Type of change
Related issues
Checklists
Development
Code review