fix: Only include actor_standby when at least one field is provided#597
Merged
fix: Only include actor_standby when at least one field is provided#597
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #597 +/- ##
==========================================
- Coverage 76.01% 75.92% -0.10%
==========================================
Files 42 42
Lines 2468 2471 +3
==========================================
Hits 1876 1876
- Misses 592 595 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Update the `get_actor_representation` function to conditionally include the `actor_standby` object only when at least one of its fields is not None. This prevents sending empty or null-only actor_standby objects to the API. According to the API changes, actor_standby is optional and should only be included when needed, with is_enabled being the only required field within the object when present. Related JS client issue: apify/apify-client-js#832 Closes #595 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
93feb49 to
bd94c5d
Compare
l2ysho
approved these changes
Jan 27, 2026
l2ysho
left a comment
There was a problem hiding this comment.
Seems fine, this API change is merged with release today, maybe you want to wait for it before merge?
Pijukatel
approved these changes
Jan 27, 2026
Contributor
Author
We're not gonna release it today, so I guess it's ok to merge. |
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.
Update the
get_actor_representationfunction to conditionally include theactor_standbyobject only when at least one of its fields is not None. This prevents sending empty or null-only actor_standby objects to the API.Background:
According to the API changes,
actor_standbyis optional and should only be included when needed. When present,is_enabledis the only required field within the object.Changes:
get_actor_representation()to conditionally addactor_standbyto the Actor dictionaryactor_standby_is_enabledactor_standby_desired_requests_per_actor_runactor_standby_max_requests_per_actor_runactor_standby_idle_timeout_secsactor_standby_buildactor_standby_memory_mbytesRelated:
Closes #595