Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 3 additions & 8 deletions src/activity-service/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: dev lint mypy-lint complex coverage pre-commit sort deploy destroy deps unit infra-tests integration e2e coverage-tests docs lint-docs build build-terraform terraform-deploy terraform-destroy format format-fix compare-openapi openapi pr watch update-deps
.PHONY: dev lint mypy-lint complex coverage sort deploy destroy deps unit infra-tests integration e2e coverage-tests docs lint-docs build build-terraform terraform-deploy terraform-destroy format format-fix compare-openapi openapi pr watch update-deps
Copy link

Copilot AI Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of pre-commit from the .PHONY list is inconsistent with its removal from other parts of the Makefile. Since pre-commit functionality has been removed throughout the file, this reference should also be removed for consistency.

Copilot uses AI. Check for mistakes.
PYTHON := ".venv/bin/python3"
.ONESHELL: # run all commands in a single shell, ensuring it runs within a local virtual env

Expand All @@ -8,8 +8,7 @@ LATEST_OPENAPI := openapi_latest.json


dev:
pip install --upgrade pip pre-commit poetry
pre-commit install
pip install --upgrade pip poetry
poetry config --local virtualenvs.in-project true
poetry install --no-root
poetry self add poetry-plugin-export
Expand All @@ -31,9 +30,6 @@ complex:
@echo "Running xenon"
poetry run xenon --max-absolute B --max-modules A --max-average A -e 'tests/*,.venv/*,cdk.out/*,node_modules/*' .

pre-commit:
poetry run pre-commit run -a --show-diff-on-failure

mypy-lint:
poetry run mypy --pretty activity_service cdk tests

Expand All @@ -57,7 +53,7 @@ build-terraform: build
integration-test:
poetry run pytest tests/integration --cov-config=.coveragerc --cov=activity_service --cov-report xml

pr: deps format pre-commit complex lint lint-docs unit deploy coverage-tests e2e openapi
pr: deps format complex lint lint-docs unit deploy coverage-tests e2e openapi

coverage-tests:
poetry run pytest tests/unit tests/integration --cov-config=.coveragerc --cov=activity_service --cov-report xml
Expand All @@ -79,7 +75,6 @@ watch:

update-deps:
poetry update
pre-commit autoupdate
npm i --package-lock-only

sam: build
Expand Down
6 changes: 3 additions & 3 deletions src/loyalty-point-service/lib/loyalty-api/loyaltyAcl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class LoyaltyACL extends Construct {
TABLE_NAME: props.loyaltyTable.tableName,
DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS: `{"${props.loyaltyTable.tableName}": ["PK"]}`,
DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT: "none",
DD_TRACE_PROPAGATION_STYLE_EXTRACT: "false",
// DD_TRACE_PROPAGATION_STYLE_EXTRACT: "false",
},
buildDef:
"./src/loyalty-api/adapters/buildHandleUserCreatedFunction.js",
Expand Down Expand Up @@ -100,7 +100,7 @@ export class LoyaltyACL extends Construct {
TABLE_NAME: props.loyaltyTable.tableName,
DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS: `{"${props.loyaltyTable.tableName}": ["PK"]}`,
DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT: "none",
DD_TRACE_PROPAGATION_STYLE_EXTRACT: "false",
//DD_TRACE_PROPAGATION_STYLE_EXTRACT: "false",
},
buildDef:
"./src/loyalty-api/adapters/buildHandleOrderCompletedFunction.js",
Expand All @@ -117,7 +117,7 @@ export class LoyaltyACL extends Construct {
);

const rule = props.serviceProps.addSubscriptionRule(this, `${props.serviceProps.getSharedProps().serviceName}-OrderCompleted`, {
detailType: ["orders.orderCompleted.v1"],
detailType: ["orders.orderCompleted.v1", "orders.orderCompleted.v2"],
source: [`${props.serviceProps.getSharedProps().environment}.orders`],
});
rule.addTarget(new SqsQueue(this.orderCompletedEventQueue));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class LoyaltyApiStack extends cdk.Stack {

const datadogConfiguration = new DatadogLambda(this, "Datadog", {
nodeLayerVersion: 127,
extensionLayerVersion: 85,
extensionLayerVersion: 87,
site: process.env.DD_SITE ?? "datadoghq.com",
apiKeySecret: ddApiKey,
service,
Expand Down
Loading
Loading