Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f0127089
Commit
f0127089
authored
Jan 07, 2021
by
Jose Ivan Vargas
Committed by
Sarah Groff Hennigh-Palermo
Jan 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Sentry to graph_component_wrapper
parent
f78ebcbd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
app/assets/javascripts/pipelines/components/graph/graph_component_wrapper.vue
...ts/pipelines/components/graph/graph_component_wrapper.vue
+2
-1
app/assets/javascripts/pipelines/components/graph/linked_pipelines_column.vue
...ts/pipelines/components/graph/linked_pipelines_column.vue
+7
-2
app/assets/javascripts/pipelines/components/graph/utils.js
app/assets/javascripts/pipelines/components/graph/utils.js
+8
-0
No files found.
app/assets/javascripts/pipelines/components/graph/graph_component_wrapper.vue
View file @
f0127089
...
...
@@ -4,7 +4,7 @@ import { __ } from '~/locale';
import
{
DEFAULT
,
LOAD_FAILURE
}
from
'
../../constants
'
;
import
getPipelineDetails
from
'
../../graphql/queries/get_pipeline_details.query.graphql
'
;
import
PipelineGraph
from
'
./graph_component.vue
'
;
import
{
unwrapPipelineData
,
toggleQueryPollingByVisibility
}
from
'
./utils
'
;
import
{
unwrapPipelineData
,
toggleQueryPollingByVisibility
,
reportToSentry
}
from
'
./utils
'
;
export
default
{
name
:
'
PipelineGraphWrapper
'
,
...
...
@@ -86,6 +86,7 @@ export default {
reportFailure
(
type
)
{
this
.
showAlert
=
true
;
this
.
failureType
=
type
;
reportToSentry
(
this
.
$options
.
name
,
this
.
failureType
);
},
},
};
...
...
app/assets/javascripts/pipelines/components/graph/linked_pipelines_column.vue
View file @
f0127089
...
...
@@ -3,7 +3,7 @@ import getPipelineDetails from '../../graphql/queries/get_pipeline_details.query
import
LinkedPipeline
from
'
./linked_pipeline.vue
'
;
import
{
LOAD_FAILURE
}
from
'
../../constants
'
;
import
{
UPSTREAM
}
from
'
./constants
'
;
import
{
unwrapPipelineData
,
toggleQueryPollingByVisibility
}
from
'
./utils
'
;
import
{
unwrapPipelineData
,
toggleQueryPollingByVisibility
,
reportToSentry
}
from
'
./utils
'
;
export
default
{
components
:
{
...
...
@@ -80,8 +80,13 @@ export default {
result
()
{
this
.
loadingPipelineId
=
null
;
},
error
()
{
error
(
err
,
_vm
,
_key
,
type
)
{
this
.
$emit
(
'
error
'
,
LOAD_FAILURE
);
reportToSentry
(
'
linked_pipelines_column
'
,
`error type:
${
LOAD_FAILURE
}
, error:
${
err
}
, apollo error type:
${
type
}
`
,
);
},
});
...
...
app/assets/javascripts/pipelines/components/graph/utils.js
View file @
f0127089
import
Visibility
from
'
visibilityjs
'
;
import
{
getIdFromGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
*
as
Sentry
from
'
~/sentry/wrapper
'
;
import
{
unwrapStagesWithNeeds
}
from
'
../unwrapping_utils
'
;
const
addMulti
=
(
mainPipelineProjectPath
,
linkedPipeline
)
=>
{
...
...
@@ -55,3 +56,10 @@ const toggleQueryPollingByVisibility = (queryRef, interval = 10000) => {
};
export
{
unwrapPipelineData
,
toggleQueryPollingByVisibility
};
export
const
reportToSentry
=
(
component
,
failureType
)
=>
{
Sentry
.
withScope
((
scope
)
=>
{
scope
.
setTag
(
'
component
'
,
component
);
Sentry
.
captureException
(
failureType
);
});
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment