django-commons / django-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.
https://django-debug-toolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
8.08k stars 1.05k forks source link

Async compatible `StaticFilesPanel` #1983

Closed salty-ivy closed 2 months ago

salty-ivy commented 2 months ago

Description

Uses signals for automatic instrumentation of StaticFilesPanel and trigger recording mechanis. and 2 ContextVar one for storing staticfiles particular to that request context and another for to identify signal for each request context.

Checklist:

salty-ivy commented 2 months ago

I think it still need those integration type tests. on it.

salty-ivy commented 2 months ago

I have added one new test that practically tests panel's async compatibility which it failed before. We can test the concurrent capabilities in integration testing.