cleanup: delete orphaned xmodule/js/src/html/display.js and imageModal.js

Aperta Adatta ai principianti
#38,792 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à
2/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
82/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
javascript, webpack

Direzione di ricerca

Attendi che i PR #38746 e #38748 siano stati uniti, quindi esamina xmodule/js/src/html/display.js, xmodule/js/src/html/imageModal.js e webpack.common.config.js. Conferma che nessun entry di webpack faccia riferimento a questi file o a xmodule/js/common_static/js/vendor/draggabilly.js, elimina i due file orfani e rimuovi la regola imports-loader per draggabilly.js se non è utilizzata.

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

Descrizione

Context

As part of the Slash-n-Burn Built-In XBlocks epic:

  • PR #38746 removes the Annotatable block, which deletes the webpack entry AnnotatableBlockDisplay — the entry that previously included xmodule/js/src/html/display.js alongside the annotatable display JS.
  • PR #38748 removes the HTML block, which deletes the webpack entry HtmlBlockDisplay — the other entry that included xmodule/js/src/html/display.js and xmodule/js/src/html/imageModal.js.

After both PRs merge, neither of these files is referenced by any webpack entry:

  • xmodule/js/src/html/display.js
  • xmodule/js/src/html/imageModal.js

They cannot be deleted in PR #38748 before PR #38746 merges (they are still referenced by AnnotatableBlockDisplay in webpack.builtinblocks.config.js on master), so this follow-up issue tracks the cleanup.

Work to do

Once both PR #38746 and PR #38748 are merged into master:

  1. Delete xmodule/js/src/html/display.js
  2. Delete xmodule/js/src/html/imageModal.js
  3. Remove the draggabilly.js imports-loader rule from webpack.common.config.js (line ~317) if no other entry references xmodule/js/common_static/js/vendor/draggabilly.js

This is a small standalone PR — should take ~5 minutes.

Lingua principale
Python
Stelle
8.2k
Fork
4.4k
Merge medio
2g 10h
PR unite (30g)
40

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 openedx/openedx-platform

Tutte le issue di openedx/openedx-platform

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.