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
02852646
Commit
02852646
authored
Apr 13, 2021
by
Sarah Groff Hennigh-Palermo
Committed by
Andrew Fontaine
Apr 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change loading, remove async on new graph
parent
4fa2c3c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
app/assets/javascripts/pipelines/pipeline_details_bundle.js
app/assets/javascripts/pipelines/pipeline_details_bundle.js
+10
-15
No files found.
app/assets/javascripts/pipelines/pipeline_details_bundle.js
View file @
02852646
...
...
@@ -6,6 +6,8 @@ import PipelineGraphLegacy from './components/graph/graph_component_legacy.vue';
import
TestReports
from
'
./components/test_reports/test_reports.vue
'
;
import
GraphBundleMixin
from
'
./mixins/graph_pipeline_bundle_mixin
'
;
import
createDagApp
from
'
./pipeline_details_dag
'
;
import
{
createPipelinesDetailApp
}
from
'
./pipeline_details_graph
'
;
import
{
createPipelineHeaderApp
}
from
'
./pipeline_details_header
'
;
import
{
apolloProvider
}
from
'
./pipeline_shared_client
'
;
import
createTestReportsStore
from
'
./stores/test_reports
'
;
import
{
reportToSentry
}
from
'
./utils
'
;
...
...
@@ -80,20 +82,19 @@ const createTestDetails = () => {
};
export
default
async
function
initPipelineDetailsBundle
()
{
createTestDetails
();
createDagApp
(
apolloProvider
);
const
canShowNewPipelineDetails
=
gon
.
features
.
graphqlPipelineDetails
||
gon
.
features
.
graphqlPipelineDetailsUsers
;
const
{
dataset
}
=
document
.
querySelector
(
SELECTORS
.
PIPELINE_DETAILS
);
try
{
createPipelineHeaderApp
(
SELECTORS
.
PIPELINE_HEADER
,
apolloProvider
,
dataset
.
graphqlResourceEtag
);
}
catch
{
Flash
(
__
(
'
An error occurred while loading a section of this page.
'
));
}
if
(
canShowNewPipelineDetails
)
{
try
{
const
{
createPipelinesDetailApp
}
=
await
import
(
/* webpackChunkName: 'createPipelinesDetailApp' */
'
./pipeline_details_graph
'
);
createPipelinesDetailApp
(
SELECTORS
.
PIPELINE_GRAPH
,
apolloProvider
,
dataset
);
}
catch
{
Flash
(
__
(
'
An error occurred while loading the pipeline.
'
));
...
...
@@ -108,12 +109,6 @@ export default async function initPipelineDetailsBundle() {
createLegacyPipelinesDetailApp
(
mediator
);
}
try
{
const
{
createPipelineHeaderApp
}
=
await
import
(
/* webpackChunkName: 'createPipelineHeaderApp' */
'
./pipeline_details_header
'
);
createPipelineHeaderApp
(
SELECTORS
.
PIPELINE_HEADER
,
apolloProvider
,
dataset
.
graphqlResourceEtag
);
}
catch
{
Flash
(
__
(
'
An error occurred while loading a section of this page.
'
));
}
createDagApp
(
apolloProvider
);
createTestDetails
();
}
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