Community library status changes don't update `date_updated`

Offen Anfängerfreundlich
#6,414 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@LightCreator1007 arbeitet bereits daran.

Seit 16.11.2026.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
84/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
django, python

Rechercherichtung

Lies CommunityLibrarySubmission.date_updated in contentcuration/contentcuration/models.py sowie die beiden Statusaktualisierungen in contentcuration/contentcuration/viewsets/community_library_submission.py und die mark_live-Methode des Modells. Füge Regressionstests für beide Statusänderungen hinzu und orientiere dich dabei an den Tests in der Nähe. Als abgeschlossen gilt die Aufgabe, wenn date_updated jeder geänderten Einreichung dem Zeitpunkt ihrer Statusänderung entspricht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
212
Forks
321
Ø Merge
1 T. 7 Std.
Gemergte PRs (30 T.)
14

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus learningequality/studio

Alle Issues in learningequality/studio

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.