Scenario bundle PATCH accepts ?expand=labels but ignores it
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
oekg/api_views.py の OekgAPIView.initial と、patch の末尾にある return bundle_response(...) から始めます。labels を解決する bundle GET とその他の書き込みエンドポイントを比較し、PATCH が ?expand=labels を処理するか、一貫して拒否することを示す回帰テストを追加します。選択した動作とレスポンスが一致すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
PATCH /api/v0/scenario-bundles/<uid>/ accepts ?expand=labels (the parameter is validated for every view in OekgAPIView.initial) but does not act on it: the response is built without the expansion set (oekg/api_views.py, the return bundle_response(...) at the end of patch, which passes no expand=). Every other write below a bundle (scenario and study report writes, dataset link writes, replace/) resolves labels when asked, and the bundle GET does too.
So a client asking for labels on a bundle patch silently gets none. Either honour it (pass expand=self.expand, one line, plus a test) or refuse it with the same 400 an unknown expansion gets, by not offering labels on that method.
Found while annotating the endpoints for the OpenAPI reference (#2480); the documentation deliberately does not claim the parameter works there.
- 主要言語
- Python
- スター
- 65
- フォーク
- 28
- 平均マージ
- 4日 7時間
- マージ済み PR(30日)
- 25
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenEnergyPlatform/oeplatform のほかの issue
-
Redesign the database page to support dataset creation対応中かも @bmlancien が 4 日前に担当しました。 オープンdata-upload
OpenEnergyPlatform/oeplatform#2762 · コメント 1 件 · 担当者 3 名 ·
メンテナーはふだん 3 日以内に返信
-
Improve navigation links in Core Features and Integrated Workflows対応中かも @tomi-rli が 19 日前に担当しました。 オープンHomepage
OpenEnergyPlatform/oeplatform#2746 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Enhance the new OEP homepage対応中かも @jh-RLI が 19 日前に担当しました。 オープンHomepage
OpenEnergyPlatform/oeplatform#2745 · 担当者 2 名 ·
メンテナーはふだん 3 日以内に返信
-
Display child nodes in the OEO Viewer Graph View対応中かも @jh-RLI が 23 日前に担当しました。 オープンoeo viewer
OpenEnergyPlatform/oeplatform#2739 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
deployment Infrastructure type: enhancement :gear:
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
OpenEnergyPlatform/oeplatform#2717 ·
メンテナーはふだん 3 日以内に返信
OpenEnergyPlatform/oeplatform の issue をすべて見る
似ている issue
-
needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
flashinfer-ai/flashinfer#9803 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
oscarbol09/thesisforge#61 ·
-
api bug performance
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
oscarbol09/audiobard#159 ·
-
area:web p2 product:business triage:active type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
cuadrao-ai/argus#2328 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
nikhilb2/simple_invoicing#907 ·