JSONAPI-Resources / JSONAPI-Resources/jsonapi-resources
Location header fails to be set in v0.9.12
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):
- Problem/bug report.
- Feature request.
- Request for support. Note: Please try to avoid submitting issues for support requests. Use Gitter instead.
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
When upgrading from jsonapi-resources v0.9.0 to v0.9.12 we've noticed a regression with the Location header being set when creating resources.
On further investigation, it appears this change introduced string keys for referencing self links but did not update the setting of the location header accordingly: https://github.com/cerebris/jsonapi-resources/commit/010f024758a41460ebe51f13b35e0b3136a95e79
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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 esaminando il commit 010f024758a41460ebe51f13b35e0b3136a95e79 e il percorso di creazione delle risorse che ha modificato. Riproduci la creazione con v0.9.12, confronta la gestione della chiave self-link con v0.9.0 e verifica che la risposta includa l’header Location previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rails, ruby
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100