Community library status changes don't update `date_updated`

Open Beginner friendly
#6,414 8 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@ArpitaSamanta10 is already working on this.

Since Nov 17, 2026.

  • #6451 by @ArpitaSamanta10 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
django, python

Research direction

Read CommunityLibrarySubmission.date_updated in contentcuration/contentcuration/models.py and the two status updates in contentcuration/contentcuration/viewsets/community_library_submission.py and the model's mark_live method. Add regression tests for both status changes, following nearby tests. Done means each changed submission's date_updated matches the time of its status change.

Written by the indexing model from the issue text.

Description

community-contribution-in-progress 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.

Dominant language
JavaScript
Stars
214
Forks
327
Avg merge
17h 5m
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/studio

All issues in learningequality/studio

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.