Commit 3bc01115 authored by Yunhua Koglin's avatar Yunhua Koglin Committed by Rucha Deshpande
Browse files

fix table name prefix

commit b08276eb 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Thu Jan 21 2021 14:08:59 GMT-0600 (Central Standard Time) 

    fix the table name


commit 3e498ecf 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Thu Jan 21 2021 14:00:37 GMT-0600 (Central Standard Time) 

    add ENVIROMENT env


commit a0794cf7 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Wed Jan 20 2021 16:59:17 GMT-0600 (Central Standard Time) 

    add entry for app table, fix id for dataset


commit 7013750b 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Wed Jan 20 2021 14:56:20 GMT-0600 (Central Standard Time) 

    fix Journal, JournalTransaction and JournalQuery in dynamodb


commit a916a370 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Wed Jan 20 2021 14:54:11 GMT-0600 (Central Standard Time) 

    Merge branch 'dev' of codecommit://os-seismic-store-service into kogliny


commit bd12e513 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Sun Jan 17 2021 23:18:41 GMT-0600 (Central Standard Time) 

    Revert "update packages with aws-sdk"

This reverts commit fa7ba482aba74830daee7935a46daaf2cbdc3d33.


commit 64740dd9 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Sun Jan 17 2021 22:37:08 GMT-0600 (Central Standard Time) 

    add storage and dynamodb


commit 739900b4 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Fri Jan 15 2021 16:16:21 GMT-0600 (Central Standard Time) 

    Merge branch 'dev' of codecommit://os-seismic-store-service into kogliny


commit 5f969e3a 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Fri Jan 15 2021 15:47:49 GMT-0600 (Central Standard Time) 

    Merge branch 'dev' of codecommit://os-seismic-store-service into kogliny


commit 0ac28b3b 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Wed Jan 13 2021 11:35:28 GMT-0600 (Central Standard Time) 

    Merge branch 'dev' of codecommit://os-seismic-store-service into kogliny


commit fa7ba482 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Tue Jan 12 2021 09:26:08 GMT-0600 (Central Standard Time) 

    update packages with aws-sdk
parent 2f7455bc
......@@ -5,7 +5,8 @@ CLOUDPROVIDER= "aws"
PORT= 5000
API_BASE_PATH=/api/seismic-store/v3
SERVICE_ENV=
SERVICE_ENV=evd
ENVIRONMENT=
IMP_SERVICE_ACCOUNT_SIGNER=
AWS_REGION=
......
......@@ -19,6 +19,7 @@ export class AWSConfig extends Config {
public static AWS_EP_OAUTH2: string;
public static AWS_EP_IAM: string;
public static AWS_REGION: string;
public static AWS_ENVIRONMENT: string;
// max len for a group name in DE
public static DES_GROUP_CHAR_LIMIT = 256;
......@@ -29,6 +30,7 @@ export class AWSConfig extends Config {
AWSConfig.AWS_EP_OAUTH2 = process.env.WS_EP_OAUTH2;
AWSConfig.AWS_EP_IAM = process.env.AWS_EP_IAM;
AWSConfig.AWS_REGION = process.env.AWS_REGION;
AWSConfig.AWS_ENVIRONMENT = process.env.ENVIRONMENT;
Config.initServiceConfiguration({
SERVICE_ENV: process.env.SERVICE_ENV,
......
......@@ -147,7 +147,8 @@ export class AWSDynamoDbDAO extends AbstractJournal {
if (table_kind === AWSConfig.APPS_KIND) {
partitionKey = strs[strs.length - 1] + ':' + name; //tenant:subprojet for id
}
const table_name = AWSConfig.SERVICE_ENV + '-' + 'SeismicStore.' + specs.path[0];
const table_name = AWSConfig.AWS_ENVIRONMENT + '-' + 'SeismicStore.' + specs.path[0];
return { table_name, name, table_kind, partitionKey };
}
......@@ -369,8 +370,7 @@ export class AWSDynamoDbQuery implements IJournalQueryModel {
delete this.queryStatement.ExpressionAttributeValues;
}
this.queryStatement.TableName = AWSConfig.SERVICE_ENV + '-SeismicStore.' + tableName;
this.queryStatement.TableName = AWSConfig.AWS_ENVIRONMENT + '-SeismicStore.' + tableName;
return this.queryStatement;
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment