Drop ContentNode.thumbnail_encoding
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
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ả
❌ 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_timeoutand fail rather than retry, so itsACCESS EXCLUSIVElock oncontentcuration_contentnodecan't queue reads and writes behind it.
Acceptance Criteria
General
- After deploy to
hotfixes,contentcuration_contentnodehas nothumbnail_encodingcolumn - The migration aborts with a non-zero exit when it can't acquire its lock within
lock_timeout -
makemigrations --checkreports 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
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của learningequality/studio
-
Set unpublishable: true on PublishedChange by construction to simplify handleMaxRevs predicateĐang mởDEV: frontend P3 - low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
learningequality/studio#5868 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TAG: tech update / debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
learningequality/studio#2245 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Remove slideshow supportĐang mởDEV: backend
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
learningequality/studio#6353 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DEV: backend DEV: frontend
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
learningequality/studio#6351 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DEV: backend
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
learningequality/studio#6350 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của learningequality/studio
Issue tương tự
-
Context/namespace resources fail in-cluster: "Invalid kube-config file. No configuration found."Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
awslabs/visual-asset-management-system#880 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
netbox status: needs owner type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
netbox-community/netbox#23533 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts status: backlog type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
netbox-community/netbox-scripts#68 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
marin-community/marin#10765 ·
Maintainer thường phản hồi trong vòng 1 ngày