Shared fields lose updates across locales

Abierto
#3,265 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp
Área
backend

Línea de trabajo

Start in ContentService.cs:727-781 to trace the If-Match check, then read ContentService.Publishing.cs:681-698 for how other locales are recomputed. Follow the shared-row version and publish-copy paths, and inspect the provider tests. Done when stale ETags return 412 after shared-field changes, publish skips a changed shared row, and tests pass on every provider.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:content area:localization type:bug

Problem

If-Match is compared with the written locale's draft version only (ContentService.cs:727-781). When a save changes shared (non-localizable) fields, RecomputeOtherLocalesAsync (ContentService.Publishing.cs:681-698) recomputes the other locales' status but not their versions. Editor A saves en and changes price; editor B then PUTs fr with an ETag read earlier, which is still valid, and reverts price. Publish has the same gap: the shared copy is not conditional on the shared row being unchanged.

Proposal

Version the shared row and include it in the ETag, or bump every locale's draft version when shared fields change; make the publish copy conditional.

Acceptance

  • A PUT in one locale with an ETag read before a shared-field change in another locale answers 412
  • Publish does not copy a shared row changed since the publisher's read
  • Tests on every provider

Found in the code review of 17 Nov 2026 (B2).

Lenguaje dominante
C#
Estrellas
569
Forks
107
Merge medio
2 h 49 min
PR fusionados (30 d)
397

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fluentcms/FluentCMS

Todos los issues de fluentcms/FluentCMS

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.