Community library status changes don't update `date_updated`

Abierto Apto para principiantes
#6,414 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@LightCreator1007 ya está trabajando en esto.

Desde el 16/11/2026.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
django, python

Línea de trabajo

Lee CommunityLibrarySubmission.date_updated en contentcuration/contentcuration/models.py y las dos actualizaciones de estado en contentcuration/contentcuration/viewsets/community_library_submission.py, así como el método mark_live del modelo. Añade pruebas de regresión para ambos cambios de estado, siguiendo las pruebas cercanas. La tarea estará completa cuando date_updated de cada envío modificado coincida con el momento de su cambio de estado.

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

Descripción

DEV: backend good first issue help wanted

🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:

  • Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
  • Confirm that you’ve read the guidelines in your comment.

Overview

Two community library status changes use QuerySet.update(), which doesn't update auto_now fields, so the affected submissions keep their old date_updated. The notifications filters and the submission list's default ordering both use date_updated, so those status changes are missing from recent notifications and sorted in the wrong place.

Complexity: Low
Target branch: hotfixes

Context
The Change
  • Both status changes should also set date_updated to the time of the change.
Acceptance Criteria
General
  • After a submission is superseded, its date_updated is the time it was superseded.
  • After a live submission is moved back to approved by mark_live, its date_updated is the time of that change.
Testing
  • Both criteria have regression tests.

AI usage

I scoped the audit. Claude Code found these by reading the code and drafted this issue.

Lenguaje dominante
Python
Estrellas
212
Forks
321
Merge medio
1 d 7 h
PR fusionados (30 d)
14

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 learningequality/studio

Todos los issues de learningequality/studio

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.