-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Job Launcher] Fixed case transformation issue for request body properties in "Failed" webhooks #3060
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
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.
Fix lgtm. Is it possible to add some simple unit test to handle this case?
packages/apps/reputation-oracle/server/src/modules/webhook/webhook.controller.ts
Outdated
Show resolved
Hide resolved
I think I can add some unit test for this case, I will check |
packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.ts
Show resolved
Hide resolved
packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.ts
Show resolved
Hide resolved
packages/apps/job-launcher/server/src/common/guards/signature.auth.ts
Outdated
Show resolved
Hide resolved
...ps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts
Show resolved
Hide resolved
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.
Nice
Issue tracking
The issue was tracked on GitHub under issue [Job Launcher] Failing to transform case of request body properties for "failed" webhooks
#3039
Context behind the change
Job Launcher (and other services with similar transformation logic) was failing to processing nested objects.
The issue occurs because
instance[property]
might be undefined whenbodyOrQuery[property]
is an object, causing an error when trying to accessinstance[property][nestedKey]
.Release plan
This change can be deployed as part of the regular deployment cycle.