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
74b2d92d
Commit
74b2d92d
authored
Jan 28, 2021
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update job log getters logic
parent
a9b391ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
app/assets/javascripts/jobs/store/getters.js
app/assets/javascripts/jobs/store/getters.js
+4
-6
No files found.
app/assets/javascripts/jobs/store/getters.js
View file @
74b2d92d
import
{
isEmpty
,
isString
}
from
'
lodash
'
;
import
{
isEmpty
,
isString
}
from
'
lodash
'
;
import
{
isScrolledToBottom
}
from
'
~/lib/utils/scroll_utils
'
;
import
{
isScrolledToBottom
}
from
'
~/lib/utils/scroll_utils
'
;
export
const
headerTime
=
(
state
)
=>
(
state
.
job
.
started
?
state
.
job
.
started
:
state
.
job
.
created_at
)
;
export
const
headerTime
=
(
state
)
=>
state
.
job
.
started
??
state
.
job
.
created_at
;
export
const
hasForwardDeploymentFailure
=
(
state
)
=>
export
const
hasForwardDeploymentFailure
=
(
state
)
=>
state
?.
job
?.
failure_reason
===
'
forward_deployment_failure
'
;
state
?.
job
?.
failure_reason
===
'
forward_deployment_failure
'
;
...
@@ -28,11 +28,9 @@ export const hasEnvironment = (state) => !isEmpty(state.job.deployment_status);
...
@@ -28,11 +28,9 @@ export const hasEnvironment = (state) => !isEmpty(state.job.deployment_status);
export
const
hasTrace
=
(
state
)
=>
export
const
hasTrace
=
(
state
)
=>
state
.
job
.
has_trace
||
(
!
isEmpty
(
state
.
job
.
status
)
&&
state
.
job
.
status
.
group
===
'
running
'
);
state
.
job
.
has_trace
||
(
!
isEmpty
(
state
.
job
.
status
)
&&
state
.
job
.
status
.
group
===
'
running
'
);
export
const
emptyStateIllustration
=
(
state
)
=>
export
const
emptyStateIllustration
=
(
state
)
=>
state
?.
job
?.
status
?.
illustration
||
{};
(
state
.
job
&&
state
.
job
.
status
&&
state
.
job
.
status
.
illustration
)
||
{};
export
const
emptyStateAction
=
(
state
)
=>
export
const
emptyStateAction
=
(
state
)
=>
state
?.
job
?.
status
?.
action
||
null
;
(
state
.
job
&&
state
.
job
.
status
&&
state
.
job
.
status
.
action
)
||
null
;
/**
/**
* Shared runners limit is only rendered when
* Shared runners limit is only rendered when
...
@@ -48,4 +46,4 @@ export const shouldRenderSharedRunnerLimitWarning = (state) =>
...
@@ -48,4 +46,4 @@ export const shouldRenderSharedRunnerLimitWarning = (state) =>
export
const
isScrollingDown
=
(
state
)
=>
isScrolledToBottom
()
&&
!
state
.
isTraceComplete
;
export
const
isScrollingDown
=
(
state
)
=>
isScrolledToBottom
()
&&
!
state
.
isTraceComplete
;
export
const
hasRunnersForProject
=
(
state
)
=>
export
const
hasRunnersForProject
=
(
state
)
=>
state
.
job
.
runners
.
available
&&
!
state
.
job
.
runners
.
online
;
state
?.
job
?.
runners
?.
available
&&
!
state
?.
job
?.
runners
?
.
online
;
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