lilac-supernova-2
d0b8c97cdc
Merge e2638408b1
into 36cf100e8b
2023-10-25 11:33:15 +03:00
Kien Dang
36cf100e8b
Use ruff format to replace black ( #1473 )
...
* Use ruff format to replace black
* Adjust ruff config to be compatible with ruff-format
https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
* Format
* Replace black with ruff format in Makefile
2023-10-25 11:33:00 +03:00
Kien Dang
e8f36b018d
Fix test Client headers for Django 4.2 ( #1465 )
...
* Fix test Client headers for Django 4.2
* Lazy import pkg_resources
since it could be quite heavy
* Remove use of pkg_resources altogether
2023-09-18 23:23:53 +08:00
mnasiri
83d3d27f14
Fix graphiql explorer styles by sending graphiql_plugin_explorer_css_sri param to render_graphiql function of the GraphQlView ( #1418 ) ( #1460 )
2023-09-14 00:26:18 +08:00
Romain Létendart
ee7560f629
Support displaying deprecated input fields in GraphiQL docs ( #1458 )
...
* Update GraphiQL docs URL in docs/settings
And deduplicate link declaration.
* Support displaying deprecated input fields in GraphiQL docs
2023-09-13 09:49:01 +03:00
lilac-supernova-2
67def2e074
Typo fixes ( #1459 )
...
* Fix Star Wars spaceship name
* Fix some typos in comments
* Typo fixes
* More typo fixes
2023-09-06 10:29:58 +03:00
mahmoudmostafa0
e49a01c189
adding optional_field in Serializermutation to enfore some fields to be optional ( #1455 )
...
* adding optional_fields to enforce fields to be optional
* adding support for all
* adding unit tests
* Update graphene_django/rest_framework/mutation.py
Co-authored-by: Kien Dang <kiend@pm.me>
* linting
* linting
* add missing import
---------
Co-authored-by: Kien Dang <kiend@pm.me>
2023-08-28 00:15:35 +03:00
lilac-supernova-2
e2638408b1
Linting
2023-08-26 04:01:15 -04:00
lilac-supernova-2
59c01172bb
Refactor execute_graphql_request function to reduce complexity
2023-08-26 03:56:25 -04:00
lilac-supernova-2
a94a89d88f
Linting
2023-08-26 03:54:15 -04:00
lilac-supernova-2
98fd498959
Refactor validation function to reduce complexity
2023-08-26 03:30:00 -04:00
lilac-supernova-2
34db851230
Snake case formatting fix
2023-08-26 03:12:35 -04:00
lilac-supernova-2
19d5558ed7
Add 'self' argument
2023-08-26 03:08:29 -04:00
lilac-supernova-2
cb92d6e685
Add new tests-repeat command to Makefile to be able to run unit tests multiple times + in parallel in one shot
2023-08-26 02:59:40 -04:00
lilac-supernova-2
988b30845d
Refactor get_filtering_args_from_filterset into more functions to reduce cognitive complexity
2023-08-26 02:42:06 -04:00
lilac-supernova-2
34e61c6fce
More typo fixes
2023-08-26 02:31:17 -04:00
lilac-supernova-2
722daf1fa9
Typo fixes
2023-08-26 02:31:00 -04:00
lilac-supernova-2
67373c77c6
Rename function
2023-08-26 01:51:19 -04:00
lilac-supernova-2
d8732200cb
Remove nesting for readability
2023-08-26 01:27:59 -04:00
lilac-supernova-2
b639034061
Actually, let's not do this to avoid circular imports
2023-08-26 01:04:29 -04:00
lilac-supernova-2
2a888ac993
Add possibly missing import of DjangoFilterConnectionField
2023-08-26 00:57:13 -04:00
lilac-supernova-2
5c5209670b
Snake case fixes
2023-08-26 00:52:08 -04:00
lilac-supernova-2
1b00e67ae9
Update import
2023-08-26 00:43:37 -04:00
lilac-supernova-2
6580228af2
Rename filename with typo
2023-08-26 00:43:28 -04:00
lilac-supernova-2
ea77bc7974
Fix some typos in comments
2023-08-26 00:43:09 -04:00
lilac-supernova-2
cd6e04272c
Fix Star Wars spaceship name
2023-08-26 00:37:41 -04:00
lilac-supernova-2
0e1b6051ff
Keep 'if' above same as before, fix lint issue
2023-08-26 00:32:57 -04:00
lilac-supernova-2
ad447d94a2
Remove unnecessary if statement
2023-08-26 00:19:42 -04:00
Thomas Leonard
0473f1a9a3
fix: empty list is not an empty value for list filters even when a custom filtering method is provided ( #1450 )
...
Co-authored-by: Thomas Leonard <thomas@loftorbital.com>
2023-08-11 23:24:58 +08:00
Kien Dang
720db1f987
Only release on pypi after tests pass ( #1452 )
2023-08-11 09:51:59 +03:00
Firas Kafri
4ac3f3f42d
Update __init__.py
2023-08-10 01:12:15 +03:00
Firas Kafri
ee7598e71a
Remove typo
2023-08-09 23:41:57 +03:00
Firas Kafri
05d7fb5396
Bump version
2023-08-09 20:49:51 +03:00
Kien Dang
79b4a23ae0
Miscellaneous CI fixes ( #1447 )
...
* Update Makefile
* django master requires at least python 3.10 now
* Allow customizing options passed to tox -e pre-commit
* py.test -> pytest
* Update ruff
* Fix E721
Do not compare types, use `isinstance()`
* Add back black to dev dependencies
* Pin black and ruff versions
2023-08-09 20:48:42 +03:00
Laurent
db34d2e815
fix: foreign key nullable and custom resolver ( #1446 )
...
* fix: nullable one to one relation
* fix: makefile
2023-08-09 20:28:26 +03:00
Kien Dang
9a773b9d7b
Use ruff in pre-commit ( #1441 )
...
* Use ruff in pre-commit
* Add pyupgrade
* Add isort
* Add bugbear
* Fix B015 Pointless comparison
* Fix B026
* B018 false positive
* Remove flake8 and isort config from setup.cfg
* Remove black and flake8 from dev dependencies
* Update black
* Show list of fixes applied with autofix on
* Fix typo
* Add C4 flake8-comprehensions
* Add ruff to dev dependencies
* Fix up
2023-08-06 01:47:00 +03:00
Kien Dang
45a732f1db
Prevent duplicate CI runs, also work with PRs from forks ( #1443 )
...
* Prevent duplicate CI runs
* Trigger CI on pull requests from forks
2023-08-06 01:45:10 +03:00
Kien Dang
5eb5fe294a
Remove Python 3.7 (EOL since EOL since 2023-06-27) from CI ( #1440 )
...
* Remove Python 3.7 (EOL since EOL since 2023-06-27) from CI
* Remove unused context
* Use pyupgrade --py38-plus in pre-commit
2023-08-04 11:15:23 +03:00
James
5d7a04fce9
Update mutation.py to serialize Enum objects into input values ( #1431 )
...
* Fix for issue #1385 : Update mutation.py to serialize Enum objects into input values for ChoiceFields
* Update graphene_django/rest_framework/mutation.py
Co-authored-by: Steven DeMartini <1647130+sjdemartini@users.noreply.github.com>
---------
Co-authored-by: Steven DeMartini <1647130+sjdemartini@users.noreply.github.com>
2023-07-27 02:41:40 +03:00
Firas Kafri
3172710d12
exclude 'fans' from ReporterForm tests ( #1434 )
2023-07-18 20:35:51 +03:00
Tom Dror
b1abebdb97
Support base class relations and reverse for proxy models ( #1380 )
...
* support reverse relationship for proxy models
* support multi table inheritence
* update query test for multi table inheritance
* remove debugger
* support local many to many in model inheritance
* format and lint
---------
Co-authored-by: Firas K <3097061+firaskafri@users.noreply.github.com>
2023-07-18 20:17:45 +03:00
Laurent
0de35ca3b0
fix: fk resolver permissions leak ( #1411 )
...
* fix: fk resolver permissions leak
* fix: only one query for 1o1 relation
* tests: added queries count check
* fix: docstring
* fix: typo
* docs: added warning to authorization
* feat: added bypass_get_queryset decorator
2023-07-18 15:16:52 +03:00
Firas Kafri
2fafa881a8
Bump version
2023-07-18 15:13:58 +03:00
Steven DeMartini
cd43022283
Maintain JSONField in graphene_django.compat module ( #1429 )
...
Fixes https://github.com/graphql-python/graphene-django/issues/1428
This should improve backwards compatibility, fixing issues in downstream
packages (notably graphene-django-cud
https://github.com/tOgg1/graphene-django-cud/issues/109 , and also
graphene-django-extras, both of which depended on
`graphene_django.compat.JSONField`).
Co-authored-by: Steven DeMartini <sjdemartini@users.noreply.github.com>
2023-07-18 15:11:30 +03:00
Jeongseok Kang
3f061a0c50
docs: Update location of GraphQL Relay Specification ( #1432 )
2023-07-18 15:10:22 +03:00
Firas Kafri
e950164c8e
Bump version to 3.1.2
2023-06-17 09:29:18 +03:00
Steven DeMartini
2358bd30a4
Update compat.py MissingType results after PGJSONField removal ( #1423 )
...
As mentioned in https://github.com/graphql-python/graphene-django/pull/1421/files#r1221711648
2023-06-07 20:06:37 +03:00
Dulmandakh
3e7a16af73
CI: remove Django 4.0 ( #1422 )
...
* CI: remove Django 4.0
* fix tags
2023-06-07 17:36:51 +03:00
Dulmandakh
8fa8aea3c0
remove JSONField compat ( #1421 )
...
* remove JSONFIeld compat
* fix black
2023-06-07 17:36:29 +03:00
Dulmandakh
c925a32dc3
CI: add Django 4.2 ( #1420 )
...
* CI: add Django 4.2
* fix tox
2023-06-07 16:52:40 +03:00