Skip to content
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

Merged
merged 12 commits into from
Feb 5, 2025

Conversation

eugenvoronov
Copy link
Contributor

@eugenvoronov eugenvoronov commented Jan 30, 2025

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 when bodyOrQuery[property] is an object, causing an error when trying to access instance[property][nestedKey].

  • Next services were updated: Fortune, Exchange Oracle, Recording Oracle, Human App, Job Launcher, Reputation Oracle

Release plan

This change can be deployed as part of the regular deployment cycle.

Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
human-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 10:56am
human-dashboard-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 10:56am
staking-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 10:56am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
faucet-frontend ⬜️ Ignored (Inspect) Visit Preview Feb 3, 2025 10:56am
faucet-server ⬜️ Ignored (Inspect) Visit Preview Feb 3, 2025 10:56am

Copy link
Contributor

@dnechay dnechay left a 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?

@eugenvoronov

@eugenvoronov
Copy link
Contributor Author

Fix lgtm. Is it possible to add some simple unit test to handle this case?

@eugenvoronov

I think I can add some unit test for this case, I will check

Copy link
Contributor

@dnechay dnechay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@dnechay dnechay merged commit 000ef2f into develop Feb 5, 2025
17 checks passed
@dnechay dnechay deleted the fix/launcher/transform-case branch February 5, 2025 09:21
@dnechay dnechay mentioned this pull request Feb 5, 2025
35 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants