refactor!: remove deprecated APIs#918
Open
vdusek wants to merge 2 commits into
Open
Conversation
Removes deprecated APIs as part of the v4 major release: - `api_public_base_url` argument of `ApifyDatasetClient.__init__` and `ApifyKeyValueStoreClient.__init__` (closes #635). It had no effect already and only emitted a `DeprecationWarning`. The public base URL is taken from `Configuration.api_public_base_url`, which is unchanged. - `RemainingTime` value of the `timeout` argument of `Actor.start()` and `Actor.call()` — replaced by `inherit`. - Deprecated `Configuration` fields `latest_sdk_version`, `log_format`, and `standby_port` (use `web_server_port` instead). Also drops the now-unused `warnings` and `deprecated` imports and the associated unit tests for the removed deprecation warnings.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #918 +/- ##
==========================================
- Coverage 87.00% 86.87% -0.13%
==========================================
Files 48 48
Lines 2956 2942 -14
==========================================
- Hits 2572 2556 -16
- Misses 384 386 +2
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:
|
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.
Removes deprecated APIs as part of the v4 major release.
api_public_base_urlargument of storage clients (closes #635)Removed the deprecated
api_public_base_url__init__argument fromApifyDatasetClientandApifyKeyValueStoreClient(and theopen()call sites that passed''). It had no effect already in v3 — passing it only emitted aDeprecationWarning. The public base URL is taken fromConfiguration.api_public_base_url, which is unchanged.RemainingTimetimeout literalRemoved the deprecated
'RemainingTime'value of thetimeoutargument fromActor.start()andActor.call(). Use'inherit'instead — the behavior is identical.Deprecated
ConfigurationfieldsRemoved the
@deprecatedconfig fieldslatest_sdk_version,log_format, andstandby_port(useweb_server_portinstead).Also drops the now-unused
warnings/deprecatedimports and the obsolete deprecation-warning unit tests, and documents all removals in the v4 upgrade guide.Mirrors apify/apify-client-python#799 for this repository.