-
-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(CLI): Fix xdist issue #2931
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
cofin
approved these changes
Dec 26, 2023
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/2931 |
provinzkraut
added a commit
that referenced
this pull request
Dec 30, 2023
Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 4, 2024
Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 4, 2024
Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 6, 2024
Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
cofin
added a commit
that referenced
this pull request
Jan 7, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Jan 13, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Jan 13, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
cofin
added a commit
that referenced
this pull request
Jan 13, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * docs: fix typo for dto-tutorial/01-simple-dto-exclude (#2959) Update 01-simple-dto-exclude.rst remove one extra `it` * docs: add jrycw as a contributor for doc (#2961) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * Bug: Litestar changing root logger by default Fixes #2862 * test: Improve `litestar.concurrency` coverage (#2955) * Improve concurrency.py coverage Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> * fix: only set root logger if it has no handlers * Bug: Litestar changing root logger by default Fixes #2862 * docs: fix code block in docstring (#2965) * fix code block in docstring of TestClient * fix code block in docstring of AsyncTestClient --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * Bug: Litestar changing root logger by default Fixes #2862 * fix: message where missing dependency name doesn't match install extra (#2921) * Fix faulty exception wording * Fix another spotted mismatch * PR review --------- Co-authored-by: Peter Schutt <peter.github@proton.me> * docs: add horo-fox as a contributor for bug (#2975) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * docs: add wer153 as a contributor for doc (#2972) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * fix: modify test case for picologging * feat: remove all handlers before executing test case. * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: Jerry Wu <jerry@ycwu.space> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Kim Minki <wer153@naver.com> Co-authored-by: horo <143025439+horo-fox@users.noreply.github.com> Co-authored-by: Peter Schutt <peter.github@proton.me> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 20, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
cofin
added a commit
that referenced
this pull request
Jan 20, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 21, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Jan 21, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 21, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Jan 21, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 23, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Jan 23, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 26, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Jan 26, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Jan 27, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Jan 27, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Feb 3, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Feb 3, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Feb 3, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Feb 3, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Feb 4, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Feb 4, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
provinzkraut
added a commit
that referenced
this pull request
Feb 6, 2024
* feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org>
provinzkraut
added a commit
that referenced
this pull request
Feb 6, 2024
* Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: `structlog` plugin & bug fixes (#2943) * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: example app using structlog * fix: updated structlog with request logging * fix: lazy initialized structlog fix * feat: add structlog plugin * fix: adds `set_level` to all Logging configurations * fix: check that the object has the `setLevel` method before calling * feat: adds test for plugin * fix: parameter naming for `set_level` abstract method * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(channels): Postgres backends (#2803) * wip Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * some debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * use a separate connection to publish/listen Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * reintroduce flaky Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add psycopg backend Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix backend issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Undo test debugging changes Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * mark groups Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Ensure channel names ar quoted Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * sleep debugging Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * update docs Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix docs link Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Add missing listener test Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Formatting Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix test typing Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * Fix some coverage issue Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * test skip sourcery Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * test(channels): Improve channels testing (#2838) * Improve channels testing --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * chore(typing): various pyright issues (#2897) Fix various pyright issues Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * fix(channels): Trailing messages after unsubscribes (#2894) Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(cli): Add ``--schema`` and ``--exclude`` option to route CLI. (#2886) * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * add exclude and schema cli options to route. * updates per linting, mypy, and etc. * fix some more mypy stuff. * fix issue with linting. * add doc for route cli options. * fix issue with python3.8 not liking dict type. * Update docs/usage/cli.rst * Update litestar/cli/_utils.py * fix malformed docs table. --------- Co-authored-by: Jacob Coffee <jacob@z7x.org> * test(CLI): Fix xdist issue (#2931) Fix test for xdist Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat(core): Replace `anyio.to_thread.run_sync` with native versions (#2937) Replace anyio.to_thread.run_sync with native versions Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: structlog detects tty by default * chore: linting fixes * fix: color code correction * fix: adjusted color code to be more visible * fix: additional config settings * feat: enable pretty-print in TTY * fix: apply rich configuration * fix: updated formatting to align with other messages * chore: trim whitespace --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> * feat: allow using custom `CompressionFacade` implementations (#2952) * refactor: move the different compressions into their own implementations * feat: check if encoding given by the facade is accepted * Bump version to 2.6.0 Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> * feat: allow use of custom CompressionFacade implementations * feat: allow gzip to be used as fallback for any backend * docs: clarify 'backend' * test: rename test to a clearer name * docs: add docstring for 'CompressionFacade.encoding' * fix: explicitly specify facade type * fix: only import BrotliCompression if backend is brotli If the backend is not brotli, then the user may not have installed brotli which would result in an incorrect MissingDependency exception. --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com> * feat: Add `reload-include` and `reload-exclude` from uvicorn to CLI (#2973) * Add reload-include and reload-exclude feature * Update documentation * Fix tests, update documentation * feat: allow `root` logger configuration to be disabled (#2969) * docs: Fix reference error (#2983) Fix doc reference error * fix: correctly render stdlib logs as string instead of bytes * feat: add missing timestamper to standard logging for structlog * feat: filter out `color_message` by default * feat: add nocover for dev logger * feat: adds test for `TTY` config of structlog * feat: increased coverage * fix: remove incorrect call to `get` a plugin * feat: additional coverage * fix: remove unnecessary mixin * feat: additional coverage * fix: add ignore on lines that are actually covered * feat: add deprecated function --------- Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> Co-authored-by: andrew do <andrewddo@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: guacs <126393040+guacs@users.noreply.github.com> Co-authored-by: FergusMok <FergusMok1@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix an issue introduced in #2894 that would cause tests to fail if they are not pinned to an xidst worker.