Giter Site home page Giter Site logo

Comments (4)

mmerickel avatar mmerickel commented on August 16, 2024

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.

jvanasco avatar jvanasco commented on August 16, 2024

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.

mmerickel avatar mmerickel commented on August 16, 2024

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.

mmerickel avatar mmerickel commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.