Channel collection create adds channels mapped to `false`

Aberta
#6,415 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
backend

Direção de pesquisa

The issue names contentcuration/contentcuration/viewsets/channelset.py, especially ChannelSetSerializer.create and update. Read those methods and find the existing channel set tests; add a regression test for a map containing both true and false, then confirm creation includes only the channel mapped to true. The issue says it is not open for contribution, so check the repository's contributing guidelines before picking it up.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

DEV: backend

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

A channel collection's channels field is a map of channel ids to true or false. ChannelSetSerializer.update adds the channels mapped to true and removes those mapped to false, but create adds every channel id in the map, including those mapped to false.

Complexity: Low
Target branch: hotfixes

Context
The Change
  • create should add only the channels mapped to true, as update does.
Acceptance Criteria
General
  • Creating a channel collection with channels: {"<a>": true, "<b>": false} gives a collection containing only channel <a>.
Testing
  • The criterion has a regression test.

AI usage

I scoped the audit. Claude Code found this 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

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de learningequality/studio

Todas as issues de learningequality/studio

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.