A write of the user's preferences replaces every value and has no ETag, so two tabs can undo each other
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- csharp, openapi
- Área
- backend-api-design
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C#
- Estrellas
- 567
- Forks
- 107
- Merge medio
- 1 h 19 min
- PR fusionados (30 d)
- 353
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fluentcms/FluentCMS
-
area:localization plugin type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:storage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
area:testing type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
area:api area:publishing type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
fluentcms/FluentCMS#3473 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:storage plugin type:bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de fluentcms/FluentCMS
Issues similares
-
[Bug]: Threading.Analyzers 0.7.79 does not load on the .NET 10 SDK (CS9057), CHT rules silently offAbiertobug regression threading
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
CryptoHives/Foundation#362 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: 本地歌词翻译显示错误Abiertobug need-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Fervent-Tempo/AF-Media-Bar#321 ·
-
a-corriger documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 87/100
christian-raj/S-Aloha#345 ·
-
bug 要トリアージ
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQPosiblemente ocupada @spuddeh la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día