Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GÉANT Service Orchestrator GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator GUI
Merge requests
!35
Upgrade core
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Upgrade core
upgrade-core
into
develop
Overview
3
Commits
4
Pipelines
4
Changes
17
All threads resolved!
Hide all comments
Merged
Mohammad Torkashvand
requested to merge
upgrade-core
into
develop
6 months ago
Overview
3
Commits
4
Pipelines
4
Changes
17
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
develop
version 3
278e3dd0
6 months ago
version 2
dfa1fbee
6 months ago
version 1
30da4ae9
6 months ago
develop (base)
and
latest version
latest version
921e49bc
4 commits,
6 months ago
version 3
278e3dd0
3 commits,
6 months ago
version 2
dfa1fbee
2 commits,
6 months ago
version 1
30da4ae9
2 commits,
6 months ago
17 files
+
5549
−
6844
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
17
Search (e.g. *.vue) (Ctrl+P)
configuration/configuration.ts
+
36
−
35
Options
import
{
Environment
,
OrchestratorConfig
,
getEnvironmentVariables
,
}
from
'
@orchestrator-ui/orchestrator-ui-components
'
;
const
DEFAULT_GRAPHQL_CORE_ENDPOINT
=
'
http://localhost:8080/api/graphql
'
;
const
DEFAULT_ORCHESTRATOR_API_BASE_URL
=
'
http://localhost:8080/api
'
;
const
DEFAULT_ORCHESTRATOR_WEBSOCKET_URL
=
'
ws://localhost:8080
'
;
const
ENGINE_STATUS_ENDPOINT
=
'
/settings/status
'
;
const
PROCESS_STATUS_COUNTS_ENDPOINT
=
'
/processes/status-counts
'
;
const
PROCESSES_ENDPOINT
=
'
/processes
'
;
const
SUBSCRIPTION_PROCESSES_ENDPOINT
=
'
/processes/process-subscriptions-by-subscription-id
'
;
const
DEFAULT_WORKFLOW_INFORMATION_LINK_URL
=
'
http://localhost:8080
'
;
export
const
getInitialOrchestratorConfig
=
():
OrchestratorConfig
=>
{
const
orchestratorGraphqlBaseUrl
=
process
.
env
.
ORCHESTRATOR_GRAPHQL_HOST
&&
process
.
env
.
ORCHESTRATOR_GRAPHQL_PATH
?
`
${
process
.
env
.
ORCHESTRATOR_GRAPHQL_HOST
}${
process
.
env
.
ORCHESTRATOR_GRAPHQL_PATH
}
`
:
DEFAULT_GRAPHQL_CORE_ENDPOINT
;
const
{
USE_THEME_TOGGLE
,
ENVIRONMENT_NAME
,
ORCHESTRATOR_API_HOST
,
ORCHESTRATOR_API_PATH
,
ORCHESTRATOR_GRAPHQL_HOST
,
ORCHESTRATOR_GRAPHQL_PATH
,
ORCHESTRATOR_WEBSOCKET_URL
,
USE_WEB_SOCKETS
,
WORKFLOW_INFORMATION_LINK_URL
,
SHOW_WORKFLOW_INFORMATION_LINK
,
OAUTH2_ACTIVE
,
}
=
getEnvironmentVariables
([
'
USE_THEME_TOGGLE
'
,
'
ENVIRONMENT_NAME
'
,
'
ORCHESTRATOR_API_HOST
'
,
'
ORCHESTRATOR_API_PATH
'
,
'
ORCHESTRATOR_GRAPHQL_HOST
'
,
'
ORCHESTRATOR_GRAPHQL_PATH
'
,
'
ORCHESTRATOR_WEBSOCKET_URL
'
,
'
USE_WEB_SOCKETS
'
,
'
WORKFLOW_INFORMATION_LINK_URL
'
,
'
SHOW_WORKFLOW_INFORMATION_LINK
'
,
'
OAUTH2_ACTIVE
'
,
]);
const
orchestratorApiBaseUrl
=
process
.
env
.
ORCHESTRATOR_API_HOST
&&
process
.
env
.
ORCHESTRATOR_API_PATH
?
`
${
process
.
env
.
ORCHESTRATOR_API_HOST
}${
process
.
env
.
ORCHESTRATOR_API_PATH
}
`
:
DEFAULT_ORCHESTRATOR_API_BASE_URL
;
const
graphqlEndpointCore
=
`
${
ORCHESTRATOR_GRAPHQL_HOST
}${
ORCHESTRATOR_GRAPHQL_PATH
}
`
;
const
orchestratorApiBaseUrl
=
`
${
ORCHESTRATOR_API_HOST
}${
ORCHESTRATOR_API_PATH
}
`
;
return
{
orchestratorApiBaseUrl
,
engineStatusEndpoint
:
`
${
orchestratorApiBaseUrl
}${
ENGINE_STATUS_ENDPOINT
}
`
,
graphqlEndpointCore
:
orchestratorGraphqlBaseUrl
,
processesEndpoint
:
`
${
orchestratorApiBaseUrl
}${
PROCESSES_ENDPOINT
}
`
,
environmentName
:
process
.
env
.
ENVIRONMENT_NAME
??
Environment
.
DEVELOPMENT
,
subscriptionProcessesEndpoint
:
`
${
orchestratorApiBaseUrl
}${
SUBSCRIPTION_PROCESSES_ENDPOINT
}
`
,
orchestratorWebsocketUrl
:
process
.
env
.
ORCHESTRATOR_WEBSOCKET_URL
??
DEFAULT_ORCHESTRATOR_WEBSOCKET_URL
,
authActive
:
process
.
env
.
AUTH_ACTIVE
?.
toLowerCase
()
!==
'
false
'
,
useWebSockets
:
process
.
env
.
USE_WEB_SOCKETS
?.
toLowerCase
()
===
'
true
'
,
useThemeToggle
:
process
.
env
.
USE_THEME_TOGGLE
?.
toLowerCase
()
===
'
true
'
,
workflowInformationLinkUrl
:
process
.
env
.
WORKFLOW_INFORMATION_LINK_URL
??
DEFAULT_WORKFLOW_INFORMATION_LINK_URL
,
graphqlEndpointCore
,
environmentName
:
ENVIRONMENT_NAME
??
Environment
.
DEVELOPMENT
,
orchestratorWebsocketUrl
:
ORCHESTRATOR_WEBSOCKET_URL
,
authActive
:
OAUTH2_ACTIVE
?.
toLowerCase
()
!=
'
false
'
,
useWebSockets
:
USE_WEB_SOCKETS
?.
toLowerCase
()
===
'
true
'
,
useThemeToggle
:
USE_THEME_TOGGLE
?.
toLowerCase
()
===
'
true
'
,
workflowInformationLinkUrl
:
WORKFLOW_INFORMATION_LINK_URL
,
showWorkflowInformationLink
:
process
.
env
.
SHOW_WORKFLOW_INFORMATION_LINK
?.
toLowerCase
()
===
'
true
'
,
SHOW_WORKFLOW_INFORMATION_LINK
?.
toLowerCase
()
===
'
true
'
,
};
};
Loading