mediawiki-extensions-Popups/src
Piotr Miazga c823a0e6cb When request gets aborted it shouldn't finish with FETCH_FAILED
Whe user moves mouse away and we abort the http request we shouldn't
count that request as a FETCH_FAILED. The reasoning behind is that
FETCH_FAILED state increments the counter.PagePreviewsApiFailure.
Our StatsD graph gets polluted with lots of aborted requests and it
becomes unsuable. It doesn't show only the failed requests.

Changes:
 - introduced new state: FETCH_ABORTED
 - switch to FETCH_ABORTED when browser aborts the request

Bug: T199482
Change-Id: I58047eb80f0700b78b2991daff9395ecc92553b8
2018-07-13 16:52:53 +02:00
..
changeListeners Hygiene: consistently refer to globals directly 2018-07-09 08:46:40 -05:00
gateway Properly handle catch() when calling gateway fetch. 2018-07-13 00:02:59 +02:00
instrumentation Remove A/B testing code 2018-05-07 12:37:41 -07:00
integrations Hygiene: make integrations/mwpopups pure 2017-08-09 16:07:08 +02:00
preview Hygiene: add assertion messages 2018-05-08 15:55:23 -05:00
reducers Update: cancel unused HTTP requests in flight 2018-07-04 13:48:14 -05:00
ui Upgrade eslint-config-wikimedia 2018-07-13 07:42:12 -05:00
actions.js When request gets aborted it shouldn't finish with FETCH_FAILED 2018-07-13 16:52:53 +02:00
actionTypes.js When request gets aborted it shouldn't finish with FETCH_FAILED 2018-07-13 16:52:53 +02:00
changeListener.js Hygiene: favor const 2018-03-21 10:44:24 +00:00
constants.js Remove A/B testing code 2018-05-07 12:37:41 -07:00
container.js Hygiene: favor string templates over concatenation 2018-03-21 08:05:55 -05:00
counts.js Hygiene: refactor common popup template code 2018-06-14 07:50:22 -05:00
experiments.js Hygiene: replace obvious function methods 2018-03-20 09:27:07 -05:00
formatter.js Upgrade eslint-config-wikimedia 2018-07-13 07:42:12 -05:00
getPageviewTracker.js Hygiene: consistently refer to globals directly 2018-07-09 08:46:40 -05:00
index.js Hygiene: enable Redux DevTools for debug builds 2018-07-02 14:54:36 -05:00
isEnabled.js Remove A/B testing code 2018-05-07 12:37:41 -07:00
previewBehavior.js Hygiene: consistently refer to globals directly 2018-07-09 08:46:40 -05:00
title.js Hygiene: consistently refer to globals directly 2018-07-09 08:46:40 -05:00
userSettings.js Hygiene: favor const 2018-03-21 10:44:24 +00:00
wait.js Update: cancel unused HTTP requests in flight 2018-07-04 13:48:14 -05:00