Commit Graph

22 Commits

Author SHA1 Message Date
GitLab Bot 06c127aa72 Add latest changes from gitlab-org/gitlab@master 2020-09-15 15:10:08 +00:00
GitLab Bot d06c308380 Add latest changes from gitlab-org/gitlab@master 2020-08-20 09:09:55 +00:00
Stan Hu ec5bbd27f5 Remove duplicate XHR request when requesting new pipeline page
When a user clicked on another page in the pipeline page, the following
would happen:

1. PipelinesService.getPipelines() would be called to fetch the new page
2. In the success handler, Poll.restart() would be called
3. This would invoke Poll.makeRequest(), which would fire off a new
request.

To fix this, we introduce a enable(), which will:

1. Update the request data accordingly
2. Clear the old timeout if necessary and start a new timer

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58095
2019-02-23 21:27:53 -08:00
André Luís 32737672fa Revert "Merge branch 'tz-mr-refactor-mem-posting' into 'master'"
This reverts commit 9c121352aa, reversing
changes made to c1b335e012.
2018-08-01 13:45:14 +01:00
Filipa Lacerda 49948c1ff6
Changes poll.js to keep polling on any 2xx http status code 2018-07-30 15:44:01 +01:00
Tim Zallmann 694a7df9f8 Improving performance of posting a comment by reducing memory + CPU 2018-07-23 18:42:36 +00:00
Filipa Lacerda 9400ed3b3e Use axios instead of vue resource - step 1 2017-11-20 09:57:08 +00:00
Filipa Lacerda be4abe7719 Stops page reload when changing tabs or pages - uses API requests instead 2017-11-14 15:35:29 +00:00
Filipa Lacerda 96e6fc70b4 Import modules instead of using the ones in global namespace
Removes set favicon related methods from global scope
Improves test related with favicon

Removes convertPermissionToBoolean from global scope.
Adds tests for convertPermissionToBoolean - were non existant

Removes setParamInURL from gl.utils

Removes parseIntPagination from gl.utils namespace

Remove normalizeCRLFHeaders from gl.utils namespace

Removes normalizeHeaders from gl.utils namespace

Use gl.utils for filtered search

Fix bad import

Fix broken test by cleaning window.history namespace

Adds changelog
2017-09-09 09:54:27 +01:00
Simon Knox 53e7bf0470 fix transient rspec failure due to Poll.js race condition
don't treat aborted requests as failures, they are often triggered during unload (e.g after clicking a link)
2017-07-18 12:17:55 +10:00
Filipa Lacerda 7c1bb6c349
Fix broken build 2017-04-06 23:50:35 +02:00
Filipa Lacerda 81ed06cb33 Parses string header into a number 2017-03-28 14:20:33 +01:00
Filipa Lacerda 236bb93329 Changes after review 2017-03-24 18:27:01 +00:00
Filipa Lacerda 9f7c19b352 Adds restart method and auxiliar callback to polling class 2017-03-24 16:59:14 +00:00
Filipa Lacerda 70e59559ce Clears timeout 2017-03-23 16:12:43 +00:00
Filipa Lacerda 14b077b7cb Adds stop function so we can stop polling anytime 2017-03-23 15:57:03 +00:00
Filipa Lacerda 45b2c63fdf simplifies assignment of default options 2017-03-22 12:37:38 +00:00
Filipa Lacerda 269adbf9db Fix class name 2017-03-22 10:01:29 +00:00
Filipa Lacerda a94ee46876 Adds tests and changes after review 2017-03-21 18:07:02 +00:00
Filipa Lacerda ca5982afb9 Changes after review - receives service and method to match current architecture 2017-03-21 12:22:23 +00:00
Filipa Lacerda 19a6cc2664 Adss changelog entry 2017-03-17 18:04:55 +00:00
Filipa Lacerda 32dfa80108 Moves poll inside GL 2017-03-17 17:46:45 +00:00