Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: launchdarkly/python-server-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9.17.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: launchdarkly/python-server-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9.18.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 14 commits
- 64 files changed
- 6 contributors
Commits on Aug 28, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 2e095c5 - Browse repository at this point
Copy the full SHA 2e095c5View commit details
Commits on Sep 3, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 6a8541f - Browse repository at this point
Copy the full SHA 6a8541fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f40d3b2 - Browse repository at this point
Copy the full SHA f40d3b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f0232e - Browse repository at this point
Copy the full SHA 9f0232eView commit details
Commits on Sep 4, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 514c467 - Browse repository at this point
Copy the full SHA 514c467View commit details
Commits on Sep 8, 2026
-
feat: warn that payload filtering has no effect with FDv2 (#518)
Documents and warns that `payload_filter_key` has no effect when the FDv2 data system is used. Closes [SDK-2973](https://launchdarkly.atlassian.net/browse/SDK-2973). - `Config.payload_filter_key` / `AsyncConfig.payload_filter_key` docs now state payload filtering is unsupported with FDv2 - FDv2 data system logs a warning at construction when a filter key is configured - FDv1 behavior is unchanged; the shared option is not deprecated, since FDv1 still supports it **Requirements** - [x] I have added test coverage for new or changed functionality - [x] I have followed the repository's [pull request submission guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests) - [x] I have validated my changes against all supported platform versions **Related issues** [SDK-2973](https://launchdarkly.atlassian.net/browse/SDK-2973), part of [SDK-2575](https://launchdarkly.atlassian.net/browse/SDK-2575). Same change as java-core#209 and go-server-sdk#440, adapted for the shared option. <details> <summary>Implementation details</summary> Unlike Go and Java, Python has no FDv2-specific filter setter — `payload_filter_key` is a top-level option shared by FDv1 and FDv2 — so it cannot be deprecated at the language level without also deprecating supported FDv1 usage. Instead the docstrings call out the FDv2 limitation and `FDv2.__init__` warns once when the option is set. The FDv2 data sources still append `?filter=` to `/sdk/poll` and `/sdk/stream` requests. That is intentional for now: on the delivery side, FDv2 (`internal/fdcore` in `streamer`) reads the `filter` query param only for observability (`fdrequest.Info.HasPayloadFilter`, surfaced as a dogfood context attribute) and never uses it to select a payload, so the parameter is inert rather than harmful. Dropping it would also break the `environment_filter_key` contract-test scenarios that the pinned harness (`v3.0.0-alpha.6`) still runs, requiring suppressions until the harness pin is bumped past sdk-test-harness#431. Removing the parameter belongs with that bump in the removal phase. Testing: `make lint`, `make test` (1420 passed). </details> Link to Devin session: https://app.devin.ai/sessions/ed604c6db94d452ea9f2dc35d6acc398 Open in Devin Desktop: https://app.devin.ai/desktop/session/ed604c6db94d452ea9f2dc35d6acc398?variant=devin Requested by: @beekld [SDK-2973]: https://launchdarkly.atlassian.net/browse/SDK-2973?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [SDK-2973]: https://launchdarkly.atlassian.net/browse/SDK-2973?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [SDK-2575]: https://launchdarkly.atlassian.net/browse/SDK-2575?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > Clarifies that **`payload_filter_key`** still applies to default FDv1 streaming/polling, but **does not filter FDv2** payloads. > > **`Config`** and **`AsyncConfig`** docstrings (constructor param and `payload_filter_key` property) now state that filtering is unsupported with the FDv2 data system. **`FDv2`** and **`AsyncFDv2`** emit a one-time **warning at construction** when a filter key is set, without changing runtime behavior or deprecating the shared option for FDv1. > > Tests assert the warning appears when a filter key is configured and is absent when it is not, for both sync and async FDv2. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit eaa3d72. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 296311f - Browse repository at this point
Copy the full SHA 296311fView commit details
Commits on Sep 15, 2026
-
fix: Log the cached-data evaluation warning only once per client (#520)
## Summary When data availability is CACHED, every evaluation and every all_flags_state() call logs a warning that the client is using last known values from the feature store. While the client stays in that state, this floods the log with one line per evaluation. Each of these messages now logs once per client instance. LDClient and AsyncLDClient each hold two flags, one for the evaluation message and one for the all_flags_state() message. The messages say that they are logged once. In LDClient, a threading.Lock guards the set of each flag. The lock is reached only inside the CACHED branch and only until the flag is set, so the normal evaluation path never touches it. Python has no lock-free atomic flag in the standard library. In AsyncLDClient, a plain boolean is enough because one event loop runs the client and no await separates the check and the set. The sibling messages for the DEFAULTS case and the availability check itself are unchanged. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > Stops **log flooding** when the SDK serves flags from cached store data before the data source has reached `REFRESHED`. Warnings for `variation` / evaluation and for `all_flags_state()` now emit **once per client** instead of on every call, with copy noting *"This message is logged once."* > > **`LDClient`** adds per-message boolean flags guarded by a `threading.Lock` (double-checked) so concurrent evaluations only log once. **`AsyncLDClient`** uses the same two flags without a lock, relying on single-threaded event-loop semantics between check and set. > > Behavior when data is unavailable (non-`CACHED`) is unchanged. Tests simulate cached-but-uninitialized clients and assert a single warning per message type after repeated calls. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 08b2230. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
Configuration menu - View commit details
-
Copy full SHA for 59ce998 - Browse repository at this point
Copy the full SHA 59ce998View commit details
Commits on Sep 16, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 9abe8cb - Browse repository at this point
Copy the full SHA 9abe8cbView commit details
Commits on Sep 17, 2026
-
Configuration menu - View commit details
-
Copy full SHA for e734558 - Browse repository at this point
Copy the full SHA e734558View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75402e9 - Browse repository at this point
Copy the full SHA 75402e9View commit details
Commits on Sep 18, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 5d1213e - Browse repository at this point
Copy the full SHA 5d1213eView commit details
Commits on Sep 23, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 1087147 - Browse repository at this point
Copy the full SHA 1087147View commit details
Commits on Sep 25, 2026
-
feat: Retry indefinitely after a data source failure instead of stopp…
…ing permanently in FDv1 fix: Warn and use the documented default for an invalid poll interval or initial reconnect delay
Configuration menu - View commit details
-
Copy full SHA for e17e173 - Browse repository at this point
Copy the full SHA e17e173View commit details -
chore(main): release 9.18.0 (#515)
🤖 I have created a release *beep* *boop* --- ## [9.18.0](9.17.0...9.18.0) (2026-09-25) ### Features * Add retry state for RETRY-spec backoff ([#522](#522)) ([e734558](e734558)) * Drive repeating tasks from a delay source ([9abe8cb](9abe8cb)) * Retry indefinitely after a data source failure instead of stopping permanently in FDv1 ([e17e173](e17e173)) * warn that payload filtering has no effect with FDv2 ([#518](#518)) ([296311f](296311f)) * Warn when the SDK is used in a forked process without postfork ([#512](#512)) ([75402e9](75402e9)) ### Bug Fixes * Add async modules to the readthedocs API reference ([#513](#513)) ([f40d3b2](f40d3b2)) * Log the cached-data evaluation warning only once per client ([#520](#520)) ([59ce998](59ce998)) * Read all items when a collection is empty ([#524](#524)) ([1087147](1087147)) * Repeating task wait duration is no longer reduced by a slow callback duration. ([9abe8cb](9abe8cb)) * Report a distinct User-Agent for the async client ([#516](#516)) ([514c467](514c467)) * Warn and use the documented default for an invalid poll interval or initial reconnect delay ([e17e173](e17e173)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > This PR **cuts release 9.18.0** by bumping the package version in `pyproject.toml`, `ldclient/version.py`, `.release-please-manifest.json`, and the provenance docs example, and by adding the **9.18.0** section to `CHANGELOG.md`. > > There is **no application code in the diff**—Release Please is packaging work that was already merged. The new changelog highlights **FDv1 data-source resilience** (indefinite retry after failures, RETRY-spec backoff state, repeating tasks driven by a delay source, and sane defaults/warnings for invalid poll/reconnect settings), **operational warnings** (forked process without `postfork`, FDv2 payload filtering), and **fixes** (empty-collection reads, repeating-task timing, one-time cached-data warnings, distinct async `User-Agent`, ReadTheDocs async API docs). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit eef08a1. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jason Bailey <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6daade3 - Browse repository at this point
Copy the full SHA 6daade3View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 9.17.0...9.18.0