[GraphQL] Introduce ArgumentParameter for first-class GraphQL schema argument metadata
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- php
調査の方向性
src/GraphQl/Type/FieldsBuilder.php から始め、getFilterArgs() と getParameterArgs() を比較してから、issue で言及されているメタデータファクトリとリソースエクストラクタを追跡します。GraphQL スキーマに ArgumentParameter ベースのソースと引数構築パスが 1 つあり、影響を受ける PHP 属性、XML、YAML、ドキュメントのパスが更新されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Context
src/GraphQl/Type/FieldsBuilder.php builds GraphQL arguments from two parallel sources today:
- Legacy
Operation::getFilters()(list of string filter ids) →getFilterArgs(). - Modern
Operation::getParameters()(QueryParametercollection) →getParameterArgs().
Both paths walk FilterInterface::getDescription(), normalize bracketed keys via parse_str, and emit InputObjectType trees — with different output shapes and divergent edge-case handling (see also #7953-adjacent bug around bracketed keys + object-form filters).
Proposal
Introduce an ArgumentParameter (working name) — a metadata-layer concept that marks "this parameter participates in the GraphQL schema" as first-class. FieldsBuilder then has a single source of truth and a single argument-building pass, instead of two divergent paths.
Sketch:
- A dedicated parameter subtype, or an explicit
graphQl: true|ArgumentDescriptorflag onQueryParameter. Operation::getFilters()is normalized into syntheticArgumentParameters for GraphQL, deprecating the dual code path insideFieldsBuilder.FieldsBuilderonly consumesArgumentParameters.
Scope
- 4.4 / 5.0 — not a backport-friendly change.
- Touches metadata factories, schema builder, probably the resource extractors (PHP attribute / XML / YAML), and docs.
Why a note, not a plan
This issue exists so the idea is tracked. Real design happens later; the 4.3 branch only does the surgical bug fix + helper extraction.
- 主要言語
- PHP
- スター
- 2.6k
- フォーク
- 982
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 59
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
api-platform/core のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
api-platform/core#8573 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
api-platform/core#8571 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
api-platform/core#8564 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
api-platform/core#8495 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
api-platform/core#8471 ·
api-platform/core の issue をすべて見る
似ている issue
-
tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
UX
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
OpenConext/OpenConext-engineblock#2122 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/safe-publish#594 ·