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

peer_reviewed_article: Featured image stored in the wrong place

Aperta
#627 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
javascript, xml
Ambito
backend

Direzione di ricerca

Read ensureStructure and editView to trace where the featured image element is created and stored in the XML. The issue leaves open whether to migrate existing data on save, add schema versioning and migrations, or document the structure, so first investigate the data format and the crash context in #519. Done means choosing and implementing a consistent storage approach that handles existing articles.

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

Descrizione

Impact: Low Level: Moderate Pagetype: Peer reviewed article Type: Bug Value: Coders

The ensureStructure method creates a FIELD_NAME_FEATURED_IMAGE below article/content, but the editView (and functions it calls) put the featured image directly below the root of the XML.

This means every article has an empty featured image element below context, and another one at the root, which potentially causes crashes (see #519), but also needs to be fixed somehow.

Maybe some migration approach (on save? Or we need to add schema versioning and active migrations). Or accept that this datastructure is weird and document it?

Lingua principale
JavaScript
Stelle
5
Fork
9
Merge medio
19h 10m
PR unite (30g)
12

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 PlanBCode/hypha

Tutte le issue di PlanBCode/hypha

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.