JSONAPI-Resources / JSONAPI-Resources/jsonapi-resources

Use same resource instance for operation processing and generating ID trees

Aperta
#1,293 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Ruby
Stelle
2.3k
Fork
546
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This issue is a (choose one):

Feature request

Checklist before submitting:

  • I've searched for an existing issue.
  • I've asked my question on Gitter and have not received a satisfactory answer.
  • I've included a complete bug report template. This step helps us and allows us to see the bug without trying to reproduce the problem from your description. It helps you because you will frequently detect if it's a problem specific to your project.
  • The feature I'm asking for is compliant with the JSON:API spec.

Description

Choose one section below and delete the other:

Features:

In previous versions, a single resource instance was used for performing the operation and generating the response. Now these parts of the request handling are split into distinct steps which each use their own resource instances. As a result, any instance variables stored on the resource during the operation are not present when generating the response.

Any resource instances that are created for the operation processing should be used for the response generation as well.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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.

Direzione di ricerca

Non vengono indicati file o test. Inizia tracciando i percorsi di gestione delle richieste per l’elaborazione delle operazioni e la generazione delle risposte, quindi confronta dove vengono create le istanze delle risorse. Il lavoro è completato quando le istanze delle risorse utilizzate durante le operazioni vengono utilizzate anche per generare le risposte, preservando le variabili di istanza impostate durante l’operazione.

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

Valutazione

Stack tecnologico
ruby
Ambito
api, backend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.