IQSS / IQSS/dataverse-client-javascript
Refactor ApiRepository for enhanced generality and abstraction
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 20
- Fork
- 11
- Merge medio
- 2g 5h
- PR unite (30g)
- 1
Descrizione
Overview of the Feature Request
The ApiRepository currently incorporates logic that is specific to particular resource types. This approach limits the generic utility of the repository and necessitates direct checks on these types within the repository itself. The proposal is to enhance the generality of ApiRepository by abstracting away resource-specific logic.
What Inspired the Request?
The need for a more generic ApiRepository was identified during a code review. The current implementation requires direct checks on resource types, which can complicate the codebase and reduce the modularity and reusability of the repository.
What Existing Behavior Do You Want Changed?
None, this is just a refactor.
Any Brand New Behavior Do You Want to Add to js-dataverse?
None, this is just a refactor.
Any Open or Closed Issues Related to This Feature Request?
No
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando ApiRepository e rivedi la discussione collegata della pull request che ha identificato i controlli specifici per risorsa. Determina quale logica è associata a specifici tipi di risorsa e definisci un’astrazione che preservi il comportamento esistente; il lavoro è completato quando è stato raggiunto un accordo sull’ambito del refactoring e verificato che il comportamento attuale rimanga invariato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- api
- Tipo di issue
- Refactoring
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100