Repository navigation
Comparing changes
Open a pull request
base repository: launchdarkly/openfeature-python-server
base: 0.6.0
head repository: launchdarkly/openfeature-python-server
compare: 0.7.0
- 14 commits
- 17 files changed
- 7 contributors
Commits on Mar 25, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 685832d - Browse repository at this point
Copy the full SHA 685832dView commit details
Commits on Apr 10, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 28d37fa - Browse repository at this point
Copy the full SHA 28d37faView commit details
Commits on May 8, 2026
-
ci: grant pull-requests:read so lint-pr-title workflow starts (#45)
## Summary Adds `permissions: pull-requests: read` at the workflow level in `.github/workflows/lint-pr-title.yml`. The reusable workflow at `launchdarkly/gh-actions/.github/workflows/lint-pr-title.yml@main` was updated in launchdarkly/gh-actions#86 to declare `permissions: pull-requests: read` at the job level. A reusable workflow can only request a subset of the permissions the caller grants, so without an explicit `permissions` block in the caller, the workflow fails with `startup_failure`. Same fix as launchdarkly/sdk-meta#429. ## Review & Testing Checklist for Human - [ ] Verify the `Lint PR title` workflow run on this PR exits `success` rather than `startup_failure` ### Notes No product code is changed — workflow-only permissions fix being applied across SDK repos that use the reusable `lint-pr-title` workflow. Link to Devin session: https://app.devin.ai/sessions/c7b96da5c9074500aa684bc9a9ba1c31 Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk: workflow-only permission change to allow the reusable `lint-pr-title` workflow to start; no product code or runtime behavior is affected. > > **Overview** > Ensures the `Lint PR title` GitHub Actions workflow can run by explicitly granting `permissions: pull-requests: read` at the workflow level when invoking the reusable `launchdarkly/gh-actions` workflow. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a45b9df. 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 c081773 - Browse repository at this point
Copy the full SHA c081773View commit details
Commits on Jun 3, 2026
-
Configuration menu - View commit details
-
Copy full SHA for a6ffe6b - Browse repository at this point
Copy the full SHA a6ffe6bView commit details
Commits on Jun 4, 2026
-
Update SECURITY.md to reflect bug bounty program (#46)
## Summary Updates `SECURITY.md` to direct security reporters to LaunchDarkly's Bug Bounty program. ## Changes - Security issues should be reported through the [Bug Bounty program](https://bugcrowd.com/engagements/launchdarkly-mbb-og) rather than via GitHub Issues or PRs - Clarifies that valid security issues may be eligible for a bounty This is a cross-repository update to standardize security reporting instructions across LaunchDarkly repositories. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only change to security reporting instructions; no application or infrastructure code is modified. > > **Overview** > **`SECURITY.md`** is updated so security reporting matches LaunchDarkly’s current process across repos. > > The doc now **boldly warns** not to file GitHub Issues or PRs for vulnerabilities, with clearer rationale about public exposure. Reporting is directed to the **Bugcrowd** [Bug Bounty program](https://bugcrowd.com/engagements/launchdarkly-mbb-og) instead of the previous **HackerOne** link, and a line is added asking reporters **not to contact LaunchDarkly staff directly**. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a6ffe6b. 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 3d422b4 - Browse repository at this point
Copy the full SHA 3d422b4View commit details
Commits on Jun 8, 2026
-
test: fix race condition in delayed failure event test (#47)
**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** None. **Describe the solution you've provided** Three event emission tests (`test_provider_emits_ready_event_when_immediately_ready`, `test_provider_emits_error_event_immediately_failed`, `test_provider_emits_error_event_delayed_failure`) check a counter immediately after `set_provider` without waiting for the event to be dispatched. The OpenFeature SDK now dispatches provider events asynchronously, so these assertions fail. The fix uses `threading.Event` with `wait(timeout=5)`, matching the pattern already used by `test_provider_emits_stale_event` and `test_provider_emits_configuration_event`. **Describe alternatives you've considered** Could add `time.sleep()` calls, but event-based waiting is more robust and consistent with existing tests. **Additional context** All 66 tests pass consistently. Lint (mypy) also passes. Link to Devin session: https://app.devin.ai/sessions/385a2c260fe8433ea7e6af74fcde903c Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Test-only changes with no runtime or library behavior modified. > > **Overview** > Fixes flaky provider lifecycle tests that assumed **OpenFeature** dispatches `PROVIDER_READY` / `PROVIDER_ERROR` synchronously on `set_provider`. > > **`test_provider_emits_ready_event_when_immediately_ready`**, **`test_provider_emits_error_event_immediately_failed`**, and **`test_provider_emits_error_event_delayed_failure`** now wait on a **`threading.Event`** (with **`wait(timeout=5)`**) set from the handler before asserting the emission count, plus a short **`time.sleep(0.1)`** so the counter update is visible. Handlers were simplified (shared **`emission_count`**, **`thread_event.set()`**). This matches **`test_provider_emits_stale_event`** and **`test_provider_emits_configuration_event`**. > > No production/provider code changes—tests only. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0340a25. 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 82de51d - Browse repository at this point
Copy the full SHA 82de51dView commit details
Commits on Aug 25, 2026
-
fix: Do not report a permanent data source failure as fatal (#52)
A permanent data source failure no longer puts the provider into the OpenFeature `FATAL` state, so the OpenFeature client keeps evaluating against the flag data the LaunchDarkly client already has. - `DataSourceState.OFF` now emits `ErrorCode.GENERAL` instead of `ErrorCode.PROVIDER_FATAL` - Matches the Java provider, which reports this as `ERROR` - Relates to #49 **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 <details> <summary>Implementation details</summary> **Related issues** #49 — during an outage, a `401` on an already-established stream took the data source to `OFF` and OpenFeature evaluations started returning call-site defaults even though the LaunchDarkly client still had valid flag data. **Describe the solution you've provided** The OpenFeature Python SDK short-circuits evaluation when the provider status is `FATAL`: ```python if status == ProviderStatus.FATAL: return ProviderFatalError() ``` That means the provider is never asked to evaluate and the call-site default is returned. `PROVIDER_FATAL` is what moves the provider into that status, so reporting a permanent data source failure that way discards flag data the LaunchDarkly client can still serve. `ErrorCode.GENERAL` keeps the provider in `ERROR`, which still surfaces the failure through provider events and `get_provider_status()` while leaving evaluation intact. **Describe alternatives you've considered** Leaving the state fatal only when the client never initialized was considered. It adds state tracking to the provider for little benefit: a client that never initialized has no flag data, so evaluations already fall back to defaults with a `PROVIDER_NOT_READY`/`ERROR` reason, and the `ERROR` status carries the same signal to anything watching provider events. **Testing** Added `test_evaluations_continue_after_the_data_source_permanently_fails`, backed by a new `InitializedThenFailingDataSource` fixture that initializes with flag data, goes `VALID`, then transitions to `OFF` with a `401`. The test asserts the provider status is `ERROR` and that the cached flag still evaluates to its real value rather than the call-site default. </details> Link to Devin session: https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > Stops treating a permanent data source failure (`DataSourceState.OFF`) as OpenFeature `PROVIDER_FATAL`, so evaluations keep using cached LaunchDarkly flag data instead of being short-circuited to call-site defaults. > > `__handle_data_source_status` now emits `ErrorCode.GENERAL`, leaving the provider in `ERROR` while still surfacing the failure. A new test initializes flags, then fails the data source with a 401, and asserts status is `ERROR` and the cached flag still evaluates correctly. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e0fea34. 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 15014c1 - Browse repository at this point
Copy the full SHA 15014c1View commit details -
feat: Populate OpenFeature flag metadata from the evaluation reason (#53
) Populates OpenFeature flag metadata with the LaunchDarkly specific parts of the evaluation result, so hooks (including the OpenTelemetry hook) can read them. - Keys mirror the evaluation reason fields: `variationIndex`, `inExperiment`, `ruleIndex`, `ruleId`, `prerequisiteKey`, `bigSegmentsStatus`. - Each key is omitted rather than default-valued when it does not apply, so a consumer can distinguish "not in an experiment" from "no information". - Matches [openfeature-java-server#56](launchdarkly/openfeature-java-server#56) and [openfeature-dotnet-server#61](launchdarkly/openfeature-dotnet-server#61); the naming is being defined in an [sdk-specs spec](launchdarkly/sdk-specs#253). No screenshots or staging preview apply - this is a server-side library change with no UI. <details> <summary>Implementation details</summary> **Requirements** - [x] I have added test coverage for new or changed functionality - [x] I have followed the repository's pull request submission guidelines - [x] I have validated my changes against all supported platform versions **Describe the solution you've provided** `ResolutionDetailsConverter` now builds `flag_metadata` from the LaunchDarkly reason dictionary: ```python flag_metadata=self.__to_flag_metadata(reason, variation_index if not is_default else None) ``` Each reason field is read defensively with an `isinstance` check, since the reason is a plain dictionary, so a malformed reason cannot put an unexpected type into the metadata. `variationIndex` uses the same default-value check that already gates `variant`. The README gains a "Flag Metadata" section documenting the keys. **Describe alternatives you've considered** Passing the whole reason dictionary through as a single `reason` metadata entry would be closer to the LaunchDarkly shape, but `FlagMetadata` values are scalars, so the flat keys are the only available shape. **Additional context** ``` poetry run pytest poetry run mypy ld_openfeature tests ``` All tests pass, including 7 new cases covering each key and the omissions. `make test`/`make lint` currently fail on `poetry install` on `main` as well, because `poetry.lock` is out of date relative to `pyproject.toml` - unrelated to this change. </details> @cursor review Link to Devin session: https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > OpenFeature evaluation details now include LaunchDarkly-specific fields on `flag_metadata`, so hooks (including OpenTelemetry) can read experiment, rule, and related evaluation info that has no OpenFeature equivalent. > > `ResolutionDetailsConverter` maps `variationIndex`, `inExperiment`, `ruleIndex`, `ruleId`, `prerequisiteKey`, and `bigSegmentsStatus` from the LD reason. Keys are omitted when they do not apply (including `inExperiment` when false, and `variationIndex` for default values). README documents the keys. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a43597d. 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 11ae1a6 - Browse repository at this point
Copy the full SHA 11ae1a6View commit details -
feat: Support OpenFeature tracking (#50)
Implements the OpenFeature tracking API (spec §6) in the provider, matching the behavior of the Java, .NET, and Node providers. - `client.track(...)` previously no-opped silently: the OpenFeature Python SDK only forwards tracking to providers that implement `track` (spec 6.1.4), so custom/experimentation events were being dropped with no error. - `TrackingEventDetails.attributes` map to the LD event `data`, and `TrackingEventDetails.value` maps to `metric_value`. - A `track` call without an evaluation context logs at info level and sends nothing, since LaunchDarkly requires a context to attribute the event to. **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** None; found while auditing the LaunchDarkly OpenFeature providers for missing spec features. **Describe the solution you've provided** `LaunchDarklyProvider.track` converts the OpenFeature evaluation context to an `ldclient.Context` with the existing `EvaluationContextConverter` and then calls the narrowest `LDClient.track` overload that fits the details supplied: name only, name + data, or name + data + metric value. **Describe alternatives you've considered** Sending an event with an empty/invalid context when no context is supplied, which would produce events LaunchDarkly cannot attribute. The Java provider already logs and skips in this case, so this follows that precedent. **Additional context** <details> <summary>Implementation details</summary> `TrackingEventDetails.attributes` defaults to `{}` rather than `None`, so an empty attribute map is normalized to `None` to avoid sending an empty `data` object. Tests patch `LDClient.track` and assert the exact argument shape for each of the four combinations (no context, no details, attributes only, value + attributes, value only). </details> Link to Devin session: https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > **Implements OpenFeature spec tracking** on `LaunchDarklyProvider` so `client.track(...)` forwards custom events to LaunchDarkly instead of being dropped when the provider had no `track` implementation. > > `track` converts the OpenFeature `EvaluationContext` via the existing converter and calls `LDClient.track` with the right arity: event name only, plus `data` from `TrackingEventDetails.attributes`, and/or `metric_value` from `TrackingEventDetails.value` (empty attribute maps are treated as no data). Calls **without** an evaluation context log at info on `launchdarkly-openfeature-server` and send nothing. > > **Dependency:** `openfeature-sdk` minimum is raised from `0.8.0` to `0.9.0`. Tests mock `LDClient.track` for the no-context, no-details, attributes-only, value-only, and value+attributes paths. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 9d846a4. 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 <devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>Configuration menu - View commit details
-
Copy full SHA for 9395775 - Browse repository at this point
Copy the full SHA 9395775View commit details
Commits on Aug 31, 2026
-
feat: Report provider name and version to LaunchDarkly (#51)
The provider now identifies itself as the wrapper, so requests it makes are attributed to the OpenFeature provider rather than to the Python SDK. - Sets `wrapper_name` to `open-feature-python-server` and `wrapper_version` to the provider version - Uses `Config.with_wrapper_information`, released in launchdarkly-server-sdk 9.17.0 - Raises the SDK floor to `>=9.17.0` - Adds `ld_openfeature/version.py`, kept current by release-please **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 <details> <summary>Implementation details</summary> **Describe the solution you've provided** ```python self.__client = LDClient(config.with_wrapper_information(WRAPPER_NAME, VERSION)) ``` This matches the Java and .NET providers, which derive a config from the application-supplied one: ```java new LDClient(sdkKey, LDConfig.Builder.fromConfig(config) .wrapper(Components.wrapperInfo() .wrapperName("open-feature-java-server") .wrapperVersion(Version.SDK_VERSION)).build()); ``` The provider version comes from a new `ld_openfeature/version.py`, added to `extra-files` in `release-please-config.json` so the constant is bumped with each release the same way `docs/conf.py` already is. **Describe alternatives you've considered** An earlier revision of this PR copied the `Config` and assigned its name-mangled private wrapper fields, because wrapper information could only be supplied to the constructor. That depends on SDK internals, hence the SDK change instead ([python-server-sdk#501](launchdarkly/python-server-sdk#501)). **Testing** `test_provider_identifies_itself_as_the_wrapper` asserts the client's config carries the provider's name and version, and that the config passed in by the caller is unchanged. Against the released 9.17.0: 80 tests pass, mypy clean. </details> Link to Devin session: https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c Open in Devin Desktop: https://app.devin.ai/desktop/session/0c452d209ec54b068ba120b4c92b8f6c?variant=devin Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > LaunchDarkly traffic from this provider is now attributed to the OpenFeature integration instead of looking like plain Python SDK usage. > > `LaunchDarklyProvider` builds the underlying `LDClient` from `config.with_wrapper_information("open-feature-python-server", VERSION)` so wrapper name and version are set on the client config without mutating the caller’s `Config`. The version lives in new `ld_openfeature/version.py`, wired into release-please alongside `docs/conf.py`. > > The minimum `launchdarkly-server-sdk` dependency is raised to **>=9.17.0** for `with_wrapper_information`. A test asserts the client carries the expected wrapper fields and that the original config’s `wrapper_name` stays unset. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8f3861b. 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 <devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>Configuration menu - View commit details
-
Copy full SHA for 4290b8a - Browse repository at this point
Copy the full SHA 4290b8aView commit details -
fix: Do not report a failed initialization as a fatal error (#56)
A failed initialization now raises `ProviderNotReadyError` instead of `ProviderFatalError`. - A fatal error puts the OpenFeature client in `FATAL` and stops all evaluation; the LaunchDarkly client can still evaluate the flag data it has - Matches the reasoning already applied to the `OFF` data source state, which deliberately emits a non-fatal provider error <details> <summary>Implementation details</summary> Found during the weekly OpenFeature provider audit against `launchdarkly/sdk-specs` (`OFP`). The provider's `initialize` raised `ProviderFatalError` when the LaunchDarkly client had not initialized. The OpenFeature Python SDK treats that as a terminal state and short-circuits every subsequent evaluation, which is stronger than intended: with a persistent store, cached data, or a later recovery, evaluation should continue and the provider should report `ERROR`. **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** None. **Describe alternatives you've considered** Raising `GeneralError`: `ProviderNotReadyError` describes the condition more precisely and results in the same non-fatal `ERROR` state. **Testing** `poetry run pytest` (80 passed), `poetry run mypy ld_openfeature tests` </details> Link to Devin session: https://app.devin.ai/sessions/38a6eaf69fcf41109e136a1d0fe5e899 Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > When LaunchDarkly client initialization fails after the ready wait, **`initialize`** now raises **`ProviderNotReadyError`** instead of **`ProviderFatalError`**, so the OpenFeature client stays in a recoverable **ERROR** state rather than **FATAL** and can keep evaluating with cached or offline flag data. > > A new test asserts that a failing data source triggers **`ProviderNotReadyError`** with message `"launchdarkly client initialization failed"`, aligning init failure with the existing non-fatal handling for **`DataSourceState.OFF`**. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a2d105b. 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 946a515 - Browse repository at this point
Copy the full SHA 946a515View commit details -
fix: Map the WRONG_TYPE error kind to TYPE_MISMATCH (#57)
The `WRONG_TYPE` evaluation error kind is now reported as `ErrorCode.TYPE_MISMATCH` instead of falling through to `GENERAL`. - Required by the OFP spec's error kind mapping - Brings the Python provider in line with the Ruby and .NET providers, which already map it <details> <summary>Implementation details</summary> Found during the weekly OpenFeature provider audit against `launchdarkly/sdk-specs` (`OFP`). `ResolutionDetailsConverter` mapped `CLIENT_NOT_READY`, `FLAG_NOT_FOUND`, `MALFORMED_FLAG` and `USER_NOT_SPECIFIED`, and every other kind — including `WRONG_TYPE` — became `GENERAL`, hiding a type mismatch from callers that branch on the error code. `EXCEPTION_ERROR` intentionally remains mapped to `GENERAL`. **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** None. **Describe alternatives you've considered** None; the mapping is prescribed by the spec. **Testing** `poetry run pytest` (80 passed), `poetry run mypy ld_openfeature tests` </details> Link to Devin session: https://app.devin.ai/sessions/38a6eaf69fcf41109e136a1d0fe5e899 Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > LaunchDarkly evaluation errors with **`errorKind: WRONG_TYPE`** are now converted to OpenFeature **`ErrorCode.TYPE_MISMATCH`** in `ResolutionDetailsConverter`, instead of defaulting to **`GENERAL`**. > > A parametrized test covers the new mapping so callers that branch on error codes can detect type mismatches per the OpenFeature provider spec (aligned with other LaunchDarkly providers). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 20eada9. 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 17478dc - Browse repository at this point
Copy the full SHA 17478dcView commit details -
docs: Add an OpenFeature feature matrix to the README (#58)
Adds a feature matrix to the README mirroring the OpenFeature Python SDK's own feature table, so a reader can see at a glance what this provider supports. - Same rows and order as the [OpenFeature Python SDK matrix](https://github.com/open-feature/python-sdk#-features), plus `Initialization` and `Flag metadata` - Rows that are not fully supported state whether the limitation is in the OpenFeature SDK or in the provider, and link the tracking issue - Only `Initialization` is marked partial: it has no timeout of its own ([#55](#55)) - The same matrix format is being added to the Java, .NET and JavaScript providers, and already exists in the Ruby provider, so they can be compared side by side <details> <summary>Implementation details</summary> Written during the weekly OpenFeature provider audit. Each row was checked against the provider source rather than assumed; the wording follows the matrix already present in the Ruby provider README. **Requirements** - [x] I have added test coverage for new or changed functionality (documentation only) - [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** [#55](#55) </details> Link to Devin session: https://app.devin.ai/sessions/38a6eaf69fcf41109e136a1d0fe5e899 Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > Adds a **Feature matrix** section to the README (after supported Python versions) so readers can compare this LaunchDarkly OpenFeature provider against the [OpenFeature Python SDK feature table](https://github.com/open-feature/python-sdk#-features). > > The new table lists each OpenFeature capability with ✅/
⚠️ status and short notes on how the provider behaves (targeting, hooks, eventing, tracking, shutdown, flag metadata, etc.). **Initialization** is the only row marked partial: `initialize` has no built-in timeout and blocks until the data source is ready or fails permanently, with a link to [#55](#55). A legend clarifies supported vs partially supported vs not supported. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5f985fb. 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 6c31554 - Browse repository at this point
Copy the full SHA 6c31554View commit details -
chore(main): release 0.7.0 (#54)
🤖 I have created a release *beep* *boop* --- ## [0.7.0](0.6.0...0.7.0) (2026-08-31) ### Features * Populate OpenFeature flag metadata from the evaluation reason ([#53](#53)) ([11ae1a6](11ae1a6)) * Report provider name and version to LaunchDarkly ([#51](#51)) ([4290b8a](4290b8a)) * Support OpenFeature tracking ([#50](#50)) ([9395775](9395775)) ### Bug Fixes * Do not report a failed initialization as a fatal error ([#56](#56)) ([946a515](946a515)) * Do not report a permanent data source failure as fatal ([#52](#52)) ([15014c1](15014c1)) * Map the WRONG_TYPE error kind to TYPE_MISMATCH ([#57](#57)) ([17478dc](17478dc)) ### Documentation * Add an OpenFeature feature matrix to the README ([#58](#58)) ([6c31554](6c31554)) --- 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 is a **Release Please** cut that moves the project from **0.6.0** to **0.7.0** by updating version fields in `pyproject.toml`, `ld_openfeature/version.py`, `docs/conf.py`, and `.release-please-manifest.json`. > > It also **adds the 0.7.0 section to `CHANGELOG.md`**, which documents what ships in this release (not new code in this diff): OpenFeature **tracking**, **flag metadata from evaluation reason**, **provider name/version** sent to LaunchDarkly, fixes for **non-fatal** failed init and permanent data-source failures, **`WRONG_TYPE` → `TYPE_MISMATCH`** mapping, and a README **OpenFeature feature matrix**. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 12fafea. 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>
Configuration menu - View commit details
-
Copy full SHA for 20ba8c1 - Browse repository at this point
Copy the full SHA 20ba8c1View commit details
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 0.6.0...0.7.0