Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit 3bc8a8c

Browse files
authored
Merge pull request #31 from Virtual-Finland-Development/feat/use-codesets-service-in-job-codes
feat: use codesets service instead of built-in resources in job searc…
2 parents 22b734d + 01d93a8 commit 3bc8a8c

File tree

9 files changed

+71
-249447
lines changed

9 files changed

+71
-249447
lines changed

.env.local

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ PRH_MOCK_PRODUCTIZER_ENDPOINT=http://host.docker.internal:5059
77
USERS_API_ENDPOINT_ORIGIN=http://host.docker.internal:5001
88
AUTHENTICATION_GW_ENDPOINT_ORIGIN=https://virtualfinland-authgw.localhost
99
TMT_PRODUCTIZER_ENDPOINT_ORIGIN=http://host.docker.internal:5286
10-
JOBS_IN_FINLAND_PRODUCTIZER_ENDPOINT_ORIGIN=http://host.docker.internal:80
10+
JOBS_IN_FINLAND_PRODUCTIZER_ENDPOINT_ORIGIN=http://host.docker.internal:80
11+
CODESETS_BASE_URL=http://host.docker.internal:3166

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ lambda_http = "^0.7.1"
1616
futures = "^0.3.18"
1717
itertools = "^0.10.5"
1818
libmath = "^0.2.1"
19-
stopwatch = "^0.0.7"
19+
stopwatch = { git = "https://github.com/jwpjrdev/rust-stopwatch.git", branch="master" }
2020
utoipa = "3"
2121
tokio = { version = "^1.21.2", features = ["full"] }
2222

infra/builder.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FROM amazonlinux:2 as builder
99
ENV RUSTUP_HOME=/usr/local/rustup \
1010
CARGO_HOME=/usr/local/cargo \
1111
PATH=/usr/local/cargo/bin:$PATH \
12-
RUST_VERSION=1.64.0
12+
RUST_VERSION=1.68.0
1313

1414
RUN yum install -y gcc gcc-c++ openssl-devel zip; \
1515
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --profile minimal --default-toolchain $RUST_VERSION -y; \

infra/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
jobsInFinlandProductizerLambdaEndpoint = pulumi.StackReference(
4141
f"{organization}/jobs-in-finland-productizer/dev"
4242
).get_output("ApplicationUrl")
43-
43+
codesetsBaseUrl = pulumi.StackReference(f"{organization}/codesets/{stage}").get_output(
44+
"url"
45+
)
4446

4547
#
4648
# Lambda function
@@ -87,6 +89,7 @@
8789
"USERS_API_ENDPOINT_ORIGIN": usersApiLambdaEndpoint,
8890
"TMT_PRODUCTIZER_ENDPOINT_ORIGIN": tmtProductizerLambdaEndpoint,
8991
"JOBS_IN_FINLAND_PRODUCTIZER_ENDPOINT_ORIGIN": jobsInFinlandProductizerLambdaEndpoint,
92+
"CODESETS_BASE_URL": codesetsBaseUrl,
9093
"STAGE": stage,
9194
}
9295
),

src/lib/api_app/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ stopwatch = { workspace = true }
2121
utoipa = { workspace = true }
2222
tokio = { workspace = true }
2323
lazy_static = "1.4.0"
24+
memory-cache-rs = "0.2.0"
25+
mockito = "1.0.0"
2426

2527
app = { path = "./src/lib/app" }
2628
utils = { path = "./src/lib/utils" }

0 commit comments

Comments
 (0)