Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Management Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
0c303783
Commit
0c303783
authored
Jul 12, 2021
by
Walter D
Browse files
converted des context path to env variables
parent
69fc9d0e
Pipeline
#51355
passed with stages
in 11 minutes and 34 seconds
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
src/cloud/providers/ibm/config.ts
View file @
0c303783
...
...
@@ -54,6 +54,11 @@ export class IbmConfig extends Config {
// Logger
public
static
LOGGER_LEVEL
;
// DES context path
public
static
ENTITLEMENT_CONTEXT_PATH
:
string
;
public
static
COMPLIANCE_CONTEXT_PATH
:
string
;
public
static
STORAGE_CONTEXT_PATH
:
string
;
public
async
init
():
Promise
<
void
>
{
// data ecosystem host url and appkey
...
...
@@ -62,6 +67,11 @@ export class IbmConfig extends Config {
IbmConfig
.
DES_SERVICE_HOST_STORAGE
=
process
.
env
.
DES_SERVICE_HOST_STORAGE
;
IbmConfig
.
IMP_SERVICE_ACCOUNT_SIGNER
=
process
.
env
.
IMP_SERVICE_ACCOUNT_SIGNER
;
// DES service context path
IbmConfig
.
ENTITLEMENT_CONTEXT_PATH
=
process
.
env
.
ENTITLEMENT_CONTEXT_PATH
IbmConfig
.
COMPLIANCE_CONTEXT_PATH
=
process
.
env
.
COMPLIANCE_CONTEXT_PATH
IbmConfig
.
STORAGE_CONTEXT_PATH
=
process
.
env
.
STORAGE_CONTEXT_PATH
// DES_SERVICE_HOST replaced by new variable ENTITLEMENT_HOST
IbmConfig
.
ENTITLEMENT_HOST
=
process
.
env
.
ENTITLEMENT_HOST
;
IbmConfig
.
LEGAL_HOST
=
process
.
env
.
LEGAL_HOST
;
// DES_SERVICE_HOST replaced by new variable LEGAL_HOST
...
...
src/cloud/providers/ibm/dataecosystem.ts
View file @
0c303783
...
...
@@ -7,6 +7,7 @@ import {
IDESEntitlementGroupMembersModel
}
from
'
../../dataecosystem
'
;
import
{
logger
}
from
'
./logger
'
;
import
{
IbmConfig
}
from
'
./config
'
;
@
DataEcosystemCoreFactory
.
register
(
'
ibm
'
)
export
class
IbmDataEcosystemServices
extends
AbstractDataEcosystemCore
{
...
...
@@ -57,7 +58,7 @@ export class IbmDataEcosystemServices extends AbstractDataEcosystemCore {
public
getComplianceBaseUrlPath
():
string
{
logger
.
info
(
'
in IbmDataEcosystemServices.getComplianceBaseUrlPath. Returning..
'
);
return
'
/api/legal/v1
'
;
return
IbmConfig
.
COMPLIANCE_CONTEXT_PATH
;
};
public
getDataPartitionIDRestHeaderName
():
string
{
...
...
@@ -67,12 +68,12 @@ export class IbmDataEcosystemServices extends AbstractDataEcosystemCore {
public
getEntitlementBaseUrlPath
():
string
{
logger
.
info
(
'
in IbmDataEcosystemServices.getEntitlementBaseUrlPath. Returning..
'
);
return
'
/api/entitlements/v1
'
;
return
IbmConfig
.
ENTITLEMENT_CONTEXT_PATH
;
};
public
getStorageBaseUrlPath
():
string
{
logger
.
info
(
'
in IbmDataEcosystemServices.getStorageBaseUrlPath. Returning..
'
);
return
'
/api/storage/v2
'
;
return
IbmConfig
.
STORAGE_CONTEXT_PATH
;
};
public
getUserAddBodyRequest
(
userEmail
:
string
,
role
:
string
):
{
email
:
string
,
role
:
string
}
|
string
[]
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment