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

XBlock Scoping

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Refactoring
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

La issue non indica file, test o punti di ingresso. Inizia mappando l'API di scoping esistente di XBlock, in particolare NONE, ALL, TYPE, DEFINITION e USAGE, quindi esamina i riferimenti collegati alle architetture di Von Neumann e Harvard. Il lavoro è completato solo quando è stato concordato un modello sostitutivo, prima di poter definire l'ambito dell'implementazione.

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

Descrizione

Reported by @pmitros:

"NONE and ALL mean the same things, and expose our particular implementation details to XBlock authors.

Students may want to modify a course. Examples:

  • Contribute hints around a problem (experiment last summer)
  • Ike's dogfood.
  • MakerPhysics course, where students construct a course

See:
http://en.wikipedia.org/wiki/Von_Neumann_architecture
http://en.wikipedia.org/wiki/Harvard_architecture

TYPE should be BLOCK_TYPE

DEFINITION and USAGE should be the same. The set of things which are overridable/advertisable should not be pre-defined by the XBlock author. Especially things like number of attempts can fall into either bin, and which makes more sense depends on how they are used. This is an artificial split due to architectural issues on our side, but it shouldn't be exposed to an XBlock author.

I can see there being something here, but not this. SCOPE could have an additional axis indicating something along the lines of whether something is mutable or read-only, or perhaps whether it ought to be versioned, or whether Big Things Happen when it changes (e.g. other chunks of state become inconsistent) or something, but I'm not quite sure what that is. I'm pretty sure it's not what we've got, though."

Lingua principale
Python
Stelle
470
Fork
231
Merge medio
2g 14h
PR unite (30g)
7

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/XBlock

Tutte le issue di openedx/XBlock

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.