Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Take named options in `PostgreSqlContainer.withSSL`

オープン 初心者向け
#1,539 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
74/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, postgresql, typescript
領域
api, backend

調査の方向性

packages/modules/postgresql/src/postgresql-container.tsから始めて、PostgreSqlContainer.withSSLをwithSSLCertおよび#1518と調整された位置引数のオーバーロードと併せて確認してください。名前付きフィールド形式を追加し、位置引数形式は非推奨のオーバーロードとして維持してください。呼び出し側が{ cert, key, ca }を渡せ、既存の位置引数シグネチャが非推奨のオーバーロードとして引き続き利用できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement minor

What happens

PostgreSqlContainer has two SSL methods that take the same three file paths in different positions:

withSSL(certFile: string, keyFile: string, caCertFile?: string)
withSSLCert(caCertFile: string, certFile: string, keyFile: string)

All three are plain strings, so passing them in the wrong order compiles. The mistake shows up only when the server fails to start or a client fails to verify.

Expected

A form with named fields, for example withSSL({ cert, key, ca }), with the positional forms kept as deprecated overloads.

Where

packages/modules/postgresql/src/postgresql-container.ts.

Notes

  • withSSLCert(caCertFile, certFile, keyFile) matches Go's postgres.WithSSLCert(caCertFile, certFile, keyFile). withSSL is the one that differs.
  • Both were added in #1224.
  • The same applies to any module method that takes several paths or credentials positionally. Worth a line in the add-module skill.

Dependencies

  • Nothing blocks this. It can start now.
  • Coordinate with #1518: for the positional overloads.
主要言語
TypeScript
スター
2.6k
フォーク
274
平均マージ
1日 14時間
マージ済み PR(30日)
44

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

testcontainers/testcontainers-node のほかの issue

testcontainers/testcontainers-node の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。