Skip to content

Commit d2cbb4d

Browse files
committed
Merge branch 'v1.0.0rc1-upgrade-to-django-4'
2 parents f868611 + aa79f54 commit d2cbb4d

39 files changed

+3244
-2720
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) DATADVANCE, 2010-2021
1+
# Copyright (C) DATADVANCE, 2010-2023
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining
44
# a copy of this software and associated documentation files (the

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) DATADVANCE, 2010-2021
1+
# Copyright (C) DATADVANCE, 2010-2023
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining
44
# a copy of this software and associated documentation files (the

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) DATADVANCE, 2010-2021
1+
# Copyright (C) DATADVANCE, 2010-2023
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining
44
# a copy of this software and associated documentation files (the

.pre-commit-config.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.python-version

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
3.9.6
2-
3.8.5
3-
3.7.8
4-
3.6.11
1+
3.10.11
2+
3.9.16
3+
3.8.16

.vscode/settings.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) DATADVANCE, 2010-2020
1+
// Copyright (C) DATADVANCE, 2010-2023
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining
44
// a copy of this software and associated documentation files (the
@@ -32,10 +32,13 @@
3232
"asgi",
3333
"asgiref",
3434
"asyncio",
35+
"blazingly",
3536
"choco",
3637
"dedent",
3738
"deserialization",
39+
"edouardtheron",
3840
"envlist",
41+
"GQLWS",
3942
"graphiql",
4043
"graphql",
4144
"inmemory",
@@ -56,19 +59,24 @@
5659
"prokhorov",
5760
"pydocstyle",
5861
"pyenchant",
62+
"pyenv",
5963
"pylint",
6064
"pylintrc",
6165
"pyproject",
6266
"pytest",
67+
"pyutils",
68+
"rabbitmq",
6369
"rcfile",
6470
"repos",
6571
"sessionid",
6672
"skipif",
6773
"testenv",
74+
"Tomáš",
6875
"unpackb",
6976
"unsubscriptable",
7077
"unsubscription",
7178
"venv",
79+
"virtualenv",
7280
"wakeup",
7381
"xdist",
7482
"xenial",
@@ -78,16 +86,17 @@
7886
"editor.rulers": [72, 88],
7987
"editor.tabSize": 4,
8088
"git.ignoreLimitWarning": true,
89+
"isort.args": ["--virtual-env", "${workspaceFolder}/.venv"],
8190
"python.linting.banditEnabled": false,
8291
"python.linting.mypyEnabled": true,
8392
"python.linting.pydocstyleEnabled": true,
8493
"python.linting.pylintEnabled": true,
8594
"python.linting.pylintUseMinimalCheckers": false,
86-
"python.sortImports.args": ["--virtual-env", "${workspaceFolder}/.venv"],
8795
"python.testing.autoTestDiscoverOnSaveEnabled": true,
8896
"python.testing.nosetestsEnabled": false,
8997
"python.testing.pytestArgs": ["-n8"],
9098
"python.testing.pytestEnabled": true,
9199
"python.testing.unittestEnabled": false,
92-
"python.pythonPath": ".venv/bin/python3"
100+
"python.pythonPath": ".venv/bin/python3",
101+
"files.insertFinalNewline": true
93102
}

CHANGELOG.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (C) DATADVANCE, 2010-2022
2+
Copyright (C) DATADVANCE, 2010-2023
33
44
Permission is hereby granted, free of charge, to any person obtaining a
55
copy of this software and associated documentation files (the
@@ -23,13 +23,31 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323

2424
# Changelog
2525

26+
## [1.0.0rc1] - 2022-11-16
27+
28+
- DjangoChannelsGraphqlWs has migrated to the recent versions of Django,
29+
Channels, and Graphene. All other Python dependencies updated.
30+
- Server outputs a warning to the log when operation/resolver takes
31+
longer than specified timeout, which is one second by default. The
32+
settings `GraphqlWsConsumer.warn_operation_timeout` and
33+
`GraphqlWsConsumer.warn_resolver_timeout` allow to tune the timeout or
34+
even disable the warning at all.
35+
- If exception raises from the resolver a response now contains a field
36+
"extensions.code" with a class name of the exception.
37+
- Added support for async resolvers and middlewares.
38+
- WARNING: This release is not backward compatible with previous ones!
39+
The main cause is a major update of Django, Channels, and Graphene,
40+
but there are some introduced by the library itself. In particular:
41+
- Context lifetime and content have changed. See README.md for
42+
details.
43+
2644
## [0.9.1] - 2022-01-27
2745

2846
- Minor fix in logging.
2947

3048
## [0.9.0] - 2021-10-19
3149

32-
- Ability to configure server notification queue limit per subscribtion.
50+
- Ability to configure server notification queue limit per subscription.
3351

3452
## [0.8.0] - 2021-02-12
3553

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (C) DATADVANCE, 2010-2021
3+
Copyright (C) DATADVANCE, 2010-2023
44

55
Permission is hereby granted, free of charge, to any person obtaining a
66
copy of this software and associated documentation files (the

0 commit comments

Comments
 (0)