Drop ContentNode.thumbnail_encoding
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
❌ 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.
- Vorherrschende Sprache
- Python
- Sterne
- 212
- Forks
- 314
- Ø Merge
- 3 T. 6 Std.
- Gemergte PRs (30 T.)
- 56
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus learningequality/studio
-
Set unpublishable: true on PublishedChange by construction to simplify handleMaxRevs predicateOffenDEV: frontend P3 - low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
learningequality/studio#5868 ·
Maintainer antworten meist innerhalb von 1 Tag
-
TAG: tech update / debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
learningequality/studio#2245 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Remove slideshow supportOffenDEV: backend
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
learningequality/studio#6353 · 2 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
DEV: backend DEV: frontend
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
learningequality/studio#6351 ·
Maintainer antworten meist innerhalb von 1 Tag
-
DEV: backend
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
learningequality/studio#6350 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in learningequality/studio
Ähnliche Issues
-
changelog investigate
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
ramnes/notion-sdk-py#433 ·
-
docs pkg:core
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
pydantic/pydantic-ai#11929 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
intake/intake-esm#789 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
MemMachine/MemMachine#1877 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
openedx/openedx-authz#579 ·
Maintainer antworten meist innerhalb von 1 Tag