PostHog / PostHog/posthog-ruby
Reset feature-flag-called tracker on flag reload
Open
Nobody has claimed this yet.
bug
enhancement
feature/flags
- Dominant language
- Ruby
- Stars
- 36
- Forks
- 34
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 18
Description
Summary
Reset feature-flag-called dedupe tracker when flags are reloaded in the Ruby SDK.
Spec
sdk-specs/openspec/specs/feature-flag-called-tracker/spec.md
Current evidence
The SDK audit found the dedupe map is not cleared by reload_feature_flags / flag definition reload.
Expected behavior
- Clear/reset
$feature_flag_calleddedupe state when feature flags/definitions are reloaded or reset. - Ensure the next access after a reload can emit fresh tracking events.
- Preserve duplicate suppression for unchanged repeated reads between reloads.
- Add tests covering tracking before and after reload.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read sdk-specs/openspec/specs/feature-flag-called-tracker/spec.md, then trace reload_feature_flags and the flag-definition reload/reset entry points in the Ruby SDK. Add coverage for tracking before and after reload, preserving suppression for repeated reads without a reload; done when the next access emits a fresh event after reset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100