Accept a boolean in the no-argument flag setters
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- docker, node.js, typescript
調査の方向性
Start with the listed generic container, builder, Docker Compose environment, and test files; compare the six no-argument setters with the existing boolean setters. Check the related work in #1524 and coordinate the shared TestContainer interface edit with #1529. Done means the flag setters accept an optional boolean defaulting to true, existing calls still work, conditional calls can turn flags off, and tests cover the behavior.
索引モデルが issue の本文から書いたものです。
説明
What happens
On/off settings are spelled two ways.
No argument, can only switch on:
GenericContainer.withReuse()GenericContainer.withPrivilegedMode()GenericContainer.withDefaultLogDriver()DockerComposeEnvironment.withBuild()DockerComposeEnvironment.withNoRecreate()GenericContainerBuilder.withBuildkit()
Boolean argument:
GenericContainer.withAutoCleanup(boolean)GenericContainer.withAutoRemove(boolean)DockerComposeEnvironment.withAutoCleanup(boolean)GenericContainerBuilder.withCache(boolean)
The no-argument form breaks the chain for conditional settings and cannot undo a setting that a subclass or module turned on:
const container = new GenericContainer(image).withExposedPorts(8080);
if (!process.env.CI) {
container.withReuse();
}
The modules are split the same way: 6 no-argument flag setters and 4 that take a boolean.
Expected
Flag setters accept an optional boolean that defaults to true, so withReuse() keeps working and withReuse(!process.env.CI) becomes possible.
Where
packages/testcontainers/src/generic-container/generic-container.tspackages/testcontainers/src/generic-container/generic-container-builder.tspackages/testcontainers/src/docker-compose-environment/docker-compose-environment.tspackages/testcontainers/src/test-container.ts
Notes
- Java takes a boolean in both
withReuse(boolean reusable)andwithPrivilegedMode(boolean mode). - Worth adding the convention to the
add-moduleskill.
Dependencies
- Stack on #1524: both change
withNoRecreate. - Coordinate with #1529: both edit the
TestContainerinterface.
- 主要言語
- TypeScript
- スター
- 2.7k
- フォーク
- 290
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 22
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
testcontainers/testcontainers-node のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
testcontainers/testcontainers-node#1673 ·
メンテナーはふだん 4 日以内に返信
-
enhancement minor
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
testcontainers/testcontainers-node#1539 ·
メンテナーはふだん 4 日以内に返信
-
Let `Wait.forListeningPorts()` wait on specific ports対応中かも @artbom が 29 日前に担当しました。 オープンenhancement minor
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
testcontainers/testcontainers-node#1533 ·
メンテナーはふだん 4 日以内に返信
-
enhancement minor
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
testcontainers/testcontainers-node#1531 ·
メンテナーはふだん 4 日以内に返信
-
Export the types used in public method signatures対応中かも @artbom が 29 日前に担当しました。 オープンenhancement minor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
testcontainers/testcontainers-node#1528 ·
メンテナーはふだん 4 日以内に返信
testcontainers/testcontainers-node の issue をすべて見る
似ている issue
-
prio:low scope:hud
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OliverRomhagen/vrigstad-joyride#953 ·
メンテナーはふだん 1 日以内に返信
-
review-followup
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
griffinwork40/agent-afk#5446 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
kacper-szewczyk/Ticknest#346 ·
メンテナーはふだん 1 日以内に返信
-
echarts geo: a GeoJSON URL that returns 200 with a body that is not JSON is fetched on each refreshオープンbug plugin/echarts/geo
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
Yeachan-Heo/gajae-code#8230 ·
メンテナーはふだん 1 日以内に返信