Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: feature_flag_called after reloadFeatureFlags #232

Merged
merged 8 commits into from
Nov 7, 2024

Conversation

ioannisj
Copy link
Contributor

@ioannisj ioannisj commented Nov 5, 2024

💡 Motivation and Context

Relates to: #211

Clear 'flagCallReported'' after reload so that $feature_flag_called can be captured

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

@ioannisj ioannisj requested a review from a team November 5, 2024 16:27
PostHog/PostHogSDK.swift Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
ioannisj and others added 3 commits November 6, 2024 12:32
Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com>
@ioannisj ioannisj force-pushed the fix/trigger-feature_flag_called branch from 8dd7afb to 4a839d2 Compare November 7, 2024 12:14
@ioannisj
Copy link
Contributor Author

ioannisj commented Nov 7, 2024

Hey just reverted changes. So we now just clear the set when flags are reloaded

@marandaneto
Copy link
Member

Hey just reverted changes. So we now just clear the set when flags are reloaded

nice, did another pass and left a few comments

@ioannisj ioannisj merged commit 3970387 into main Nov 7, 2024
6 checks passed
@ioannisj ioannisj deleted the fix/trigger-feature_flag_called branch November 7, 2024 15:32
@@ -10,18 +10,21 @@ import Nimble
import Quick

@testable import PostHog
import XCTest
Copy link
Member

@marandaneto marandaneto Nov 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was that missing before? i think its not needed when using Nimble

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😩 #234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants