-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixing Cohort project state (#98)
* fix: Fixing Cohort project state * fix: Set toolchain version to 1.73.0
- Loading branch information
1 parent
adf3f4c
commit a9636bf
Showing
15 changed files
with
73 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
import { PoolConfig } from "pg" | ||
|
||
const getParam = (param: string, defaultValue: string): string => { | ||
const v = process.env[param] | ||
if (v) return v | ||
return defaultValue | ||
} | ||
|
||
const DB_CONFIG: PoolConfig = { | ||
application_name: "cohort_banking_js", | ||
keepAlive: true, | ||
host: "127.0.0.1", | ||
port: 5432, | ||
database: "talos-sample-cohort-dev", | ||
user: "postgres", | ||
password: "admin", | ||
max: 100, | ||
min: 100, | ||
keepAlive: true, | ||
host: getParam("COHORT_PG_HOST", "127.0.0.1"), | ||
port: parseInt(getParam("COHORT_PG_PORT", "5432")), | ||
database: getParam("COHORT_PG_DATABASE", "talos-sample-cohort-dev"), | ||
user: getParam("COHORT_PG_USER", "postgres"), | ||
password: getParam("COHORT_PG_PASSWORD", "admin"), | ||
max: parseInt(getParam("COHORT_PG_POOL_SIZE", "100")), | ||
min: parseInt(getParam("COHORT_PG_POOL_SIZE", "100")), | ||
} | ||
|
||
export { DB_CONFIG } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
import { PoolConfig } from "pg" | ||
|
||
const getParam = (param: string, defaultValue: string): string => { | ||
const v = process.env[param] | ||
if (v) return v | ||
return defaultValue | ||
} | ||
|
||
const DB_CONFIG: PoolConfig = { | ||
application_name: "cohort_banking_replicator_js", | ||
keepAlive: true, | ||
host: "127.0.0.1", | ||
port: 5432, | ||
database: "talos-sample-cohort-dev", | ||
user: "postgres", | ||
password: "admin", | ||
max: 100, | ||
min: 100, | ||
keepAlive: true, | ||
host: getParam("COHORT_PG_HOST", "127.0.0.1"), | ||
port: parseInt(getParam("COHORT_PG_PORT", "5432")), | ||
database: getParam("COHORT_PG_DATABASE", "talos-sample-cohort-dev"), | ||
user: getParam("COHORT_PG_USER", "postgres"), | ||
password: getParam("COHORT_PG_PASSWORD", "admin"), | ||
max: parseInt(getParam("COHORT_PG_POOL_SIZE", "100")), | ||
min: parseInt(getParam("COHORT_PG_POOL_SIZE", "100")), | ||
} | ||
|
||
export { DB_CONFIG } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
import { JsKafkaConfig } from "@kindredgroup/cohort_sdk_client" | ||
|
||
const getParam = (param: string, defaultValue: string): string => { | ||
const v = process.env[param] | ||
if (v) return v | ||
return defaultValue | ||
} | ||
|
||
const kafkaConfig: JsKafkaConfig = { | ||
brokers: ["127.0.0.1:9092"], | ||
topic: "dev.ksp.certification", | ||
topic: getParam("KAFKA_TOPIC", "dev.ksp.certification"), | ||
clientId: "cohort-replicator-js", | ||
groupId: "cohort-replicator-js", | ||
producerSendTimeoutMs: 10, | ||
logLevel: "info", | ||
producerConfigOverrides: {}, | ||
consumerConfigOverrides: { "enable.auto.commit": "false" }, | ||
username: "", | ||
password: "", | ||
username: getParam("KAFKA_USERNAME", ""), | ||
password: getParam("KAFKA_PASSWORD", ""), | ||
} | ||
|
||
export { kafkaConfig as KAFKA_CONFIG } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[toolchain] | ||
channel = "stable" #1.68 | ||
channel = "1.73.0" #1.68 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!python3 | ||
#!/opt/homebrew/bin/python3 | ||
|
||
import sys | ||
import math | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters