Skip to content

Conversation

@dmarticus
Copy link
Contributor

@dmarticus dmarticus commented Nov 20, 2025

💡 Motivation and Context

See PostHog/posthog#41824 for context

💚 How did you test it?

New unit tests

📝 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.

@dmarticus dmarticus requested a review from a team as a code owner November 20, 2025 21:52
Copy link
Collaborator

@ioannisj ioannisj left a comment

Choose a reason for hiding this comment

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

LG, but we need to implement storage.getInt() & storage.setInt() cause builds are failing

@dmarticus dmarticus changed the title included evaluated_at properties in $feature_flag_called events included evaluated_at properties in $feature_flag_called events Nov 24, 2025
@dmarticus dmarticus requested a review from ioannisj December 2, 2025 15:44
Copy link
Collaborator

@ioannisj ioannisj left a comment

Choose a reason for hiding this comment

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

LG, just a minor question for clarification

Comment on lines 457 to 463
} else if let dictValue = value as? [String: Any] {
if let intValue = dictValue[key.rawValue] as? Int {
return intValue
} else if let numberValue = dictValue[key.rawValue] as? NSNumber {
return numberValue.intValue
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this fallback logic on nested dictionary values with same keys, or can we simplify?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh yeah, this is kinda gross. I'll make it better.

@dmarticus dmarticus merged commit 9c3f9de into main Dec 7, 2025
16 checks passed
@dmarticus dmarticus deleted the feat/publish-evaluated-at-events branch December 7, 2025 20:48

- feat: include `evaluated_at` properties in `$feature_flag_called` events ([#394](https://github.com/PostHog/posthog-ios/pull/394))

## 3.36.0 - 2025-12-03
Copy link
Member

Choose a reason for hiding this comment

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

this wasnt released yet (under next), so wrong versioning and wrong date

@@ -1,5 +1,11 @@
## Next

## 3.37.0 - 2025-12-08
Copy link
Member

Choose a reason for hiding this comment

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

.36 and .37 ahould be .36 since its not released yet, both the date of the release, today?

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.

4 participants