Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/error_tracking/store/details/actions.js')
-rw-r--r--app/assets/javascripts/error_tracking/store/details/actions.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/app/assets/javascripts/error_tracking/store/details/actions.js b/app/assets/javascripts/error_tracking/store/details/actions.js
index 2b216d910ce..5914a79f092 100644
--- a/app/assets/javascripts/error_tracking/store/details/actions.js
+++ b/app/assets/javascripts/error_tracking/store/details/actions.js
@@ -5,36 +5,11 @@ import Poll from '~/lib/utils/poll';
import { __ } from '~/locale';
let stackTracePoll;
-let detailPoll;
const stopPolling = poll => {
if (poll) poll.stop();
};
-export function startPollingDetails({ commit }, endpoint) {
- detailPoll = new Poll({
- resource: service,
- method: 'getSentryData',
- data: { endpoint },
- successCallback: ({ data }) => {
- if (!data) {
- return;
- }
-
- commit(types.SET_ERROR, data.error);
- commit(types.SET_LOADING, false);
-
- stopPolling(detailPoll);
- },
- errorCallback: () => {
- commit(types.SET_LOADING, false);
- createFlash(__('Failed to load error details from Sentry.'));
- },
- });
-
- detailPoll.makeRequest();
-}
-
export function startPollingStacktrace({ commit }, endpoint) {
stackTracePoll = new Poll({
resource: service,