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

$active_feature_flags should filter non active flags #73

Merged
merged 6 commits into from
Oct 6, 2023

Conversation

marandaneto
Copy link
Member

@marandaneto marandaneto commented Oct 6, 2023

What does this PR do?
Similar to this one PostHog/posthog-android#41
Closes PostHog/posthog-android#40

Where should the reviewer start?

How should this be manually tested?
there is no unit test at all for that, I will add in the new version of the iOS SDK, but for now this should be fine.

Any background context you want to provide?
decide v3 returns all the feature flags and not only the active ones

What are the relevant tickets?

Screenshots or screencasts (if UI/UX change)

Questions:

  • Does the docs need an update?
  • Are there any security concerns?
  • Do we need to update engineering / success?

Copy link
Contributor

@neilkakkar neilkakkar left a comment

Choose a reason for hiding this comment

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

A test or two would be nice, and give me confidence that the type conversion works as expected, but otherwise LGTM!

@marandaneto
Copy link
Member Author

A test or two would be nice, and give me confidence that the type conversion works as expected, but otherwise LGTM!

I made sure to run locally on an emulator, so it's fine, let me check if it's easy to set up a mock HTTP cal, etc.

@neilkakkar
Copy link
Contributor

not a requirement! happy as long as it works, given you're going to revamp soon

@marandaneto marandaneto merged commit 95bf057 into master Oct 6, 2023
1 check passed
@marandaneto marandaneto deleted the fix/filter-non-active-ff branch October 6, 2023 13:19
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.

$active_feature_flags should filter non active flags
3 participants