A sync change can modify a channel other than the one it names
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 68/100
Direção de pesquisa
Start with SyncView.handle_changes in contentcuration/contentcuration/viewsets/sync/endpoint.py, then trace the contentnode create, update, and move handlers that use parent or target. Add tests for changes naming a different channel and run the relevant sync endpoint tests. Done means those mismatched changes are rejected without creating nodes or change records, while valid same-channel changes still work.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Overview
The sync endpoint checks that the user can edit the channel_id a change names, and records the change under that channel. Nothing checks that the parent or target of a contentnode create, update or move is in that channel. A user who edits two channels can send a change naming channel A that creates a node in channel B, and channel B records no change for it, so its unpublished-changes tracking misses the edit.
Complexity: Medium
Target branch: hotfixes
Context
SyncView.handle_changessorts changes by theirchannel_idand creates theChangerows with it. The contentnode create, update and move handlers then place the node under whateverparentortargetthe change gives.- Reproduced: an editor of channels A and B sent a contentnode create change with
channel_idA andparentset to B's root node. The node was created in B, theChangerow was recorded under A, and B had noChangerows.
The Change
- A contentnode create, update or move change should be rejected when its
parentortargetisn't in the channel the change names.
Acceptance Criteria
General
- The reproduced change in Context is rejected with an error, and nothing is created in either channel.
- Changes whose objects are in the named channel are applied as before.
Testing
- Tests cover create, update and move changes whose
parentortargetis in a different channel from the one the change names.
AI usage
I scoped the audit. Claude Code found and reproduced this failure 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
-
Community library status changes don't update `date_updated`Talvez já em andamento @ArpitaSamanta10 assumiu hoje. Abertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
learningequality/studio#6414 · 8 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
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
Todas as issues de learningequality/studio
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
canonical/paas-charm#407 · 1 comentário ·
Mantenedores costumam responder em até 5 dias
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
Mantenedores costumam responder em até 1 dia
-
enhancement tooling
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
`read_nexus` entry point points to a function that no longer existsTalvez já em andamento @RubelMozumder assumiu hoje. Abertaannotator bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
FAIRmat-NFDI/pynxtools#876 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retryingTalvez já em andamento @yipinghuang1991 assumiu hoje. Abertacomp/agent P2 type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
NousResearch/hermes-agent#156837 ·
Mantenedores costumam responder em até 1 dia