GeventSubscriptionServer ignore schema validation errors
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
gevent.py の 74–75 行目付近から始め、報告されている GraphQL AioWS のセットアップを使用して、無効なフィールドを含む subscription を再現します。スキーマ検証エラーによって ExecutionResult が生成される流れを追跡し、それらのエラーが「A subscription must return an observable」アサーションに置き換えられずに表面化することを確認します。
索引モデルが issue の本文から書いたものです。
説明
- GraphQL AioWS version: 0.3.1
- Python version: Python 3.8.5
- Operating System: Debian
Description
GeventSubscriptionServer ignore any schema validation errors.
I use Altair GraphQL client. When I send subscription request with schema text errors (for example: wrong field name), this error is covered by GeventSubscriptionServer and just raise "A subscription must return an observable"
I think problem in following lines in gevent.py, line 74:75:
assert isinstance(execution_result, Observable), \
"A subscription must return an observable"
There's check only for Observable, but in case of schema error its return ExecutionResult object with errors, then assert is failed, another error is raising
What I Did
Any subscription query with any schema error
- 主要言語
- Python
- スター
- 270
- フォーク
- 85
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graphql-python/graphql-ws のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
graphql-python/graphql-ws#95 · リアクション 1 件 ·
-
graphql-ws-next オープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
graphql-python/graphql-ws#90 · コメント 4 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
graphql-python/graphql-ws#89 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
graphql-python/graphql-ws#87 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
graphql-python/graphql-ws#84 · コメント 6 件 · リアクション 3 件 ·
graphql-python/graphql-ws の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·