Skip to content

feat(analytics): Implement semver and date custom ops for flags runtime props - #104

Open
efahk wants to merge 3 commits into
masterfrom
efahk_custom_operators
Open

feat(analytics): Implement semver and date custom ops for flags runtime props#104
efahk wants to merge 3 commits into
masterfrom
efahk_custom_operators

Conversation

@efahk

@efahk efahk commented Aug 24, 2026

Copy link
Copy Markdown

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 for more information about the comparators and golden vector list

@efahk
efahk requested review from a team and ketanmixpanel August 24, 2026 17:37
@efahk efahk changed the title Implement semver and date custom ops for flags runtime props feat: Implement semver and date custom ops for flags runtime props Aug 24, 2026
@efahk efahk changed the title feat: Implement semver and date custom ops for flags runtime props feat(featureflags): Implement semver and date custom ops for flags runtime props Aug 24, 2026
@greptile-apps

greptile-apps Bot commented Aug 24, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the previously reported duplicate test artifact is absent from the current tree.

Important Files Changed

Filename Overview
src/main/java/com/mixpanel/mixpanelapi/featureflags/util/CustomOperators.java Implements validated SemVer and RFC3339 datetime comparisons.
src/main/java/com/mixpanel/mixpanelapi/featureflags/util/JsonLogicEngine.java Registers the new operators during JSON Logic engine initialization.
src/test/java/com/mixpanel/mixpanelapi/featureflags/util/CustomOperatorsTest.java Executes both golden-vector suites through the production evaluation path.

Reviews (3): Last reviewed commit: "hand roll semver and update tests" | Re-trigger Greptile

@efahk efahk changed the title feat(featureflags): Implement semver and date custom ops for flags runtime props feat(analytics): Implement semver and date custom ops for flags runtime props Aug 24, 2026
@efahk
efahk requested review from tylerjroach and removed request for ketanmixpanel August 25, 2026 00:08
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.

1 participant