Cloud Python warehouse snippet omits the import needed by its short-lived-job guidance
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 75/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python, typescript
調査の方向性
Pythonのスニペットは frontend/web/components/pages/environment-settings/tabs/warehouse-tab/warehouseEventSnippets.ts の getWarehouseEventSnippets().Python から取得されています。Cloud のimport行を、すでに EventProcessorConfig と Flagsmith をimportしているセルフホスト版の分岐と比較してください。その後、max_buffer_items=1 を使う短命ジョブ向けのガイダンスを確認してください。Cloud の出力が両方のシンボルをimportし、セルフホスト版と一致していて、ガイダンスに矛盾がなければ完了です。テキストの確認にPython SDKの実行は不要です。
索引モデルが issue の本文から書いたものです。
説明
Hullo folks,
I’m doing some research for Tessl Code Review and ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:
Describe the bug
The Cloud Python warehouse example advises short-lived scripts to use EventProcessorConfig(max_buffer_items=1), but its import only includes Flagsmith. A user applying that advice needs an additional import that the example does not show.
This is a small documentation/snippet issue, rather than a claim that the unchanged snippet itself raises an exception.
Steps to reproduce
At be2bd72, call getWarehouseEventSnippets().Python in warehouseEventSnippets.ts. The emitted text starts with:
from flagsmith import Flagsmith
It later recommends passing max_buffer_items=1 to EventProcessorConfig for short-lived scripts and jobs. Applying that recommendation in the constructor introduces a name that was never imported:
flagsmith = Flagsmith(
environment_key="YOUR_ENVIRONMENT_KEY",
enable_events=True,
event_processor_config=EventProcessorConfig(max_buffer_items=1),
)
Expected behavior
Include EventProcessorConfig in the Cloud import, or show the extra import and constructor option together in the short-lived-job guidance. The self-hosted variant already imports both symbols.
Validation
I executed the current TypeScript generator with no argument (Cloud) and with self-hosted URLs. Cloud emitted only Flagsmith; self-hosted emitted EventProcessorConfig, Flagsmith. Both emitted the short-lived-job guidance. I did not run the Python SDK, send events, or test a deployed Flagsmith instance.
The lead came from a retrospective Tessl review and I checked the generated output against current source. Happy to adjust if the intended example usage is different.
Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.
We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.
Bap
- 主要言語
- Python
- スター
- 7.4k
- フォーク
- 613
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 144
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Flagsmith/flagsmith のほかの issue
-
Action links render in the wrong colour in dark mode対応中かも @manueldezman が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Flagsmith/flagsmith#9082 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Fix Button Alignment in SDK Installation Section対応中かも @manueldezman が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Flagsmith/flagsmith#9056 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
Flagsmith/flagsmith#9013 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Expose whether an organisation is blocked for API usage対応中かも @PiUnknown が 35 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Flagsmith/flagsmith#8773 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
Flagsmith/flagsmith の issue をすべて見る
似ている issue
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsオープンstatus/accepted type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
microsoft/apm#5309 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug vector-store
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
EverMind-AI/Raven#1413 ·
メンテナーはふだん 1 日以内に返信
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS pools対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
メンテナーはふだん 2 日以内に返信