Skip to content

Commit 4aad3b5

Browse files
authored
Keep s3 current (#1060)
* Keep s3 current, and reduce s3 costs * Be more agressive now that we have 30 day deploys * Removes the agressive deleting * Okay expire current * Cleanup deploys * Fix and update
1 parent 1336c83 commit 4aad3b5

File tree

8 files changed

+2127
-1760
lines changed

8 files changed

+2127
-1760
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ name: deploy
22

33
on:
44
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 1 * *' # Runs at 00:00 on the first day of every month
57
push:
68
branches:
79
- main
8-
- dashboard-v4
910

1011
jobs:
1112
deploy:

common/api/datadashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const fetchAggregateData = async (
6161
throw new Error('network request failed');
6262
}
6363
const responseJson = await response.json();
64-
return name === QueryNameKeys.traveltimes ? responseJson : { by_date: responseJson };
64+
return name === QueryNameKeys.traveltimes ? responseJson : { by_date: responseJson, by_time: [] };
6565
};
6666

6767
// Object to contain name of each aggregate query and the parameters/keys it takes.

package-lock.json

Lines changed: 1743 additions & 1401 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
"@headlessui/react": "^1.7.19",
4848
"@heroicons/react": "^2.2.0",
4949
"@svgr/webpack": "^8.1.0",
50-
"@tanstack/react-query": "^5.64.2",
51-
"@tanstack/react-query-devtools": "^5.64.2",
50+
"@tanstack/react-query": "^5.76.2",
51+
"@tanstack/react-query-devtools": "^5.76.2",
5252
"@tippyjs/react": "^4.2.6",
5353
"@transitmatters/stripmap": "^0.1.13",
5454
"bezier-js": "^6.1.4",
55-
"chart.js": "4.4.7",
55+
"chart.js": "4.4.9",
5656
"chartjs-adapter-date-fns": "^3.0.0",
5757
"chartjs-color": "^2.4.1",
5858
"chartjs-plugin-annotation": "^3.1.0",
@@ -68,7 +68,7 @@
6868
"flowbite-react": "^0.10.2",
6969
"lodash": "^4.17.21",
7070
"mini-css-extract-plugin": "^2.9.2",
71-
"next": "15.1.6",
71+
"next": "15.1.8",
7272
"next-goatcounter": "^1.0.6",
7373
"oss-attribution-generator": "^1.7.1",
7474
"patternomaly": "^1.3.2",
@@ -110,22 +110,22 @@
110110
"autoprefixer": "^10.4.20",
111111
"babel-plugin-inline-react-svg": "^2.0.2",
112112
"eslint": "^8.57.0",
113-
"eslint-config-next": "15.1.6",
114-
"eslint-config-prettier": "^10.1.2",
113+
"eslint-config-next": "15.1.8",
114+
"eslint-config-prettier": "^10.1.5",
115115
"eslint-plugin-import": "^2.31.0",
116-
"eslint-plugin-prettier": "^5.2.6",
117-
"eslint-plugin-react": "^7.37.2",
118-
"eslint-plugin-react-hooks": "^5.0.0",
116+
"eslint-plugin-prettier": "^5.4.0",
117+
"eslint-plugin-react": "^7.37.5",
118+
"eslint-plugin-react-hooks": "^5.2.0",
119119
"eslint-plugin-storybook": "^0.11.1",
120120
"eslint-plugin-unicorn": "^56.0.1",
121121
"eslint-plugin-unused-imports": "^4.1.4",
122-
"postcss": "^8.5.1",
122+
"postcss": "^8.5.3",
123123
"prettier": "^3.5.3",
124124
"prettier-plugin-tailwindcss": "^0.6.11",
125125
"serve": "^14.2.4",
126126
"storybook": "^8.5.1",
127127
"tailwindcss": "^3.4.15",
128-
"typescript": "~5.7.3"
128+
"typescript": "~5.8.3"
129129
},
130130
"engines": {
131131
"node": ">=20.12.0",

server/.chalice/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"minimum_compression_size": 1000,
66
"lambda_timeout": 30,
77
"lambda_memory_size": 1024,
8-
"layers": ["arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Extension:76"],
8+
"layers": ["arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Extension:78"],
99
"stages": {
1010
"production": {
1111
"api_gateway_stage": "production",

server/cloudformation.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,31 @@
112112
"IndexDocument": "index.html",
113113
"ErrorDocument": "404.html"
114114
},
115+
"VersioningConfiguration": {
116+
"Status": "Enabled"
117+
},
118+
"LifecycleConfiguration": {
119+
"Rules": [
120+
{
121+
"Id": "ArchiveAndDeleteNoncurrentVersions",
122+
"Status": "Enabled",
123+
"NoncurrentVersionTransitions": [
124+
{
125+
"StorageClass": "INTELLIGENT_TIERING",
126+
"TransitionInDays": 45
127+
}
128+
],
129+
"NoncurrentVersionExpiration": {
130+
"NoncurrentDays": 60
131+
}
132+
},
133+
{
134+
"Id": "ExpireOldCurrentObjects",
135+
"Status": "Enabled",
136+
"ExpirationInDays": 90
137+
}
138+
]
139+
},
115140
"Tags": [
116141
{
117142
"Key": "service",

server/poetry.lock

Lines changed: 339 additions & 340 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ package-mode = false
1010
python = "~3.12"
1111
json-api-doc = "0.15.0"
1212
requests = "^2.32.3"
13-
pytz = "2024.2"
14-
boto3 = "~1.35.10"
13+
pytz = "2025.2"
14+
boto3 = "~1.38.22"
1515
numpy = "1.26.4"
1616
pandas = "~2.2.3"
17-
datadog_lambda = "~6.106.0"
17+
datadog_lambda = "~6.109.0"
1818
dynamodb-json = "^1.4.2"
1919
chalice-spec = "^0.7.0"
20-
pydantic = "^2.11.1"
21-
apispec = "^6.8.1"
20+
pydantic = "^2.11.5"
21+
apispec = "^6.8.2"
2222

2323
[tool.poetry.group.dev.dependencies]
2424
pip = ">=24.0"

0 commit comments

Comments
 (0)