Commit Graph

1520 Commits

Author SHA1 Message Date
Lem Ko
ba5b7dd3d7
Fix example query in quickstart doc (#1139) 2020-02-21 11:15:51 +00:00
정유석
be97a369f7
fix typo in class 'Interface' (#1135) 2020-02-18 08:53:48 +00:00
David Sanders
03bd6984dd
fix example middleware class in docs (#1134) 2020-02-10 14:17:16 -08:00
James
23bb52a770
Add a helpful message to when a global_id fails to parse. (#1074)
* Add a helpful message to when a global_id fails to parse.

* Update test_node to have errors on test_node_query_incorrect_id

* Black the node.py file

* Remove func wrapper used in debugging get_resolver partial

* Update node.py

* Expand error messages

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-10 14:16:11 -08:00
Jean-Louis Fuchs
ad0b3a529c
The default_value of InputField should be INVALID (#1111)
* The default_value of InputField should be INVALID

Since GraphQL 3.0 there is a distinction between None and INVALID (no value).
The tests captured the bug and are updated.

* Update minimum graphql-core version

* Use Undefined instead of INVALID

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-08 20:24:58 +00:00
Henry Baldursson
9a19447213 Use unidecode to handle unicode characters in constant names (#1080) 2020-02-08 09:21:25 -08:00
Jonathan Kim
55a03ba716
Update readme (#1130)
* Add slack link and dev notice to the README

* Fix formatting

* Update formatting

* Add notice to documentation
2020-01-30 08:17:12 -08:00
Jonathan Kim
f82b811377
Fix example code (#1120) 2020-01-30 12:18:00 +00:00
Jonathan Kim
bd6d8d086d
Fix tests (#1119)
* Fix tests

* Add extra folders to make test command

* Update snapshots

* Add python 3.8 to test matrix

* Add black command to makefile and black dependency to setup.py

* Add lint command

* Run format

* Remove 3.8 from test matrix

* Add Python 3.8 to test matrix

* Update setup.py
2019-12-31 14:08:30 +00:00
Tom Paoletti
81d61f82c5 Fix objecttypes DefaultResolver example (#1087) (#1088)
* Create namedtuple as expected
* Access result.data instead of result['data']
* Refer to field with camel-case name
2019-12-26 20:05:14 +00:00
Jonathan Kim
482c7fcc65
Add file uploading docs (#1084) 2019-12-26 20:02:57 +00:00
Iman
c0fbcba97a Update quickstart.rst (#1090)
A miss letter
2019-12-26 20:02:28 +00:00
Yu Mochizuki
e31b93d1fd Increase the allowed version of aniso8601 (#1072) 2019-12-26 11:27:55 +00:00
TheMelter
abc2c2a784 Fix typo in execute.rst (#1115) 2019-12-19 23:02:45 -08:00
Jonathan Kim
3f6f426946
Update stale.yml 2019-10-18 10:50:54 +01:00
Theodore Diamantidis
7c7876d37c Propagate arguments of relay.NodeField to Field (#1036)
* Propagate name, deprecation_reason arguments of relay.NodeField to Field

* Allow custom description in Node.Field and move ID description to ID argument

* Add test for Node.Field with custom name

* Add tests for description, deprecation_reason arguments of NodeField

* Pass all kwargs from NodeField to Field
2019-09-27 09:54:46 +01:00
Jonathan Kim
a3b215d891
Remove AbstractType (#1053) 2019-09-27 09:54:19 +01:00
Min ho Kim
e90aa1b712 Fix typos (#1066)
Fixed typos in docs, string literals, comments, test name
2019-09-25 19:57:53 -04:00
Mel van Londen
8e7d76bbce
Graphene v3 following v3 graphql-core (#1048)
* v3.0 - remove Python 2.x from build (#983)

* Change travis to only compile for p3.6+

* Changed tox to only run Python 3.6+

* Changed library classifiers to reflect support in Python 3.6+

* Changed version to 3.0.0 development

In [15]: get_version((3, 0, 0, "alpha", 0))
Out[15]: '3.0.dev20190601212304'

* Reorganize Tests (#985)

We no longer need a dedicated folder for Python3.6+ tests
We no longer need to check six.PY3 in tests

* Upgrade black to 19.3b0 (#987)

* Remove six dependency (#986)

* No one is using func_name

* Remove six simple usages

* Remove six requirement

* Remove `six.with_metaclass` calls

* pytest-asyncio should be a regular dependency now with Py3 move

* Change dependency to graphql-core-next (#988)

* Changed dependencies to core-next

* Converted Scalars

* ResolveInfo name change

* Ignore .venv

* Make Schema compatible with GraphQL-core-next

* Ignore more venv names and mypy and pytest caches

* Remove print statements for debugging in schema test

* core-next now provides out_type and out_name

* Adapt date and time scalar types to core-next

* Ignore the non-standard result.invalid flag

* Results are named tuples in core-next (immutable)

* Enum values are returned as dict in core-next

* Fix mutation tests with promises

* Make all 345 tests pass with graphql-core-next

* Remove the compat module which was only needed for older Py version

* Remove object as base class (not needed in Py 3)

* We can assume that dicts are ordered in Py 3.6+

* Make use of the fact that dicts are iterable

* Use consistent style of importing from pytest

* Restore compatibility with graphql-relay-py v3

Add adpaters for the PageInfo and Connection args.

* Avoid various deprecation warnings

* Use graphql-core 3 instead of graphql-core-next

* Update dependencies, reformat changes with black

* Update graphene/relay/connection.py

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Run black on setup.py

* Remove trailing whitespace
2019-08-17 17:07:53 -04:00
Jonathan Kim
3d0e460be1 v2.1.8 (#1054)
Update version to v2.1.8
2019-08-17 16:52:59 -04:00
Jonathan Kim
0808e8acb3
Add stalebot (#1044) 2019-07-29 12:02:11 +02:00
Ntale Shadik
c96bd680d7 Add interfaces meta argument on Mutations (#1023) 2019-07-24 18:44:22 +01:00
Vincent Prouillet
6e4058960d Increased allowed version of aniso8601 (#1009)
Closes #1008 

The only change should not affect graphene https://bitbucket.org/nielsenb/aniso8601/issues/24/float-induced-rounding-errors-when-parsing
2019-07-24 18:43:28 +01:00
Jonathan Kim
167c8c203c Bump version 2019-07-15 21:09:41 +01:00
Jonathan Kim
6fc1a8f79d
Upgrade graphql-relay (#1032)
* Upgrade graphql-relay

* Remove pypy3 test
2019-07-15 21:02:56 +01:00
Danilo Herrera
57157ab7f4 Fix typo (#1028) 2019-07-08 22:21:50 +01:00
Mel van Londen
4170e73251
Update roadmap (#1019)
* update roadmap

* Update ROADMAP.md graphql-core-next table entry

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Update ROADMAP.md graphql-core table entry

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Update ROADMAP.md remove SDL schema creation

* Update ROADMAP.md remove connections structure

* fix trailing whitespace
2019-06-24 20:38:45 -07:00
Jonathan Kim
8dee85cc13
Trying to get codeowners to work (#996)
* Trying to get codeowners to work

* Update CODEOWNERS
2019-06-24 16:01:45 +01:00
Jonathan Kim
abe547fb4d
Fix wrong variable name (#1015)
Resolves #1014
2019-06-22 18:09:52 +02:00
Jonathan Kim
0e8a3c5063
Update travis.yml (#1010)
* Use xenial dist

* Only install coveralls after success

* Latest version of pypi

* Refactor travis.yml into stages and add travis-tox

* Drop 2.6

* Bump to python 3.7
2019-06-19 18:25:21 +01:00
Mel van Londen
ac6714e8fa Remove sponsorship text from readme (#1002)
* remove sponsorship text from readme

* remove sponsorship references in roadmap
2019-06-14 12:56:02 +01:00
Jonathan Kim
89ca4f58a2
v2.1.6 (#1005) 2019-06-14 11:41:29 +01:00
Adrián López Calvo
431e93cd68 Fix malformed version on aniso8601 requirement (#995)
* Fix malformed version on aniso8601 requirement

* 6 -> 6.0

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>
2019-06-10 21:16:28 -07:00
David Anderson
5cb7d91aaa Revise documentation (#969)
* Revise documentation

- Add missing reference to `flask-graphql` in integrations
- align documentation for resolver arguments (use root for 1st argument
instead of self)
- explore use of `parent` instead of `root` for first argument
- clarify resolvers and object type documentation
- add documentation for Meta class options for ObjectType
- expand quickstart documentation for first time users
- streamline order of documentation for first time users (broad ->
specific)
- document resolver quirks

* explict imports from graphene

* rename doc refs for resolvers

* suggestions typos and graphene import
2019-06-09 16:49:56 -07:00
David Anderson
da1359ecca expose livehtml autobuild in Makefile + Add API autodoc (#971)
* expose livehtml autobuild in Makefile

* add API documentation for schema

* document graphene core API

* fixes black lint

* Update graphene/types/union.py

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Update graphene/types/argument.py

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Update graphene/types/field.py

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Update graphene/types/inputfield.py

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* add note about non-functional `interfaces` meta argument in mutation

* update with other virtual environment configuration

* pin autobuild

* format argument example code

* format enum input object and interface examples

* format enum mutation union examples

* revise documentation with imports, capitalization
2019-06-09 15:36:06 -07:00
Ambro
40229b8a73 Fix internal link on docs (#980) 2019-06-04 09:23:24 -07:00
Eran Kampf
89a352e93a Pypi doesnt allow raw directive 2019-06-03 10:29:59 -07:00
Eran Kampf
17fbcb6746 v.2.1.5 2019-06-03 10:12:50 -07:00
Eran Kampf
f0cc9268d2 Fix RST README 2019-06-03 09:44:03 -07:00
Jessamyn Hodge
4e3f46b2c9
updating codeowners to have additional reviewers for docs and example changes (#989) 2019-06-02 18:16:25 -04:00
Eran Kampf
40534bcce9 v2.1.4 2019-06-01 13:44:13 -07:00
David Anderson
ec9f76cfae Fix flaky date tests (#982)
* fix flaky datetime test with fixed values

* rename fixtures for clarity in date+time tests
2019-06-01 13:41:45 -07:00
Eran Kampf
eb7966eca7
Fix for metaclasses that use type annotation (Issue #979) (#981)
* Replicate error with test

* Fix - ignore parameters we do not recognize

* Seperate Python3.6+ tests to their own folder

* lint

* Unused import

* Black formatting
2019-05-31 14:31:17 -07:00
Mike Bobadilla
1fcdeaac65 Typo in documentation (#975) 2019-05-28 10:09:57 -07:00
cclauss
f73055f72b Drop support for Python 3.4 because it is EOL (#963) 2019-05-07 12:16:22 -07:00
Scott Crunkleton
a5162e9ae3 Update aniso8601 dependency to allow versions 4+. (#935)
* Update aniso8601 dependency to allow versions 4+.

* Upper bound to aniso8601 dependency version.
2019-05-07 09:31:30 -07:00
NyanKiyoshi
6a4091b3e4 from_enum can now take a deprecation reason (#957) 2019-05-06 10:17:33 -07:00
Minh Tu Le
abff3d75a3 Allow the connection node to be wrapped in a NonNull type (#934) 2019-04-12 16:29:53 -07:00
Ganesh Pandey
daf0d17647 fix type on docs (#939) 2019-04-09 11:29:40 -07:00
Eran Kampf
d0cfee5641
Make UUID compatible (Fixed issue #936) (#937)
* Make UUID compatible

* Fix typo

* black code formatting
2019-04-08 14:06:32 -07:00