1
0
mirror of synced 2025-12-25 02:09:19 -05:00

🐛 Source Mixpanel: reimplement backoff strategy (#27752)

* Connector health: source hubspot, gitlab, snapchat-marketing: fix builds

* Add stream ShippingRates

* #2363 source mixpanel: reimplement backoff strategy

* #2363 source mixpanel: upd changelog

* #2363 source mixpanel: revert v0.1.32

* rework rate limits

* wait only when running CAT + increase timeouts

* #2363 return backoff time

* code format

* use env variable instead of a hidden field in the config

* review comments

* review fixes

* fix reading env var

* Resolve conflicts, Bump version

* Attempt to bump version to avoid caching

* split test config into to projects

* rollback version

* undo non related changes

* remove non related changes

* revert new line

* fix funnel slice patching

* fix funnel slice patching

* do not use stream state for generating request params!

* fix updating state

* Revert "do not use stream state for generating request params!"

This reverts commit 443781eaa9.

* revert prev commits

* fix timestamp filtering

---------

Co-authored-by: btkcodedev <btk.codedev@gmail.com>
Co-authored-by: Augustin <augustin@airbyte.io>
Co-authored-by: maxi297 <maxime@airbyte.io>
This commit is contained in:
Denys Davydov
2023-07-18 14:02:21 +03:00
committed by GitHub
parent b6531ac120
commit 7ae4f8686b
25 changed files with 154 additions and 260 deletions

View File

@@ -32,3 +32,17 @@ def config_raw(config):
"start_date": str(config["start_date"]),
"end_date": str(config["end_date"]),
}
@pytest.fixture(autouse=True)
def patch_time(mocker):
mocker.patch("time.sleep")
@pytest.fixture(autouse=True)
def disable_cache(mocker):
mocker.patch(
"source_mixpanel.streams.cohorts.Cohorts.use_cache",
new_callable=mocker.PropertyMock,
return_value=False
)