Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [PIDM-133] Updated openapi ecommerce helpdesk service and mongo indexes #2777

Merged
merged 15 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,36 @@
"endDate"
]
},
"DeadLetterExcludeStatuses": {
"type": "object",
"properties": {
"ecommerceStatuses": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of eCommerce statuses to exclude",
"example": [
"NOTIFIED_OK"
]
},
"npgStatuses": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of NPG statuses to exclude",
"example": [
"DECLINED",
"CANCELLED"
]
}
},
"required": [
"ecommerceStatuses",
"npgStatuses"
]
},
"SearchPgsStatusResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2147,6 +2177,9 @@
},
"timeRange": {
"$ref": "#/components/schemas/DeadLetterSearchDateTimeRange"
},
"excludeStatuses": {
"$ref": "#/components/schemas/DeadLetterExcludeStatuses"
}
},
"required": [
Expand Down Expand Up @@ -2242,4 +2275,4 @@
}
}
}
}
}
12 changes: 10 additions & 2 deletions src/domains/ecommerce-common/03_cosmosdb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module "cosmosdb_account_mongodb" {
offer_type = var.cosmos_mongo_db_params.offer_type
kind = var.cosmos_mongo_db_params.kind
capabilities = var.cosmos_mongo_db_params.capabilities
#version commented out since using 6.0 version here raise the following error
#version commented out since using 6.0 version here raise the following error
# `expected mongo_server_version to be one of [3.2 3.6 4.0 4.2], got 6.0``
# Leaving mongo_server_version parameter here causes plan diff for each plan
# so it was simply commented out so that actual version is ignored
Expand Down Expand Up @@ -159,6 +159,14 @@ locals {
{
keys = ["insertionDate"]
unique = false
},
{
keys = ["transactionInfo.eCommerceStatus"]
unique = false
},
{
keys = ["transactionInfo.details.operationResult"]
unique = false
}
]
shard_key = "_id",
Expand Down Expand Up @@ -304,4 +312,4 @@ resource "azurerm_monitor_metric_alert" "cosmos_db_normalized_ru_exceeded" {
}

tags = var.tags
}
}
Loading