Typo in Flask view context
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 55/100
Research direction
Start in src/graphql_server/flask/views.py at the referenced view and compare its context construction with request_data.to_template_context() in src/graphql_server/http/init.py. Check the variable name used by src/graphql_server/static/graphiql.html, then verify that the view supplies the expected context key and that the relevant Flask behavior remains covered by the existing test suite.
Written by the indexing model from the issue text.
Description
Hi all, just a small one:
The line https://github.com/graphql-python/graphql-server/blob/2d5ac9539307d6db22b3364a61063e050c3f20b9/src/graphql_server/flask/views.py#L145 creates the context with operationName but the template https://github.com/graphql-python/graphql-server/blob/2d5ac9539307d6db22b3364a61063e050c3f20b9/src/graphql_server/static/graphiql.html#L199 expects operation_name. Probably request_data.to_template_context() is meant to be used which does use operation_name: https://github.com/graphql-python/graphql-server/blob/2d5ac9539307d6db22b3364a61063e050c3f20b9/src/graphql_server/http/__init__.py#L74
Thanks!
- Dominant language
- Python
- Stars
- 134
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from graphql-python/graphql-server
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
graphql-python/graphql-server#139 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
graphql-python/graphql-server#135 · 4 comments · 3 reactions ·
-
type: feature
Difficulty 4/5 3-5 days Newbie friendliness 25/100
graphql-python/graphql-server#41 · 2 reactions ·
-
type: rfc
Difficulty 5/5 Over a week Newbie friendliness 25/100
graphql-python/graphql-server#25 · 8 comments · 4 reactions ·
All issues in graphql-python/graphql-server
Similar issues
-
essnmx good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
[Feature] 奇物选择添加优先级 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Giskard-AI/giskard-oss#2840 · 1 comment ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Openarea: repo bug perceived difficulty: 2
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
yeti-platform/yeti#1380 ·