Commit Graph

58 Commits

Author SHA1 Message Date
Aryan Iyappan
47696559c7 run linters locally 2021-08-24 08:30:54 +05:30
Syrus Akbary
d085c8852b
Subscription revamp (#1235)
* Integrate async tests into main code

* Added full support for subscriptions

* Fixed syntax using black

* Fixed typo
2020-07-28 13:33:21 -07:00
Jonathan Ehwald
bf034ca85f
Rename variables called type to type_ (#1216)
Co-authored-by: Daniel Gallagher <daniellg@yelp.com>
2020-06-27 11:18:11 +01:00
Syrus Akbary
60a9609b9a
Updated all str.format(…) to f-strings (#1158)
* Updated all str.format(…) to f-strings

This revamps the PR #984

* Pass black

* Fix flake8

* Updated objecttype

* Fix black version
2020-03-14 17:32:44 -07: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
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
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
Daniel Gallagher
142f4a58d8 Run black formatter via pre-commit on all files 2018-07-06 14:03:15 -07:00
Daniel Gallagher
086f9dda99 Run black formatter via pre-commit on all files 2018-07-06 12:09:23 -07:00
Kurtis Jantzen
aa0c401cb5 Resolve #750 by editing assert message 2018-05-30 16:56:42 -06:00
Syrus Akbary
fcef703eb5 Fixed flake8 issues 2017-10-25 10:27:50 -07:00
Syrus Akbary
2cc701f444 Improved is_node checks 2017-09-06 17:51:09 -07:00
Syrus Akbary
6a85507325 Improved get_node API 2017-07-27 20:06:48 -07:00
Syrus Akbary
394a1beb07 Updated resolver api 2017-07-27 02:55:25 -07:00
Syrus Akbary
66390554d9 Improved resolver consistency 2017-07-26 23:14:32 -07:00
Syrus Akbary
f1624af08a Fixed Flake issues 2017-07-12 21:45:06 -07:00
Syrus Akbary
a023aeba62 Simplified Node type 2017-07-12 01:58:32 -07:00
Syrus Akbary
4820a7fede Improved Mutation 2017-07-12 00:33:50 -07:00
Syrus Akbary
e92b03bed5 Allow Node inner types to be lazy. Fixed #437 2017-04-12 23:23:44 -07:00
Syrus Akbary
e8fc58afd6 Improved Node get_node_from_global_id
This introduces a breaking changes for custom Nodes implementations
2017-02-07 22:35:03 -08:00
Syrus Akbary
bb7976a75f Improved ConnectionField exception message. Fixed #356 2016-11-14 20:28:06 -08:00
markus
09969355fa Added tests. 2016-11-10 11:10:49 +00:00
markus
8fa6d61271 Added optional parent type to allow usage of GlobalID in mutations. 2016-11-10 10:54:03 +00:00
markus
5f7af3e43f Make node arg options and default required to True for GlobalID. 2016-11-10 10:00:59 +00:00
Markus Padourek
ef18eb5ce3 Improve is_node error message 2016-10-13 14:08:28 +01:00
Syrus Akbary
f955280d1a Improved sorting/PEP8 syntax 2016-09-18 13:23:35 -07:00
Syrus Akbary
80fb69a9ae Stop requiring get_node in implemented Nodes 2016-08-24 01:15:59 -07:00
Syrus Akbary
100e03ec0c Add documentation to is_node 2016-08-16 22:58:40 -07:00
Syrus Akbary
a55741b03c Added node resolver 2016-08-16 00:15:00 -07:00
Syrus Akbary
6fa32a7287 Fixed PEP8 errors 2016-08-14 16:58:32 -07:00
Syrus Akbary
a0228ae6b2 Moved relay is_node definition 2016-08-14 02:19:37 -07:00
Syrus Akbary
99eec49a06 Removed unused code. Small refactor 2016-08-13 23:15:20 -07:00
Syrus Akbary
7804f10732 Added ClientIDMutation. All examples working 💪 2016-08-13 23:00:25 -07:00
Syrus Akbary
0ffdd8d9ab Improved Relay implementation 2016-08-13 17:36:11 -07:00
Syrus Akbary
04492600e5 First stage separate interfaces 2016-08-08 09:37:06 -07:00
Syrus Akbary
27a0d4147f Removed implements check 2016-08-07 16:53:40 -07:00
Syrus Akbary
387b997b1d Fixed tests and flake errors 2016-08-06 19:42:06 -07:00
Syrus Akbary
af4c63512c First working version of graphene-sqlalchemy 2016-07-22 20:24:12 -07:00
Syrus Akbary
37ed617fce Fixed Graphene Django integration 2016-06-21 22:52:39 -07:00
Syrus Akbary
1827099381 Added get_fields to options 2016-06-21 17:40:38 -07:00
Syrus Akbary
d3f98d75f6 Improved relay integration and abstraction 2016-06-19 14:28:47 -07:00
Syrus Akbary
35f42f4e0c Improved relay types 2016-06-15 22:45:28 -07:00
Syrus Akbary
6e38e48faf Improved code lint 2016-06-15 21:40:54 -07:00
Syrus Akbary
5ccd815fbd Added ConnectionField 2016-06-14 23:48:25 -07:00
Syrus Akbary
c74a75133e Autolint all the files 2016-06-14 22:29:02 -07:00
Syrus Akbary
8d4cf2d059 Updated Node 2016-06-14 21:45:44 -07:00
Syrus Akbary
a9e09dcee8 Improved relay connections 2016-06-10 01:20:53 -07:00
Syrus Akbary
66c375bfe3 Added simple relay connection 2016-06-10 00:44:49 -07:00
Syrus Akbary
51e97510c0 Improved relay nodes and field copies 2016-06-10 00:23:31 -07:00
Syrus Akbary
522f769cad Improved Node/Mutation fields 2016-06-09 22:56:41 -07:00