Skip to content
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

Don't cache openapi schema when debug/insecure mode is enabled #18017

Closed
prryplatypus opened this issue Nov 15, 2024 · 1 comment
Closed

Don't cache openapi schema when debug/insecure mode is enabled #18017

prryplatypus opened this issue Nov 15, 2024 · 1 comment
Labels
type: feature Introduction of new functionality to the application

Comments

@prryplatypus
Copy link
Contributor

NetBox version

v4.1.4

Feature type

Change to existing functionality

Triage priority

N/A

Proposed functionality

When debug mode or Django --insecure mode is enabled, the OpenAPI schema shouldn't be cached (or the cache should be busted upon reload/restart).

Use case

When developing plugins, it is common that the schema is changed. Having to bust this cache manually every time a change is made in development is additional unnecessary work the the developer, which hinders DX and in cases confuses the developer wondering why changes aren't showing.

Database changes

No response

External dependencies

No response

@prryplatypus prryplatypus added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Nov 15, 2024
@prryplatypus
Copy link
Contributor Author

Will not be needed when #18021 is fixed

@prryplatypus prryplatypus closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2024
@jeremystretch jeremystretch removed the status: needs triage This issue is awaiting triage by a maintainer label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants