Comments (4)
I think the assumption is that the toolbar will only render completed requests.. so the simplest fix is probably to filter out any request that is in the history list but still active. Possibly this could be done by just not adding it to the history list until the request is complete.
from pyramid_debugtoolbar.
I was about to file an issue over this. I think the proper fix is excluding active requests and @mmerickel commented above, but I think an easier/faster fix would be setting the default total_time
attribute to 0
(or "active" if that works) -- with the intent of allowing the request to appear in the history sidebar, but not cause the rendering error.
from pyramid_debugtoolbar.
I looked into this and it hasn't been an issue for quite a while due to some happenstances in how the server-sent-event logic works. However, I just pushed 6398b09 which avoids adding the request to the history until it is complete just to make it explicit until someone works on properly supporting showing some data about running requests in the UI.
Without this fix, you have to refresh the toolbar history screen for those old requests to appear because in the history they are considered "old". This ensures they are at the top of the stream when they complete and will automatically appear in the UI.
from pyramid_debugtoolbar.
Apologies my analysis here was wrong, there was a toolbar.visible
attribute added at some point that prevents this from being an issue. I've reverted my change and just added some tweaks in 5bd2ba8 to ensure the request shows up on the UI when it is complete.
from pyramid_debugtoolbar.
Related Issues (20)
- Redis panel HOT 1
- Memcached panel
- ElasticSearch panel
- HTML Validator panel
- set request.exception and request.exc_info when rendering intercepted exceptions
- Sqa panel code break for multiple threads HOT 4
- regex warning generated for > CPython 3.6: Flags not at the start of the expression HOT 3
- HeaderDebugPanel sometimes triggers an exception for no response. HOT 2
- proposal: differentiating repeat requests
- nginx proxy with gunicorn HOT 4
- proprosal: safe panel invocations HOT 1
- docs improvement: panels vs extra_panels HOT 2
- proposal: panel reordering HOT 4
- Debugtoolbar-Injected Code not compatible for XML HOT 2
- Support running as unix socket
- path at the left shows always `/_debug_toolbar/sse` when running with uwsgi HOT 3
- Exception raised with SQLAlchemy transaction
- currentThread deprecation HOT 4
- Error when running with pyramid-2.0 and pyramid_mako-1.0.2. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyramid_debugtoolbar.