Netflix / falcor

A JavaScript library for efficient data fetching
http://netflix.github.io/falcor
Apache License 2.0
10.47k stars 444 forks source link

Added request options for DataSource retry info #970

Closed jcranendonk closed 4 years ago

jcranendonk commented 4 years ago

The DataSource for a Model has no insight into the retry mechanism for get and set requests. This PR adds the retry count as one of a set of request options that are passed to DataSource.get and DataSource.set, so that this information may be used to e.g. manage request balancing and load shedding on the underlying network resource.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.02%) to 92.616% when pulling c540f7596bbca8a4eaab7b912a17b3f544023055 on jcranendonk:ds_retry_info into 1f6f304fc247cb5d88e58197cd1a3bc558d8a9ae on Netflix:master.