Skip to content

feat(Checkpoints): Reshape rule evaluation properties - #7544

Draft
rickvdl wants to merge 2 commits into
rickvdl/canonical-audience-configfrom
rickvdl/reshape-rule-evaluation-properties
Draft

feat(Checkpoints): Reshape rule evaluation properties#7544
rickvdl wants to merge 2 commits into
rickvdl/canonical-audience-configfrom
rickvdl/reshape-rule-evaluation-properties

Conversation

@rickvdl

@rickvdl rickvdl commented Aug 28, 2026

Copy link
Copy Markdown
Member

Description

Restructures the data passed to the rule evaluator, removing the dimension types from the SDK supplied providers. Instead merging them all at the root, except externally supplied ones like backend.*, custom.* and subscriber_attributes.*.

Additionally also adds the evaluated_at property to the root of the snapshot.

{
  "evaluated_at": 1787918400000,
  "platform": "ios",
  "platform_version": "26.3.0",
  "locale": "en_gb",
  "storefront": "GBR",
  "app_version": "1.2.3",
  "sdk_version": "5.84.0",
  "subscriber_attributes": {
    "goal": {
      "value": "make_more_money",
      "updated_at": 1787832000000
    }
  },
  "custom": {
    "string": "hello",
    "boolean": true,
    "integer": 42,
    "decimal": 4.2
  },
  "backend": {
    "predicate_hash": true,
    "object": {
      "nested": "value"
    },
    "list": [
      {
        "id": "first"
      }
    ]
  }
}

Related Android PR: RevenueCat/purchases-android#4126

@rickvdl rickvdl changed the title Reshape rule evaluation properties feat(Checkpoints): Reshape rule evaluation properties Aug 28, 2026

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@rickvdl
rickvdl force-pushed the rickvdl/reshape-rule-evaluation-properties branch 2 times, most recently from d6d5568 to 5c6b39c Compare September 1, 2026 12:53
@rickvdl
rickvdl force-pushed the rickvdl/reshape-rule-evaluation-properties branch from 5c6b39c to 50918c3 Compare September 1, 2026 14:31
@rickvdl
rickvdl force-pushed the rickvdl/reshape-rule-evaluation-properties branch from 50918c3 to 5f499ae Compare September 2, 2026 11:59
@rickvdl

rickvdl commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

@RCGitBot please test

@rickvdl
rickvdl force-pushed the rickvdl/reshape-rule-evaluation-properties branch from 5f499ae to 01472a5 Compare September 2, 2026 12:02
@rickvdl

rickvdl commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

@RCGitBot please test

@rickvdl
rickvdl force-pushed the rickvdl/reshape-rule-evaluation-properties branch from 01472a5 to b6dd3c1 Compare September 2, 2026 12:37
@rickvdl

rickvdl commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

@RCGitBot please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants