Skip to content

Commit

Permalink
Merge branch 'v1.0.0rc1-upgrade-to-django-4'
Browse files Browse the repository at this point in the history
  • Loading branch information
prokher committed Apr 27, 2023
2 parents f868611 + aa79f54 commit d2cbb4d
Show file tree
Hide file tree
Showing 39 changed files with 3,244 additions and 2,720 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) DATADVANCE, 2010-2021
# Copyright (C) DATADVANCE, 2010-2023
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) DATADVANCE, 2010-2021
# Copyright (C) DATADVANCE, 2010-2023
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) DATADVANCE, 2010-2021
# Copyright (C) DATADVANCE, 2010-2023
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand Down
54 changes: 0 additions & 54 deletions .pre-commit-config.yaml

This file was deleted.

7 changes: 3 additions & 4 deletions .python-version
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
3.9.6
3.8.5
3.7.8
3.6.11
3.10.11
3.9.16
3.8.16
15 changes: 12 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) DATADVANCE, 2010-2020
// Copyright (C) DATADVANCE, 2010-2023
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
Expand Down Expand Up @@ -32,10 +32,13 @@
"asgi",
"asgiref",
"asyncio",
"blazingly",
"choco",
"dedent",
"deserialization",
"edouardtheron",
"envlist",
"GQLWS",
"graphiql",
"graphql",
"inmemory",
Expand All @@ -56,19 +59,24 @@
"prokhorov",
"pydocstyle",
"pyenchant",
"pyenv",
"pylint",
"pylintrc",
"pyproject",
"pytest",
"pyutils",
"rabbitmq",
"rcfile",
"repos",
"sessionid",
"skipif",
"testenv",
"Tomáš",
"unpackb",
"unsubscriptable",
"unsubscription",
"venv",
"virtualenv",
"wakeup",
"xdist",
"xenial",
Expand All @@ -78,16 +86,17 @@
"editor.rulers": [72, 88],
"editor.tabSize": 4,
"git.ignoreLimitWarning": true,
"isort.args": ["--virtual-env", "${workspaceFolder}/.venv"],
"python.linting.banditEnabled": false,
"python.linting.mypyEnabled": true,
"python.linting.pydocstyleEnabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintUseMinimalCheckers": false,
"python.sortImports.args": ["--virtual-env", "${workspaceFolder}/.venv"],
"python.testing.autoTestDiscoverOnSaveEnabled": true,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestArgs": ["-n8"],
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.pythonPath": ".venv/bin/python3"
"python.pythonPath": ".venv/bin/python3",
"files.insertFinalNewline": true
}
22 changes: 20 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (C) DATADVANCE, 2010-2022
Copyright (C) DATADVANCE, 2010-2023
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
Expand All @@ -23,13 +23,31 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# Changelog

## [1.0.0rc1] - 2022-11-16

- DjangoChannelsGraphqlWs has migrated to the recent versions of Django,
Channels, and Graphene. All other Python dependencies updated.
- Server outputs a warning to the log when operation/resolver takes
longer than specified timeout, which is one second by default. The
settings `GraphqlWsConsumer.warn_operation_timeout` and
`GraphqlWsConsumer.warn_resolver_timeout` allow to tune the timeout or
even disable the warning at all.
- If exception raises from the resolver a response now contains a field
"extensions.code" with a class name of the exception.
- Added support for async resolvers and middlewares.
- WARNING: This release is not backward compatible with previous ones!
The main cause is a major update of Django, Channels, and Graphene,
but there are some introduced by the library itself. In particular:
- Context lifetime and content have changed. See README.md for
details.

## [0.9.1] - 2022-01-27

- Minor fix in logging.

## [0.9.0] - 2021-10-19

- Ability to configure server notification queue limit per subscribtion.
- Ability to configure server notification queue limit per subscription.

## [0.8.0] - 2021-02-12

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (C) DATADVANCE, 2010-2021
Copyright (C) DATADVANCE, 2010-2023

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

0 comments on commit d2cbb4d

Please sign in to comment.