Channel collection create adds channels mapped to `false`

Đang mở
#6,415 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
212
Fork
321
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của learningequality/studio

Tất cả issue của learningequality/studio

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.