[PR #2956] [CLOSED] Improve performance of Swagger docs #12473

Closed
opened 2025-12-29 22:21:47 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2956
Author: @axnsan12
Created: 3/4/2019
Status: Closed

Base: developHead: docs-performance


📝 Commits (5)

  • dd35faf Improve performance of schema views
  • e7c84cb Make generate_swagger command work
  • b93a0cc Improve swagger-ui initial render time
  • 2abfdc9 Use the same OpenAPI document for all schema views
  • 6954519 Improve ReDoc initial render time

📊 Changes

2 files changed (+25 additions, -12 deletions)

View changed files

📝 netbox/netbox/settings.py (+10 -0)
📝 netbox/netbox/urls.py (+15 -12)

📄 Description

This PR enables caching for schema views and disables some time-consuming rendering options on the UI side. See commit messages for more details.

Fixes:

Addresses #2665 (partially)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/2956 **Author:** [@axnsan12](https://github.com/axnsan12) **Created:** 3/4/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `docs-performance` --- ### 📝 Commits (5) - [`dd35faf`](https://github.com/netbox-community/netbox/commit/dd35faf4226c0af489722d314068dff9df8f7b8a) Improve performance of schema views - [`e7c84cb`](https://github.com/netbox-community/netbox/commit/e7c84cb32bb2605fb8c7f2658ce08c6d3eef825d) Make `generate_swagger` command work - [`b93a0cc`](https://github.com/netbox-community/netbox/commit/b93a0cc72275cc534663a610c4121f275eb4d4f1) Improve swagger-ui initial render time - [`2abfdc9`](https://github.com/netbox-community/netbox/commit/2abfdc90a81486008c2d7c827cb6498953e010a1) Use the same OpenAPI document for all schema views - [`6954519`](https://github.com/netbox-community/netbox/commit/69545199f81950177e6522aec9ad9af28d24d447) Improve ReDoc initial render time ### 📊 Changes **2 files changed** (+25 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/settings.py` (+10 -0) 📝 `netbox/netbox/urls.py` (+15 -12) </details> ### 📄 Description This PR enables caching for schema views and disables some time-consuming rendering options on the UI side. See commit messages for more details. ### Fixes: Addresses #2665 (partially) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:21:47 +01:00
adam closed this issue 2025-12-29 22:21:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12473