Community library status changes don't update `date_updated`
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
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
🙂 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
CommunityLibrarySubmission.date_updatedisauto_now=True.- These calls change
statuswith.update():_mark_previous_pending_submissions_as_supersededmarks older pending submissions superseded.mark_livemoves the previous live submission back to approved.
- The submission viewsets filter on
date_updatedand order by-date_updated.
The Change
- Both status changes should also set
date_updatedto the time of the change.
Acceptance Criteria
General
- After a submission is superseded, its
date_updatedis the time it was superseded. - After a live submission is moved back to approved by
mark_live, itsdate_updatedis 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
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from learningequality/studio
-
Activation key can activate a different account whose email differs only in casePossibly taken @Madhu-priya123 claimed this 4 days ago. OpenDEV: backend
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
learningequality/studio#6410 · 2 comments ·
Maintainers usually reply within 1 day
-
DEV: backend
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
learningequality/studio#6409 ·
Maintainers usually reply within 1 day
-
DEV: backend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
learningequality/studio#6407 ·
Maintainers usually reply within 1 day
-
Stripe webhook accepts events when no webhook secret is configuredPossibly taken @adibmbrk claimed this 14 days ago. Opencommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
learningequality/studio#6404 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Contentnode `requisites` action skips the permission checkPossibly taken @sreehari-vp claimed this 13 days ago. Opencommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
learningequality/studio#6400 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in learningequality/studio
Similar issues
-
enhancement good first issue shields parity
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
seuthootDev/terminal-shields#125 ·
Maintainers usually reply within 2 days
-
[ui] 自創球員 (投手): pick 球種 at creation (直球 fixed + up to 2 more), trade-off line, shown on the cardOpenarea:ui P1 status:doing
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
sunososobro-hub/cloudball#1153 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NuSkooler/enigma-bbs#1241 ·
Maintainers usually reply within 1 day
-
harness seguranca target:staging
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
corosolto/client#1507 · 1 comment ·
Maintainers usually reply within 1 day