Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information