Skip to content

[IA-4885]: Added a setting to disable warning and error for drf-spectacular#2841

Merged
hugo093 merged 1 commit intodevelopfrom
fix/IA-4885-Warnings-related-to-viewsets-in-tests
Mar 20, 2026
Merged

[IA-4885]: Added a setting to disable warning and error for drf-spectacular#2841
hugo093 merged 1 commit intodevelopfrom
fix/IA-4885-Warnings-related-to-viewsets-in-tests

Conversation

@hugo093
Copy link
Copy Markdown
Contributor

@hugo093 hugo093 commented Mar 19, 2026

What problem is this PR solving?

The logs are flooded with warnings and errors from drf-spectacular

Related JIRA tickets

IA-4885

Changes

Added an env variable DRF_SPECTACULAR_DISABLE_ERRORS_AND_WARNINGS to disable the warnign and errors. By default, if nothing is provided it's disabled

How to test

Either access /swagger-ui/ or run the test test_open_api with different env values. It shoudl either print a bunch of warning errors or not.

@hugo093 hugo093 added the enhancement New feature or request label Mar 19, 2026
@hugo093 hugo093 marked this pull request as ready for review March 19, 2026 10:46
@hugo093 hugo093 requested a review from tdethier March 20, 2026 10:39
@quang-le quang-le added the release Should be released in production at next deploy label Mar 20, 2026
@hugo093 hugo093 merged commit fbc7dcb into develop Mar 20, 2026
10 checks passed
@hugo093 hugo093 deleted the fix/IA-4885-Warnings-related-to-viewsets-in-tests branch March 20, 2026 14:13
@beygorghor beygorghor added the user tested Has already been tested on staging label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request release Should be released in production at next deploy Released user tested Has already been tested on staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants