-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
API Responses page in built-in Telemetry UI is not responding with ~1000 endpoints #139
Comments
Thanks ! Can you share your /stats API response with data for that page, so I can use it to reproduce ? I will try to simulate as well |
Sorry, I took a closer look and it turns out there were 1000 different endpoints. I was mistaken with number of express route files (~100), each of which might have ~10 endpoints. So in total there were ~1000 individual end points. Do you think swagger-stats's built-in Telemetry UX could some how still works in this cases, or could we some how improve API Responses page for such use-cases? I created this minimal repo with ~1000 generated endpoints to reproduce |
Thank you! Will review |
@sv2 Is there any update from your end? I could help creating a PR if we agree on a solution. I personally perfer simple pagination (.e.g <= 20,50,100 APIs/page) to reduce the cost of chart rendering first. Does that sound good to you? |
Good progress - now looks much more responsive with 1000 api endpoints: Perhaps you can try building with latest UX package to validate from your side ? |
@sv2 Nothing seems to change on my side. I built the new ux, replaced the old one in I would not blame the code or the library. There's simply too many charts. And no one would look at 1000 charts at the same time, so why do we bother rendering all of them? |
Right, the change is exactly that - to render only charts that are currently visible. Let me do a bit more testing. |
Made several corrections - please try with swagger-stats-ux 0.95.29 |
Thank you, the loading placeholder solved the issue, although we'll need to update |
Great! Will release swagger-stats version with updated ux shortly |
swagger-stats v0.99.2 with this fix released |
My web application has around
801000 endpoints, so the API Responses page is unresponsive because of too many charts, making the page unusable.What would be the best way to address this issue in Swagger Stats UI. Something that comes in my mind:
I would like to discuss if we want to fix this. I am able to contribute to fixing this with a PR, once we agreed on the solution.
The text was updated successfully, but these errors were encountered: