Sync update to a missing content node is marked applied
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Read BulkUpdateMixin.update_from_changes in contentcuration/contentcuration/viewsets/base.py around lines 880–894, then inspect its serializer and missing-key handling. Add regression tests for missing single and composite keys and for a failed bulk update with missing keys; done means all three cases mark changes errored and preserve the "Not found" and bulk update errors.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
When a sync update change targets an object that doesn't exist, update_from_changes should mark the change "Not found". For models keyed by a single id, such as content nodes, the check never matches, so the change is marked applied with no error and the client believes the update was saved.
Complexity: Low
Target branch: hotfixes
Context
BulkUpdateMixin.update_from_changesteststuple(change["key"]) in serializer.missing_keys. For a string key,tuple()produces a tuple of its characters, which never equals the string keys inmissing_keys.- The same block assigns
errorsafresh when there are missing keys, discarding the "Internal server error" entries theexceptbranch above it added. - Reproduced: a contentnode update change with
mods: {"parent": ..., "kind": ...}for an id that doesn't exist is markedapplied=True, errored=False.
The Change
- An update change whose object doesn't exist should be marked errored with "Not found", for single and composite keys.
- Errors from a failed bulk update should be kept alongside any "Not found" errors.
Acceptance Criteria
General
- A contentnode update change for a nonexistent id is marked errored with "Not found".
- An update change for a nonexistent composite key, such as an assessment item's, is still marked "Not found".
- When the bulk update raises and some keys are missing, every change in the batch is marked errored.
Testing
- Each criterion has a regression test.
AI usage
I scoped the audit. Claude Code found and reproduced this failure and drafted this issue.
- Lenguaje dominante
- JavaScript
- Estrellas
- 214
- Forks
- 327
- Merge medio
- 17 h 5 min
- PR fusionados (30 d)
- 25
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin 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 learningequality/studio
-
Community library status changes don't update `date_updated`Posiblemente ocupada @ArpitaSamanta10 la tomó hace 14 días. Abiertocommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
learningequality/studio#6414 · 8 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Activation key can activate a different account whose email differs only in casePosiblemente ocupada @Madhu-priya123 la tomó hace 5 días. AbiertoDEV: backend
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
learningequality/studio#6410 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
DEV: backend
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
learningequality/studio#6409 ·
Los mantenedores suelen responder en 1 día
-
DEV: backend
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
learningequality/studio#6407 ·
Los mantenedores suelen responder en 1 día
-
Stripe webhook accepts events when no webhook secret is configuredPosiblemente ocupada @adibmbrk la tomó hace 14 días. Abiertocommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
learningequality/studio#6404 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de learningequality/studio
Issues similares
-
Mend: dependency security vulnerability
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
ManageIQ/manageiq-ui-service#2259 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
electerious/Ackee#411 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[bug] 提瓦特记事本原石检测框宽度较窄Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
babalae/bettergi-scripts-list#3905 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 87/100
dedicatedcode/reitti#1445 ·
Los mantenedores suelen responder en 1 día