@@ -101,9 +101,7 @@ class Config: # pylint: disable=too-few-public-methods
101
101
if DB_UNIX_SOCKET := os .getenv ("DATABASE_UNIX_SOCKET" , None ):
102
102
SQLALCHEMY_DATABASE_URI = f"postgresql+psycopg2://{ DB_USER } :{ DB_PASSWORD } @/{ DB_NAME } ?host={ DB_UNIX_SOCKET } "
103
103
else :
104
- SQLALCHEMY_DATABASE_URI = (
105
- f"postgresql://{ DB_USER } :{ DB_PASSWORD } @{ DB_HOST } :{ DB_PORT } /{ DB_NAME } "
106
- )
104
+ SQLALCHEMY_DATABASE_URI = f"postgresql://{ DB_USER } :{ DB_PASSWORD } @{ DB_HOST } :{ DB_PORT } /{ DB_NAME } "
107
105
108
106
# Connection pool settings
109
107
DB_MIN_POOL_SIZE = os .getenv ("DATABASE_MIN_POOL_SIZE" , "2" )
@@ -142,9 +140,7 @@ class Config: # pylint: disable=too-few-public-methods
142
140
# ACCOUNT_SVC_TIMEOUT = os.g
143
141
144
142
# DB Query limits on result set sizes
145
- ACCOUNT_REGISTRATIONS_MAX_RESULTS = os .getenv (
146
- "ACCOUNT_REGISTRATIONS_MAX_RESULTS" , "100"
147
- )
143
+ ACCOUNT_REGISTRATIONS_MAX_RESULTS = os .getenv ("ACCOUNT_REGISTRATIONS_MAX_RESULTS" , "100" )
148
144
ACCOUNT_DRAFTS_MAX_RESULTS = os .getenv ("ACCOUNT_DRAFTS_MAX_RESULTS" , "1000" )
149
145
ACCOUNT_SEARCH_MAX_RESULTS = os .getenv ("ACCOUNT_SEARCH_MAX_RESULTS" , "1000" )
150
146
@@ -159,45 +155,31 @@ class Config: # pylint: disable=too-few-public-methods
159
155
160
156
# Google APIs and cloud storage
161
157
GOOGLE_DEFAULT_SA = os .getenv ("GOOGLE_DEFAULT_SA" )
162
- GCP_CS_SA_SCOPES = os .getenv (
163
- "GCP_CS_SA_SCOPES" , "https://www.googleapis.com/auth/cloud-platform"
164
- )
158
+ GCP_CS_SA_SCOPES = os .getenv ("GCP_CS_SA_SCOPES" , "https://www.googleapis.com/auth/cloud-platform" )
165
159
# Storage of search reports
166
160
GCP_CS_BUCKET_ID = os .getenv ("GCP_CS_BUCKET_ID" , "mhr_search_result_report_dev" )
167
161
# Storage of registration verification reports
168
- GCP_CS_BUCKET_ID_REGISTRATION = os .getenv (
169
- "GCP_CS_BUCKET_ID_REGISTRATION" , "mhr_registration_report_dev"
170
- )
162
+ GCP_CS_BUCKET_ID_REGISTRATION = os .getenv ("GCP_CS_BUCKET_ID_REGISTRATION" , "mhr_registration_report_dev" )
171
163
# Storage of batch reports
172
164
GCP_CS_BUCKET_ID_BATCH = os .getenv ("GCP_CS_BUCKET_ID_BATCH" , "mhr_batch_report_dev" )
173
165
# Storage of service agreement terms reports
174
- GCP_CS_BUCKET_ID_TERMS = os .getenv (
175
- "GCP_CS_BUCKET_ID_TERMS" , "mhr_service_agreement_dev"
176
- )
166
+ GCP_CS_BUCKET_ID_TERMS = os .getenv ("GCP_CS_BUCKET_ID_TERMS" , "mhr_service_agreement_dev" )
177
167
178
168
# Pub/Sub
179
169
GCP_PS_PROJECT_ID = os .getenv ("DEPLOYMENT_PROJECT" , "eogruh-dev" )
180
- GCP_PS_SEARCH_REPORT_TOPIC = os .getenv (
181
- "GCP_PS_SEARCH_REPORT_TOPIC" , "mhr-search-report"
182
- )
183
- GCP_PS_REGISTRATION_REPORT_TOPIC = os .getenv (
184
- "GCP_PS_REGISTRATION_REPORT_TOPIC" , "mhr-registration-report"
185
- )
170
+ GCP_PS_SEARCH_REPORT_TOPIC = os .getenv ("GCP_PS_SEARCH_REPORT_TOPIC" , "mhr-search-report" )
171
+ GCP_PS_REGISTRATION_REPORT_TOPIC = os .getenv ("GCP_PS_REGISTRATION_REPORT_TOPIC" , "mhr-registration-report" )
186
172
187
173
GATEWAY_URL = os .getenv ("GATEWAY_URL" , "https://bcregistry-dev.apigee.net" )
188
- GATEWAY_LTSA_URL = os .getenv (
189
- "GATEWAY_LTSA_URL" , "https://bcregistry-test.apigee.net/ltsa/api/v1"
190
- )
174
+ GATEWAY_LTSA_URL = os .getenv ("GATEWAY_LTSA_URL" , "https://bcregistry-test.apigee.net/ltsa/api/v1" )
191
175
SUBSCRIPTION_API_KEY = os .getenv ("SUBSCRIPTION_API_KEY" )
192
176
GATEWAY_API_KEY = os .getenv ("GATEWAY_API_KEY" )
193
177
194
178
# Search results data size threshold for real time reports.
195
179
MAX_SIZE_SEARCH_RT : int = int (os .getenv ("MAX_SIZE_SEARCH_RT" , "200000" ))
196
180
# Default 2, set to 1 to revert to original report api client
197
181
REPORT_VERSION = os .getenv ("REPORT_VERSION" , "2" )
198
- REPORT_API_AUDIENCE = os .getenv (
199
- "REPORT_API_AUDIENCE" , "https://gotenberg-p56lvhvsqa-nn.a.run.app"
200
- )
182
+ REPORT_API_AUDIENCE = os .getenv ("REPORT_API_AUDIENCE" , "https://gotenberg-p56lvhvsqa-nn.a.run.app" )
201
183
202
184
NOTIFY_MAN_REG_CONFIG = os .getenv ("NOTIFY_MAN_REG_CONFIG" )
203
185
NOTIFY_LOCATION_CONFIG = os .getenv ("NOTIFY_LOCATION_CONFIG" )
@@ -250,9 +232,7 @@ class UnitTestingConfig(Config): # pylint: disable=too-few-public-methods
250
232
DB_HOST = os .getenv ("DATABASE_TEST_HOST" , "" )
251
233
DB_PORT = os .getenv ("DATABASE_TEST_PORT" , "5432" )
252
234
# SQLALCHEMY_DATABASE_URI = f"postgresql+pg8000://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}"
253
- SQLALCHEMY_DATABASE_URI = (
254
- f"postgresql://{ DB_USER } :{ DB_PASSWORD } @{ DB_HOST } :{ DB_PORT } /{ DB_NAME } "
255
- )
235
+ SQLALCHEMY_DATABASE_URI = f"postgresql://{ DB_USER } :{ DB_PASSWORD } @{ DB_HOST } :{ DB_PORT } /{ DB_NAME } "
256
236
257
237
# JWT OIDC settings
258
238
# JWT_OIDC_TEST_MODE will set jwt_manager to use
0 commit comments