fix(gateway): 프로필 DB URL 인코딩을 보존한다
Gateway orchestrator의 profile migration과 runtime이 GATEWAY_DATABASE_URL에서 schema만 바꾸도록 통일한다. 특수문자 비밀번호를 raw POSTGRES 값으로 재조합하지 않는 DEPLOY 회귀 테스트를 추가한다.
This commit is contained in:
@@ -17,12 +17,13 @@ import { gatewayProfileCapabilities } from '@sammo-ts/common';
|
||||
import {
|
||||
createGamePostgresConnector,
|
||||
createRedisConnector,
|
||||
resolvePostgresConfigFromEnv,
|
||||
resolvePostgresPoolMax,
|
||||
resolveRedisConfigFromEnv,
|
||||
} from '@sammo-ts/infra';
|
||||
import { isRecord } from '@sammo-ts/common';
|
||||
|
||||
import { resolveGatewayPostgresConfigFromEnv } from '../gatewayPostgresConfig.js';
|
||||
|
||||
import {
|
||||
buildTurboReleaseCommand,
|
||||
buildTurboReleaseTaskCommand,
|
||||
@@ -2249,10 +2250,10 @@ export class GatewayOrchestrator implements GatewayOrchestratorHandle {
|
||||
}
|
||||
|
||||
private resolveProfileDatabaseUrl(profile: GatewayProfileRecord): string {
|
||||
return resolvePostgresConfigFromEnv({
|
||||
env: this.processConfig.baseEnv ?? process.env,
|
||||
schema: profile.profile,
|
||||
}).url;
|
||||
return resolveGatewayPostgresConfigFromEnv(
|
||||
this.processConfig.baseEnv ?? process.env,
|
||||
profile.profile
|
||||
).url;
|
||||
}
|
||||
|
||||
private async clearTournamentRuntimeStateFromRedis(profileName: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user