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
f1d360ff
Commit
f1d360ff
authored
4 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
more debugging points
parent
786cd63f
No related branches found
Branches containing commit
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
#10414
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/authorisation.service.ts
+4
-0
4 additions, 0 deletions
src/app/authorisation.service.ts
src/app/backend-selection.service.ts
+2
-0
2 additions, 0 deletions
src/app/backend-selection.service.ts
with
6 additions
and
0 deletions
src/app/authorisation.service.ts
+
4
−
0
View file @
f1d360ff
...
@@ -188,6 +188,7 @@ public getKeys(id?: Identity) {
...
@@ -188,6 +188,7 @@ public getKeys(id?: Identity) {
/* Query ssh agent running on the apiserver
/* Query ssh agent running on the apiserver
* Tap the even stream to update the notifications
* Tap the even stream to update the notifications
*/
*/
console
.
log
(
'
updateAgentContents called
'
);
if
(
apiserver
===
undefined
)
{
if
(
apiserver
===
undefined
)
{
if
(
this
.
backendURI
==
null
)
{
if
(
this
.
backendURI
==
null
)
{
throwError
(
'
no backend to query
'
);
throwError
(
'
no backend to query
'
);
...
@@ -195,6 +196,7 @@ public getKeys(id?: Identity) {
...
@@ -195,6 +196,7 @@ public getKeys(id?: Identity) {
apiserver
=
this
.
backendURI
apiserver
=
this
.
backendURI
}
}
}
}
console
.
log
(
'
updateAgentContents api server
'
,
apiserver
);
let
headers
=
new
HttpHeaders
();
let
headers
=
new
HttpHeaders
();
let
options
=
{
headers
:
headers
,
withCredentials
:
true
};
let
options
=
{
headers
:
headers
,
withCredentials
:
true
};
...
@@ -212,8 +214,10 @@ public getKeys(id?: Identity) {
...
@@ -212,8 +214,10 @@ public getKeys(id?: Identity) {
}
else
{
}
else
{
this
.
notifications
.
notify
(
""
);
this
.
notifications
.
notify
(
""
);
};
};
console
.
log
(
'
updating agent contents
'
);
this
.
agentContents
.
next
(
resp
)
this
.
agentContents
.
next
(
resp
)
}),
}),
catchError
((
e
)
=>
{
console
.
error
(
'
updateAGentContents error
'
,
e
)
;
return
of
([])})
//tap((_) => this.notifications.notify(""))
//tap((_) => this.notifications.notify(""))
)
)
return
agentpipe$
return
agentpipe$
...
...
This diff is collapsed.
Click to expand it.
src/app/backend-selection.service.ts
+
2
−
0
View file @
f1d360ff
...
@@ -20,6 +20,8 @@ export class BackendSelectionService {
...
@@ -20,6 +20,8 @@ export class BackendSelectionService {
this
.
localapi
=
new
BehaviorSubject
(
false
);
this
.
localapi
=
new
BehaviorSubject
(
false
);
this
.
initApiServer
();
this
.
initApiServer
();
this
.
getAPIServers
();
this
.
getAPIServers
();
this
.
apiserver
.
subscribe
((
v
)
=>
console
.
log
(
'
apiserver change
'
,
v
));
this
.
apiservers
.
subscribe
((
v
)
=>
console
.
log
(
'
apiservers change
'
,
v
));
}
}
...
...
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