Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
strudelv2_spa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
strudelv2_spa
Commits
e5ce8c2e
Commit
e5ce8c2e
authored
4 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
remove some unnecessary console.log statements
parent
6a1c5009
No related branches found
No related tags found
4 merge requests
!106
if stat fails, display the error instead of immediately refreshing...
,
!99
Dev
,
!91
Test
,
!90
Dev
Pipeline
#15964
passed
4 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/jobs.service.ts
+0
-2
0 additions, 2 deletions
src/app/jobs.service.ts
src/app/tes.service.ts
+1
-1
1 addition, 1 deletion
src/app/tes.service.ts
with
1 addition
and
3 deletions
src/app/jobs.service.ts
+
0
−
2
View file @
e5ce8c2e
...
...
@@ -34,14 +34,12 @@ export class JobsService {
public
refreshJobs
()
{
if
(
this
.
id
!==
undefined
&&
this
.
id
!==
null
)
{
var
query$
:
Observable
<
Job
[]
>
;
console
.
log
(
'
refreshJobs
'
);
query$
=
this
.
tes
.
runCommand
(
this
.
id
,
this
.
id
.
site
.
statcmd
)
//query$.subscribe((qjobs) => this.jobs$.next(<Job[]>qjobs),
// (error) => this.getJobsError(error,this.id))
query$
.
pipe
(
repeatWhen
(
x
=>
x
.
pipe
(
delay
(
5000
))),
catchError
((
err
)
=>
this
.
getJobsErrorHandler
(
err
,
this
.
id
.
site
.
statcmd
,
this
.
id
)),
tap
((
_
)
=>
console
.
log
(
'
in refreshJobs
'
+
Date
())),
).
subscribe
((
qjobs
)
=>
this
.
jobs$
.
next
(
<
Job
[]
>
qjobs
),
(
error
)
=>
this
.
getJobsError
(
error
,
this
.
id
))
}
...
...
This diff is collapsed.
Click to expand it.
src/app/tes.service.ts
+
1
−
1
View file @
e5ce8c2e
...
...
@@ -105,8 +105,8 @@ public getCachetIncidents(identity: Identity) {
let
headers
=
new
HttpHeaders
();
let
options
=
{
headers
:
headers
,
withCredentials
:
false
};
let
params
=
new
URLSearchParams
();
if
(
identity
.
site
.
cacheturis
===
undefined
||
identity
.
site
.
cacheturis
.
length
==
0
)
{
console
.
log
(
'
no uris
'
);
identity
.
systemalerts
.
next
([]);
return
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment