Flagsmith / Flagsmith/flagsmith-ruby-client

Support `$.flags` context values in segment conditions

未关闭
#106 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Ruby
星标
12
派生
6
平均合并
28 分钟
30 天内合并 PR
1

描述

Support `$.flags..` conditions.

### Acceptance criteria

Engine:

- `engine-test-data` is bumped to the tag containing the flag dependency cases, and they pass.
- An environment with no `$.flags` conditions gains no per-evaluation cost.
- Resolved flags are scoped to a single evaluation, never shared between concurrent evaluations.

SDK:

- `getFlags` passes segments to the engine so identity-less evaluation resolves `$.flags` and `$.environment` conditions.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先跟踪 SDK getFlags 进入 engine,并检查 segments 和 per-evaluation context 是如何传递的。使用包含 flag dependency cases 的 tag engine-test-data 作为第一个验证点;完成意味着 $.flags 条件适用于无 identity 的 evaluation,不包含它们的 environments 不会产生额外的 per-evaluation 成本,并发 evaluations 不会共享已解析的 flags。

由索引模型根据 Issue 内容生成。

评估

技术栈
ruby
领域
backend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。