Community library status changes don't update `date_updated`
Mantenedores costumam responder em até 1 dia
@ArpitaSamanta10 já está trabalhando nisso.
Desde 17/11/2026.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 84/100
Direção de pesquisa
Leia CommunityLibrarySubmission.date_updated em contentcuration/contentcuration/models.py e as duas atualizações de status em contentcuration/contentcuration/viewsets/community_library_submission.py, além do método mark_live do modelo. Adicione testes de regressão para ambas as mudanças de status, seguindo os testes próximos. O trabalho estará concluído quando date_updated de cada envio alterado corresponder ao momento da mudança de status.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
🙂 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.
- Linguagem predominante
- Python
- Estrelas
- 212
- Forks
- 321
- Merge médio
- 1d 7h
- PRs com merge (30d)
- 14
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de learningequality/studio
-
DEV: backend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
learningequality/studio#6410 ·
Mantenedores costumam responder em até 1 dia
-
DEV: backend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
learningequality/studio#6409 ·
Mantenedores costumam responder em até 1 dia
-
DEV: backend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
learningequality/studio#6407 ·
Mantenedores costumam responder em até 1 dia
-
Stripe webhook accepts events when no webhook secret is configuredTalvez já em andamento @adibmbrk assumiu hoje. Abertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
learningequality/studio#6404 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Contentnode `requisites` action skips the permission checkTalvez já em andamento @sreehari-vp assumiu hoje. Abertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
learningequality/studio#6400 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de learningequality/studio
Issues semelhantes
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 76/100
samuelclay/NewsBlur#2214 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
MODEL_NOT_FOUND gives no suggestion for a model listed only as model:profileTalvez já em andamento @ShaiShmuel assumiu hoje. Abertaenhancement rust
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
superlinked/sie#985 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
readthedocs/readthedocs-builder#73 ·
Mantenedores costumam responder em até 1 dia