Skip to content

feat(analytics): Implement semver and date custom operators for flags runtime events - #995

Open
efahk wants to merge 3 commits into
masterfrom
efahk_custom_operators
Open

feat(analytics): Implement semver and date custom operators for flags runtime events#995
efahk wants to merge 3 commits into
masterfrom
efahk_custom_operators

Conversation

@efahk

@efahk efahk commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Adds Semantic Versioning and RFC3339 date comparison support for feature flags runtime event matching. This implements them as extensions to the JSONLogic library that is being used for targeting.

See here or more information about the comparators and golden vector list

@efahk
efahk requested review from a team and tylerjroach August 17, 2026 22:16
@efahk efahk changed the title Implement semver and date custom operators for flags runtime events Aug 17, 2026
@greptile-apps

greptile-apps Bot commented Aug 17, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
analytics/src/main/java/com/mixpanel/android/mpmetrics/CustomOperators.java Implements both custom comparisons and now strictly rejects the previously reported malformed dates, invalid offsets, and oversized datetime targets.
analytics/src/main/java/com/mixpanel/android/mpmetrics/FirstTimeEventChecker.java Registers the custom operators before evaluating pending-event property filters.
analytics/src/test/java/com/mixpanel/android/mpmetrics/CustomOperatorsTest.java Covers comparison semantics, malformed values, strict date validation, and oversized targets.
analytics/src/androidTest/java/com/mixpanel/android/mpmetrics/FirstTimeEventTest.java Exercises SemVer and datetime filters through the pending-event activation flow.
analytics/build.gradle Adds the Semver4j implementation dependency.

Reviews (3): Last reviewed commit: "update" | Re-trigger Greptile

Comment thread analytics/src/main/java/com/mixpanel/android/mpmetrics/CustomOperators.java Outdated
@efahk efahk changed the title (feat:flags): Implement semver and date custom operators for flags runtime events Aug 17, 2026
@efahk efahk changed the title feat(flags): Implement semver and date custom operators for flags runtime events Aug 17, 2026
@efahk efahk changed the title feat(analytics): Implement semver and date custom operators for flags runtime events Aug 17, 2026
@efahk efahk changed the title feat: Implement semver and date custom operators for flags runtime events Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant