Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Drop ContentNode.thumbnail_encoding

Đang mở
#6,352 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
django, postgresql, python
Lĩnh vực
backend, database

Hướng nghiên cứu

Read the migration history and the migration from learningequality/studio#6351 to identify the app and dependency where this column is managed. Add a migration that removes ContentNode.thumbnail_encoding and sets lock_timeout so it fails if the lock cannot be acquired. Confirm the column is removed after deployment and that makemigrations --check reports no changes.

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

After learningequality/studio#6351, no code reads or writes contentcuration_contentnode.thumbnail_encoding, so the column should be dropped. Dropping it doesn't free the ~355 GB of TOAST it holds; that space is reclaimed when the table is next rewritten.

Complexity: Low
Target branch: hotfixes

The Change
  • A migration should remove ContentNode.thumbnail_encoding.
  • The migration should set a lock_timeout and fail rather than retry, so its ACCESS EXCLUSIVE lock on contentcuration_contentnode can't queue reads and writes behind it.
Acceptance Criteria
General
  • After deploy to hotfixes, contentcuration_contentnode has no thumbnail_encoding column
  • The migration aborts with a non-zero exit when it can't acquire its lock within lock_timeout
  • makemigrations --check reports no changes

AI usage

Drafted with Claude Code. I chose to split the column drop out of learningequality/studio#6351, and the lock handling.

Ngôn ngữ chính
Python
Star
212
Fork
314
Merge trung bình
3 ngày 6 giờ
Pull request đã merge (30 ngày)
56

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.