Skip to content

feat: Add server_tenancy parameter to Actor create and update - #1169

Merged
janbuchar merged 7 commits into
masterfrom
add-multi-tenant-update-params
Nov 6, 2026
Merged

janbuchar merged 7 commits into
masterfrom
add-multi-tenant-update-params

Conversation

@janbuchar

Copy link
Copy Markdown
Contributor

No description provided.

@janbuchar janbuchar added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Oct 29, 2026
@janbuchar
janbuchar requested review from Pijukatel and vdusek October 29, 2026 16:27
@janbuchar janbuchar self-assigned this Oct 29, 2026
@apify-service-account apify-service-account added the tested Temporary label used only programatically for some analytics. label Oct 29, 2026
@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.74%. Comparing base (b1dd6c2) to head (24b2007).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1169      +/-   ##
==========================================
- Coverage   95.74%   95.74%   -0.01%     
==========================================
  Files          63       63              
  Lines        6678     6668      -10     
==========================================
- Hits         6394     6384      -10     
  Misses        284      284              
Flag Coverage Δ
integration 90.91% <100.00%> (+0.03%) ⬆️
unit 90.68% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few comments.

@apify-factory apify-factory left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, nothing blocking.

🏭 Factory review — ℹ️ not auto-approved

This change was reviewed but cannot be auto-approved: a human review is active (vdusek: CHANGES_REQUESTED).

check result
Static gates ✅ 16/16
Review findings ✅ none
Reviewer escalation ❌ Adds a new public keyword argument to the exported ActorClient.update and ActorCollectionClient.create signatures (public contract change).
Juror 1 — claude-sonnet-5-5, adversarial ⏭️ skipped — the reviewer escalated
Why it was not auto-approved

The comments above are the review itself; this section only explains the approval decision. Push a change and request @apify-factory again to re-run it, or ask a human to review.

Reviewed 805bcc746 · workflow run

vdusek added a commit that referenced this pull request Nov 5, 2026
…1202)

Renames the `actor_standby_*` arguments of `ActorClient.update`,
`ActorCollectionClient.create`, `TaskClient.update`, and
`TaskCollectionClient.create` (sync and async) to the Server Actor
naming used by `ActorClient.server()`:

| Deprecated | New |
| --- | --- |
| `actor_standby_is_enabled` | `server_is_enabled` |
| `actor_standby_desired_requests_per_actor_run` |
`server_desired_requests_per_actor_run` |
| `actor_standby_max_requests_per_actor_run` |
`server_max_requests_per_actor_run` |
| `actor_standby_idle_timeout` | `server_idle_timeout` |
| `actor_standby_build` | `server_build` |
| `actor_standby_memory_mbytes` | `server_memory_mbytes` |
| `actor_standby_disable_standby_fields_override` |
`server_disable_fields_override` |
| `actor_standby_should_pass_actor_input` |
`server_should_pass_actor_input` |

The task methods take the five arguments they had before. The old names
stay as deprecated aliases until v4, the same way as `build_tag` in
`validate_input()`. Each one set emits a `DeprecationWarning` at the
caller, and passing an alias together with its new name raises a
`ValueError`. All eight methods share one helper, `build_actor_standby`,
which maps the aliases and builds the `actorStandby` field.

`actor_standby_tenancy` from #1169 isn't on master yet, so it isn't
covered here. #1169 can add it as `server_tenancy` directly, without an
alias. It should ship in the same release as #1153.

Closes: #1195

*✍️ Drafted by Claude Code*
class ActorNotice(Enum):
"""A warning displayed on the Actor's page in Apify Store and Console. Can be set by the Actor's developer or automatically by Apify's quality checks."""

NONE = 'NONE'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@janbuchar
janbuchar requested a review from vdusek November 5, 2026 14:46
Comment thread src/apify_client/_literals.py Outdated
)


MonitoringLevel = Literal['STANDARD',] | str

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we change the generator to skip the trailing comma when there's only one value (Literal['STANDARD'] | str)?

@vdusek vdusek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you change the PR title to say what was added? For example:

"feat: Add server_tenancy parameter to Actor create and update".

"Add missing params" doesn't tell users much, and it's just one parameter anyway.

Also one more note note regarding the generation of literals. Up to you whether/how to resolve it.

Otherwise LGTM.

@janbuchar janbuchar changed the title feat: Add missing multi-tenant-related params to Actor update feat: Add server_tenancy parameter to Actor create and update Nov 6, 2026
@janbuchar
janbuchar merged commit d989d65 into master Nov 6, 2026
36 checks passed
@janbuchar
janbuchar deleted the add-multi-tenant-update-params branch November 6, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants