Align pricing terminology: pixels_per_unit -> pricing_unit_size (track go-livepeer #3942)
まだ誰も着手していません。
- #28 @rickstaa による — マージされずにクローズ
評価
調査の方向性
examples/get_orchestrator_info.py から始め、info.price_info.pixelsPerUnit がどのように読み取られているかを確認します。ユーザー向けの JSON キーとピクセルに関する表現を、それぞれ pricing_unit_size と work units に変更し、src/livepeer_gateway/lp_rpc_pb2.py は変更しないでください。完了条件は、wire field を変更せずに、例が新しい用語を使用していることです。
索引モデルが issue の本文から書いたものです。
説明
Summary
Align the SDK's user-facing pricing terminology with go-livepeer, which is renaming the -pixelsPerUnit flag to -pricingUnitSize (see livepeer/go-livepeer#3942).
Background
pixelsPerUnit is really just a pricing scale factor: it is the number of work units that one quoted price covers, so price_per_work_unit = pricePerUnit / pixelsPerUnit. The "pixels" name is transcoding-era legacy and is confusing for non-video / BYOC / general-runner workloads, where there are no pixels.
go-livepeer#3942 introduces -pricingUnitSize as the primary flag and keeps -pixelsPerUnit as a deprecated alias. The wire/proto field (PriceInfo.pixelsPerUnit) is intentionally left unchanged for compatibility.
What to change in this SDK
User-facing terminology only — the generated proto field stays pixelsPerUnit:
examples/get_orchestrator_info.py- JSON dict key
pixels_per_unit->pricing_unit_size(snake_case analog ofpricingUnitSize). - Text output
... wei per N pixel(s)->... wei per N work unit(s). - Keep reading the wire field via
info.price_info.pixelsPerUnit.
- JSON dict key
Out of scope
src/livepeer_gateway/lp_rpc_pb2.pyis generated from the proto and carries the wire fieldpixelsPerUnit; do not hand-edit it.
Related
- go-livepeer#3942 (flag rename)
- In-flight PR #20 (
ja/live-runner) introduced a relatedunit_scaleconcept; it should adopt the samepricing_unit_sizename for consistency.
- 主要言語
- Python
- スター
- 1
- フォーク
- 8
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
livepeer/livepeer-python-gateway のほかの issue
-
call_runner rejects a top-level JSON array, so a runner cannot pass one through対応中かも @rickstaa が 60 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
livepeer/livepeer-python-gateway#64 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
trickle_publisher: `_resolve_next_seq` fallback drops first video segment + logs noisy warning再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
livepeer/livepeer-python-gateway#12 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
livepeer/livepeer-python-gateway#74 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
livepeer/livepeer-python-gateway#70 · コメント 2 件 ·
livepeer/livepeer-python-gateway の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
lidofinance/diffyscan#239 ·
メンテナーはふだん 1 日以内に返信
-
docs: the dev-setup table and AGENTS.md name the reviewed_by guard that CI's Changelog job runsオープンarea: tools documentation good first issue ready for a contributor
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
eyalgolan/statecraft-israel#873 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
GET rooms API returns 500 due to nonexistent Room.is_active attribute対応中かも @Mars-60 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 5 日以内に返信
-
Harmony OPeNDAP SubSetter (HOSS) Geographic production rssmif16d 7 XYZ_PROV
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
nasa/harmony-autotester#341 ·