Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Improvement: Stop re-uploading bundled cover images to S3 on every project create

Aperta
#9,970 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@manshi-n ci sta già lavorando.

Dal 9/10/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
50/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, typescript
Ambito
backend, frontend

Direzione di ricerca

Start in apps/web/components/projects/create/root.tsx around lines 72-79, where the upload runs on every project create, then check needsUpload in apps/web/helpers/cover-image.helper.ts near line 189 to see when a bundled static cover is already treated as needing no upload. The backend key generation is at apps/api/plane/app/views/asset/v2.py line 389. Done means a project created with a bundled cover makes no new S3 object, while uploaded covers still work. The issue leaves open whether to skip the upload or hash the bytes, so confirm the approach with a maintainer first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What's happening

  • Every project create uploads one of the 30 bundled covers (apps/web/app/assets/cover-images/) to S3 under a new random UUID key
  • Same file, new S3 object, every time
  • asset/v2.py:389: asset_key = f"{workspace.id}/{uuid.uuid4().hex}-{name}"

Scale of waste (rough math)

  • Say 2,000 teams on Cloud
  • Say 3 projects per team = 6,000 projects
  • ~50KB per cover × 6,000 = ~300MB of duplicate covers
  • Only 30 unique files exist — 6,000 objects store 30 images

Fix

  • If cover is local_static, skip the upload
  • Store the static path directly — the app already renders static paths as-is (getCoverImageDisplayURL)
  • Or: sha256(bytes) as the S3 key instead of uuid4(), so identical files dedupe

Files

  • apps/web/components/projects/create/root.tsx:72-79 — upload always runs on create
  • apps/web/helpers/cover-image.helper.ts:189 — needsUpload rule
  • apps/api/plane/app/views/asset/v2.py:389 — random key per upload

Just a small bug i noticed, not much but can save small s3 cost in cloud version

Let me know if this issue can be taken, would like to raise a pr

Lingua principale
TypeScript
Stelle
61.1k
Fork
6.1k
Merge medio
1g 12h
PR unite (30g)
80

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di makeplane/plane

Tutte le issue di makeplane/plane

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.