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

Proxito: don't require the middleware for proxied apis #8203

Merged
merged 2 commits into from May 21, 2021

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented May 20, 2021

None of these need the proxito request middleware (response is needed).

The analytics api isn't listed because it depends on the unresolver,
which depends on the proxito middleware.

@stsewd stsewd requested review from ericholscher and a team May 20, 2021 22:51
None of these need the proxito request middleware (response is needed).

The analytics api isn't listed because it depends on the unresolver,
which depends on the proxito middleware.
@stsewd stsewd force-pushed the dont-require-middleware-on-proxied-apis branch from 01d944c to 3877651 Compare May 20, 2021 23:07
@@ -424,7 +424,7 @@ def test_highest_version_without_tags(self):
class TestFooterPerformance(TestCase):
# The expected number of queries for generating the footer
# This shouldn't increase unless we modify the footer API
EXPECTED_QUERIES = 15
EXPECTED_QUERIES = 12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@@ -126,6 +126,13 @@ class ProxitoMiddleware(MiddlewareMixin):

"""The actual middleware we'll be using in prod."""

skip_views = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could use a comment explaining why they can be skipped (basically what's in the PR)

@stsewd stsewd enabled auto-merge (squash) May 21, 2021 00:08
@stsewd stsewd merged commit f4c0a21 into master May 21, 2021
@stsewd stsewd deleted the dont-require-middleware-on-proxied-apis branch May 21, 2021 00:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants