Skip to content
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

Update serializable branch with main #2072

Merged
merged 83 commits into from
Feb 9, 2025
Merged

Conversation

tim-schilling
Copy link
Member

Description

Merges main into serializable and resolves several merge conflicts. It may have also fixed a bug with the history panel.

Checklist:

  • I have added the relevant tests for this change.
  • I have added an item to the Pending section of docs/changes.rst.

tim-schilling and others added 30 commits July 10, 2024 07:05
updates:
- [github.com/pre-commit/mirrors-eslint: v9.6.0 → v9.7.0](pre-commit/mirrors-eslint@v9.6.0...v9.7.0)
- [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.5.2](astral-sh/ruff-pre-commit@v0.5.1...v0.5.2)
extract redudant code in _postprocess

disable non async capable panels

add middleware sync and async compatible test case

rename file

add panel async compatibility tests/

added panel async compatibility tests/

marked erreneous panels as non async

refactor panel test

Add function docstrings

update async panel compatibility tests

revert middleware back to __call__ and __acall__ approach

update architecture.rst documentation

fix typo in docs

remove ASGI keyword from docs
* Add asynchronous examples (#1819)

* Add tests for async usage (#1819)

* Include daphne is requirements_dev
updates:
- [github.com/adamchainz/django-upgrade: 1.19.0 → 1.20.0](adamchainz/django-upgrade@1.19.0...1.20.0)
- [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.4](astral-sh/ruff-pre-commit@v0.5.2...v0.5.4)
Previously, if a project used the `FORCE_SCRIPT_NAME` setting (common when
hosting a Django application on a subdirectory path via a reverse proxy),
the `django.urls.resolve()` call would always raise `Resolver404` in the
middleware. As a result, `is_toolbar_request()` always returned False.

This caused internal toolbar URLs to be inspected, and also indirectly
led to a request loop when refreshing the history panel.

In most cases (if `FORCE_SCRIPT_NAME` is unset), `get_script_prefix()` will
return "/" and the `replace()` will be a no-op.
Maintains support for `SCRIPT_NAME` without manually calling
`get_script_prefix()`.

Tests that involved manually setting the `path` attribute of a request
have been reworked to use a `RequestFactory` so that the `path` and
`path_info` attributes are both set appropriately.
* Support select and explain for UNION queries

Some UNION queries can start with "(", causing it to not be
classified as a SELECT query, and consequently the select and
explain buttons are missing on the SQL panel.

* Remove unit test limitation to postgresql

* Document integration test for postgres union select explain test.
updates:
- [github.com/pre-commit/mirrors-eslint: v9.7.0 → v9.8.0](pre-commit/mirrors-eslint@v9.7.0...v9.8.0)
- [github.com/astral-sh/ruff-pre-commit: v0.5.4 → v0.5.5](astral-sh/ruff-pre-commit@v0.5.4...v0.5.5)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6](astral-sh/ruff-pre-commit@v0.5.5...v0.5.6)
- [github.com/tox-dev/pyproject-fmt: 2.1.4 → 2.2.1](tox-dev/pyproject-fmt@2.1.4...2.2.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Slightly increase opacity of debug toolbar button

Avoids an accessibility issue (low-contrast text) when the page behind the button is white.

Fixes #1981

* Add line to changelog.

---------

Co-authored-by: Tim Schilling <[email protected]>
* make redirect panel async capable by using aprocess_request patterm

* added async compability test for redirect panel

* remove redundant call for super process_request
* Added table background color setting when dark theme
updates:
- [github.com/pre-commit/mirrors-eslint: v9.8.0 → v9.9.0](pre-commit/mirrors-eslint@v9.8.0...v9.9.0)
- [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.5.7](astral-sh/ruff-pre-commit@v0.5.6...v0.5.7)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](astral-sh/ruff-pre-commit@v0.5.7...v0.6.1)
- [github.com/abravalheri/validate-pyproject: v0.18 → v0.19](abravalheri/validate-pyproject@v0.18...v0.19)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* make panel non async by default
* incoperate signals and contextvars to record staticfiles for concurrent requests

* remove used_static_files contextvar and its dependencies allow on app ready monkey patching

* async static files panel test

* update doc

* Code review changes

* suggested changes
* Refs #1668: Fixed the unsortable session keys fallback
* Disable the flake8-simplify ruleset
updates:
- [github.com/pre-commit/mirrors-eslint: v9.9.0 → v9.9.1](pre-commit/mirrors-eslint@v9.9.0...v9.9.1)
- [github.com/astral-sh/ruff-pre-commit: v0.6.1 → v0.6.2](astral-sh/ruff-pre-commit@v0.6.1...v0.6.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
pre-commit-ci bot and others added 26 commits November 25, 2024 22:52
updates:
- [github.com/pre-commit/mirrors-eslint: v9.14.0 → v9.15.0](pre-commit/mirrors-eslint@v9.14.0...v9.15.0)
- [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.8.0](astral-sh/ruff-pre-commit@v0.7.3...v0.8.0)
This informs users to submit security reports through GitHub's private vulnerability mechanism.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Matthias Kestenholz <[email protected]>
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4](astral-sh/ruff-pre-commit@v0.8.3...v0.8.4)
…r .js file (#2047)

simpler work-around for incorrect MIME type for toolbar.js, and example of console error message.
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.8.6](astral-sh/ruff-pre-commit@v0.8.4...v0.8.6)
This tests the build and deployment process much more often.
I forgot that limiting to pushes on the main branch
would exclude pushes to tags.
* [pre-commit.ci] pre-commit autoupdate
* Update ESLint, ruff

Co-authored-by: Matthias Kestenholz <[email protected]>
* Add Django 5.2 to tox matrix

* Update changelog
updates:
- [github.com/pre-commit/mirrors-eslint: v9.18.0 → v9.19.0](pre-commit/mirrors-eslint@v9.18.0...v9.19.0)
- [github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3](astral-sh/ruff-pre-commit@v0.9.2...v0.9.3)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4](astral-sh/ruff-pre-commit@v0.9.3...v0.9.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Add async union view for tests.

- Add async json explain for tests.
@tim-schilling tim-schilling merged commit 5a21920 into serializable Feb 9, 2025
53 checks passed
@tim-schilling tim-schilling deleted the serializable-wip branch February 9, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.