Maximum ignores Inline Updates
维护者通常 1 天内回复
@JakenVeina 已经在做这个了。
开始于 2025年5月29日。
评估
这个 Issue 还没有评估数据。
描述
Code to replicate the issue:
using DynamicData;
using DynamicData.Aggregation;
using DynamicDataRightJoin;
int? max = null;
var cache = new SourceCache<Foo, string>(foo => foo.Id);
var sub = cache
.Connect()
.TransformWithInlineUpdate(
foo => new TransformedFoo(foo.Id)
{
TransformedValue = foo.Value
},
(transformedFoo, foo) =>
{
transformedFoo.TransformedValue = foo.Value;
})
.Maximum(transformedFoo => transformedFoo.TransformedValue)
.Subscribe(newMax =>
{
max = newMax;
});
cache.AddOrUpdate(new Foo("0")
{
Value = 0
});
Console.WriteLine(max); // 0
cache.AddOrUpdate(new Foo("0")
{
Value = 1
});
Console.WriteLine(max); // Expected: 1, Actual: 0
sub.Dispose();
If I understood correctly, this is because:
TransformWithInlineUpdatecallscache.Refresh(change.Key);when inline updating even if the change reason was Update. Is this intended?ForAggregationignores changes which reason is Refresh.
Originally posted by @glrusso in https://github.com/reactivemarbles/DynamicData/discussions/895#discussioncomment-9156245
- 主要语言
- C#
- 星标
- 1.9k
- 派生
- 194
- 平均合并
- 12 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
reactivemarbles/DynamicData 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
reactivemarbles/DynamicData#1229 ·
维护者通常 1 天内回复
-
infrastructure
难度 2/5 1-3 小时 新手友好度 64/100
reactivemarbles/DynamicData#1089 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: ChangeAwareList merges an insert one slot before a pending AddRange, corrupting list order downstream可能已有人在做 @dwcullop 于 9 天前认领。 未关闭bug
难度 3/5 半天 新手友好度 63/100
reactivemarbles/DynamicData#1225 ·
维护者通常 1 天内回复
-
[Feature]: Make Avg, StdDev, Maximum and Minimum refresh-aware, consistent with Sum可能已有人在做 @dwcullop 于 14 天前认领。 未关闭breaking change enhancement
难度 5/5 一周以上 新手友好度 20/100
reactivemarbles/DynamicData#1214 ·
维护者通常 1 天内回复
-
bug
难度 5/5 一周以上 新手友好度 35/100
reactivemarbles/DynamicData#1196 ·
维护者通常 1 天内回复
查看 reactivemarbles/DynamicData 的全部 Issue
相似的 Issue
-
Feature needs response
难度 2/5 1-3 小时 新手友好度 70/100
Adyen/adyen-dotnet-api-library#1907 ·
维护者通常 5 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
immichFrame/ImmichFrame#735 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
dimitar-radenkov/Pointframe#318 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
DotHarness/dotcraft#546 ·
维护者通常 1 天内回复
-
a-corriger bug
难度 2/5 1-3 小时 新手友好度 78/100
christian-raj/S-Aloha#303 · 1 条评论 ·