JSONAPI-Resources / JSONAPI-Resources/jsonapi-resources
Support Handling Of Error But Do Not Report To Rollbar
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
We are using JSON API Resources on top of Elastic Search for some of our search endpoints. When bad input is submitted, Elastic Search appropriately raises an error. JSON API appropriately handles the error and returns a JSON API response. However, it also places the error in action_dispatch.exception where the error is picked up by other parts of the application. In our case, Rollbar detects the exception and it is reported.
Currently, the only way to avoid this is to whitelist the exception and handle it ourselves. Would it be possible to let JSON API continue to handle it but just not notify the framework?
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
Choose one section below and delete the other:
Bug reports:
Please review Did you find a bug? and replace this content with a brief summary of your issue. If you can't submit a bug report template please be as thorough as possible when describing your your description. It's helpful to indicate which version of ruby and the JR gem you are using.
Features:
Please replace this line with a clear writeup of your feature request. Features that break compliance with the JSON:API spec will probably be closed.
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
Esamina prima le indicazioni di README per la segnalazione dei bug e lib/bug_report_templates/rails_5_master.rb, quindi segui il modo in cui JSON API Resources gestisce gli errori di Elastic Search e assegna action_dispatch.exception. L’issue non fornisce alcun file sorgente né alcun punto di ingresso per i test; per completare il lavoro sarebbe necessario un modo documentato e testato per restituire l’errore JSON API senza attivare la segnalazione a livello di framework.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- elasticsearch, rails, ruby
- Ambito
- api, backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100