openphacts / PM

Project Management [private]
0 stars 0 forks source link

API sanity checking #53

Open leeharland opened 10 years ago

leeharland commented 10 years ago

we should put something in place that when the ops api contacts e.g. the IMS and gets something strange back it should warn the user[this is promted by a glitch that meant zero pharmacology results coming back].

i dont quite know what exactly we'll do here but making a note so as we can discuss it in future

Christian-B commented 10 years ago

Actually there are several possible cases back.

  1. It gets something strange.
  2. It gets null back
  3. It gets an empty list back
  4. It gets an error/exception back
  5. It gets 404/204 or similar web service call error back
  6. It gets absolutely back because the service it calls is dead/ hung/ out of memory

In the case of the IMS 1.3 (not using 1.4 fix) the situation is 6 which is the hardest for the upstream services to deal with.