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
f1f88685
Commit
f1f88685
authored
4 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
more debug info
parent
f1d360ff
No related branches found
No related tags found
4 merge requests
!106
if stat fails, display the error instead of immediately refreshing...
,
!99
Dev
,
!61
Test
,
!59
Dev
Pipeline
#10416
passed
4 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/backend-selection.service.ts
+3
-1
3 additions, 1 deletion
src/app/backend-selection.service.ts
with
3 additions
and
1 deletion
src/app/backend-selection.service.ts
+
3
−
1
View file @
f1f88685
...
...
@@ -29,11 +29,12 @@ export class BackendSelectionService {
var
obs
:
Observable
<
any
>
[]
=
[];
let
headers
=
new
HttpHeaders
();
let
options
=
{
headers
:
headers
,
withCredentials
:
false
};
console
.
log
(
'
entering testAPIServers
'
);
for
(
let
server
of
servers
)
{
//obs.push( this.http.get(s.tes+'/sshagent',options).pipe(map((r) => {return {'server':s,'check':r}})));
obs
.
push
(
this
.
http
.
get
<
string
>
(
server
.
tes
+
'
/sshagent
'
,
options
).
pipe
(
timeout
(
2000
),
catchError
(
e
=>
{
return
of
(
null
)}),
catchError
(
e
=>
{
console
.
error
(
'
testing api server
'
,
server
);
console
.
error
(
e
);
return
of
(
null
)}),
map
((
v
)
=>
{
return
{
'
server
'
:
server
,
'
query
'
:
v
}}),
));
}
...
...
@@ -97,6 +98,7 @@ export class BackendSelectionService {
let
options
=
{
headers
:
headers
,
withCredentials
:
false
};
this
.
http
.
get
<
APIServer
[]
>
(
'
./assets/config/apiservers.json
'
,
options
).
pipe
(
switchMap
((
v
)
=>
this
.
testApiServers
(
v
)),
tap
((
v
)
=>
console
.
log
(
'
testapiservers observable fired
'
,
v
)),
map
((
list
,
idx
)
=>
(
<
any
[]
>
list
)
.
filter
(
function
(
v
)
{
return
v
.
query
!=
null
})
.
map
(
function
(
v
)
{
return
v
.
server
}))
// Note the two maps are not the same one is an rxjs observable map one is a list map
...
...
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