A write of the user's preferences replaces every value and has no ETag, so two tabs can undo each other
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- csharp, openapi
调研方向
Start with OperationsEndpoints.cs lines 204–217 and the preferences model and request body in UserPreferences.cs and AdminBodies.cs; compare conditional writes on the content routes. Then check the account page in AccountPreferences.razor and the backend and admin specifications. Add the route and tests so updating one preference preserves the stored others, concurrent changes to different preferences both persist, and the route appears in OpenAPI.
由索引模型根据 Issue 内容生成。
描述
Problem
PUT /me/preferences replaces culture, timeZone, dateFormat and numberFormat together: a member left out or null is stored as not chosen (src/FluentCMS.Core/Identity/UserPreferences.cs, lines 44 to 47; src/FluentCMS.Core/Api/Management/AdminBodies.cs, line 295). GET /me/preferences answers no ETag and the write takes no If-Match (OperationsEndpoints.cs, lines 204 to 217). The account page of the admin changes one preference at a time, so it must send the three others as it last read them. With two tabs, or two devices, a change of the time zone in one is undone by a change of the language in the other. #3214 asks that this cannot happen, and the admin can only narrow the window by reading again just before it writes (admin/src/FluentCMS.Admin/Account/AccountPreferences.razor, lines 119 and 120). A-41 adds three more controls to the same card.
Proposal
Let a caller change one member: a PATCH /me/preferences that changes the members it names and keeps the rest, with null for "not chosen"; or an ETag on the read with If-Match on the write, as the content routes have. The first is what the admin would use. In the OpenAPI document.
Acceptance
- A change of one preference keeps the three others as they are stored, whatever the caller last read
- Two changes of different preferences sent at once are both stored
- The route is in the OpenAPI document, with tests; the backend and admin specifications name it
Found in the audit of the Management API for A7 (20 Nov 2026); second acceptance line of #3214. Needed by A-41, which until then reads just before it writes. Size: S.
- 主要语言
- C#
- 星标
- 567
- 派生
- 107
- 平均合并
- 1 小时 19 分钟
- 30 天内合并 PR
- 353
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fluentcms/FluentCMS 的其他 Issue
-
area:localization plugin type:bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:storage type:bug
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
area:testing type:bug
难度 3/5 1-2 天 新手友好度 72/100
维护者通常 1 天内回复
-
area:api area:publishing type:feature
难度 4/5 3-5 天 新手友好度 55/100
fluentcms/FluentCMS#3473 · 1 条评论 ·
维护者通常 1 天内回复
-
area:storage plugin type:bug
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
查看 fluentcms/FluentCMS 的全部 Issue
相似的 Issue
-
[Bug]: Threading.Analyzers 0.7.79 does not load on the .NET 10 SDK (CS9057), CHT rules silently off未关闭bug regression threading
难度 2/5 1-3 小时 新手友好度 74/100
CryptoHives/Foundation#362 ·
维护者通常 1 天内回复
-
bug need-triage
难度 2/5 1-3 小时 新手友好度 65/100
Fervent-Tempo/AF-Media-Bar#321 ·
-
a-corriger documentation
难度 1/5 1 小时以内 新手友好度 87/100
christian-raj/S-Aloha#345 ·
-
bug 要トリアージ
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQ可能已有人在做 @spuddeh 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复