Skip to content

feat: Implement SDK spec v0.7.0 - #154

Closed
flagsmithsmith[bot] wants to merge 3 commits into
mainfrom
openhands/sdk-spec-v0.7.0
Closed

flagsmithsmith[bot] wants to merge 3 commits into
mainfrom
openhands/sdk-spec-v0.7.0

Conversation

@flagsmithsmith

@flagsmithsmith flagsmithsmith Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Implements the SDK spec's v0.7.0 in this SDK.

This pull request was opened by an AI agent (OpenHands).

renovate Bot and others added 3 commits October 29, 2026 19:54
…osures

Implements the events steps of SDK spec v0.6.0.

- `Flagsmith::getExperimentFlag()` gets an identity's flag and records a
  `$flag_exposure` event for the variant served, when the identity is
  enrolled in a running experiment on the feature.
- `Flagsmith::trackEvent()` and `Flagsmith::trackExposureEvent()` record
  custom and exposure events; `Flagsmith::flushEvents()` sends them now.
- `EventProcessor` buffers events, deduplicates exposures, and posts them
  to the Flagsmith events API on flush, when full, after the flush
  interval, or when destroyed. Events are opt-in via `enableEvents`.
- `Flag` exposes the `variant` and `experiment` the identities API returns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 0dad745)
- Reject `withEventProcessor()` on offline instances, as the constructor
  already does for `enableEvents`.
- Remove `EventProcessor`'s unused `$timeout` parameter: PSR-18 has no
  per-request timeout, so document passing a client configured with one.
- Read the SDK version from composer.json once per process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit c3b3474)
@flagsmithsmith flagsmithsmith Bot added the sdk-spec Bumps of the Flagsmith SDK behavioural spec label Nov 5, 2026
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 558baee6-495f-4e09-bd6f-c8095459b6bc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@flagsmithsmith

flagsmithsmith Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #156, which carries this pull request's implementation work, for the SDK spec's latest version.

@flagsmithsmith flagsmithsmith Bot closed this Nov 5, 2026
@flagsmithsmith
flagsmithsmith Bot deleted the openhands/sdk-spec-v0.7.0 branch November 5, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sdk-spec Bumps of the Flagsmith SDK behavioural spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants