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

Whitelist request patterns instead of blacklisting them #21

Open
cb109 opened this issue Jun 26, 2019 · 1 comment
Open

Whitelist request patterns instead of blacklisting them #21

cb109 opened this issue Jun 26, 2019 · 1 comment
Milestone

Comments

@cb109
Copy link

cb109 commented Jun 26, 2019

I often debug a single endpoint with a unique request pattern. To be able to only see that in the console I have to blacklist all other request patterns that my application may produce during debugging. That can be quite annoying. It would be helpful to have a separate whitelist setting like INCLUDE_REQUEST_PATTERNS where I just state what I want to be printed to the console and everything else is silenced. Of course the User would have to decide whether to blacklist or whitelist, as using both does not make much sense.

I can do a PR if you want, let me know if it's something worth putting time into.

@cb109
Copy link
Author

cb109 commented Jul 16, 2019

@bradmontgomery I tried writing a test for IGNORE_REQUEST_PATTERNS to extend it for a whitelist feature, but I'm a little stuck there. How would I actually run your tests without having a manage.py or an actual django project?

@bradmontgomery bradmontgomery added this to the 0.9.0 Release milestone Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants