Commit c1130115 authored by Aalekh Jain's avatar Aalekh Jain Committed by Daniel Scholl
Browse files

Added cosmos collection for sharing data across tasks in workflow (V2)

parent ac5eef6f
......@@ -7,6 +7,7 @@ __Bug Fixes__
__Infra Changes__
- [Arch 123 - Obsolete Cosmos DB Tables and add new v2 tables](https://community.opengroup.org/osdu/platform/deployment-and-operations/infra-azure-provisioning/-/issues/123)
- [Issue 127](https://community.opengroup.org/osdu/platform/deployment-and-operations/infra-azure-provisioning/-/issues/127)
- [Feature 126 - Add support to pass JAVA_OPTS to java command in DockerFile](https://community.opengroup.org/osdu/platform/deployment-and-operations/infra-azure-provisioning/-/issues/126)
- [Feature 125 - Enable Manifest Ingestion](https://community.opengroup.org/osdu/platform/deployment-and-operations/infra-azure-provisioning/-/issues/125)
......
......@@ -34,4 +34,144 @@ cosmos_databases = [
}
]
blob_cors_rule = [
{
allowed_headers = ["*"]
allowed_origins = ["https://osdu-demo.contoso.org"]
allowed_methods = ["GET","HEAD","POST","PUT","DELETE"]
exposed_headers = ["*"]
max_age_in_seconds = 3600
}
]
cosmos_sql_collections = [
{
name = "LegalTag"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "StorageRecord"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "StorageSchema"
database_name = "osdu-db"
partition_key_path = "/kind"
partition_key_version = null
},
{
name = "TenantInfo"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "UserInfo"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "Authority"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "EntityType"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "SchemaInfo"
database_name = "osdu-db"
partition_key_path = "/partitionId"
partition_key_version = null
},
{
name = "Source"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "RegisterAction"
database_name = "osdu-db"
partition_key_path = "/dataPartitionId"
partition_key_version = null
},
{
name = "RegisterDdms"
database_name = "osdu-db"
partition_key_path = "/dataPartitionId"
partition_key_version = null
},
{
name = "RegisterSubscription"
database_name = "osdu-db"
partition_key_path = "/dataPartitionId"
partition_key_version = null
},
{
name = "IngestionStrategy"
database_name = "osdu-db"
partition_key_path = "/workflowType"
partition_key_version = null
},
{
name = "RelationshipStatus"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "MappingInfo"
database_name = "osdu-db"
partition_key_path = "/sourceSchemaKind"
partition_key_version = null
},
{
name = "FileLocationEntity"
database_name = "osdu-db"
partition_key_path = "/id"
partition_key_version = null
},
{
name = "WorkflowCustomOperatorInfo"
database_name = "osdu-db"
partition_key_path = "/operatorId"
partition_key_version = null
},
{
name = "WorkflowV2"
database_name = "osdu-db"
partition_key_path = "/partitionKey"
partition_key_version = 2
},
{
name = "WorkflowRunV2"
database_name = "osdu-db"
partition_key_path = "/partitionKey"
partition_key_version = 2
},
{
name = "WorkflowCustomOperatorV2"
database_name = "osdu-db"
partition_key_path = "/partitionKey"
partition_key_version = 2
},
{
name = "WorkflowTasksSharingInfoV2"
database_name = "osdu-db"
partition_key_path = "/partitionKey"
partition_key_version = 2
},
]
*/
......@@ -54,6 +54,14 @@ cosmos_databases = [
throughput = 12000
}
]
## Currently a strategy is in place for a period of time to not remove old collections no longer in use.
### Obsolete Tables
# - Workflow
# - WorkflowStatus
# - WorkflowRun
# - WorkflowTasksSharingInfo
## See override.tfvars for Greenfield DB setup.
cosmos_sql_collections = [
{
name = "LegalTag"
......@@ -199,7 +207,13 @@ cosmos_sql_collections = [
database_name = "osdu-db"
partition_key_path = "/partitionKey"
partition_key_version = 2
}
},
{
name = "WorkflowTasksSharingInfoV2"
database_name = "osdu-db"
partition_key_path = "/partitionKey"
partition_key_version = 2
},
]
......
......@@ -49,7 +49,7 @@ func TestTemplate(t *testing.T) {
TfOptions: tfOptions,
Workspace: workspace,
PlanAssertions: nil,
ExpectedResourceCount: 105,
ExpectedResourceCount: 106,
ExpectedResourceAttributeValues: resourceDescription,
}
......
Markdown is supported
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