Dry Run Flag
まだ誰も着手していません。
評価
調査の方向性
まず、cwms-python の initializer と、その GET、POST、DELETE およびその他の HTTP メソッドを見つけます。cwms-cli などのスクリプトがそれらをどのように呼び出しているかを追跡し、initializer の引数と環境変数がどのように連携すべきかを判断します。dry-run モードによって HTTP 呼び出しが防止され、スクリプトはロジックを実行でき、スキップされた操作が報告されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Add the ability to provide a dry_run=True to the init of cwms-python that prevents the calls from actually triggering.
The idea would be something like cwms-cli, or other scripts, can trigger everything in the script to test logic but not actually trigger the HTTP calls.
Possible read the dry_run flag in GET/POST/DELETE/etc methods and do a simple return/console log of "Dry Run Enabled: Skipping DELETE"
While you can implement this in each script and set the arg there. I think it would be easier to allow an env var to be set and also provide another argument to the init(..., dry_run) to account for this!
- 主要言語
- Python
- スター
- 16
- フォーク
- 11
- 平均マージ
- 7時間 35分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
HydrologicEngineeringCenter/cwms-python のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
HydrologicEngineeringCenter/cwms-python#299 · コメント 1 件 ·
-
cwms/projects/projects.py::get_project uses the wrong API version for retrieval対応中かも @krowvin が 61 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
HydrologicEngineeringCenter/cwms-python の issue をすべて見る
似ている issue
-
[Bug]: graphify query loads every language extractor just for _file_stem (about 34 ms per call)対応中かも @rohit-jsfreaky が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Graphify-Labs/graphify#5160 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Variable declared without a value suppresses ${VAR:-default} expansion対応中かも @Omarinho12345 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
theskumar/python-dotenv#750 ·
メンテナーはふだん 12 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Operations on a list[T] | None var throw when the value is None対応中かも @masenf が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
reflex-dev/reflex#7826 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
UKGovernmentBEIS/control-arena#947 ·
メンテナーはふだん 1 日以内に返信