-
Notifications
You must be signed in to change notification settings - Fork 737
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
Use internal IA for the AAQ instead of a config. #6160
Conversation
6020e03
to
001d35b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this is really nicely done and a really nice step forward, thanks @akatsoulas!
@@ -90,7 +90,7 @@ def _doc_page_cache_view(request, document_slug, *args, **kwargs): | |||
if ( | |||
request.user.is_authenticated | |||
or request.GET.get("redirect") == "no" | |||
or request.session.get("product_key") | |||
or request.session.get("product_slug") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I tried to find where we stuffed the product_slug
or product_key
into the session object, and I couldn't find anyplace where we do that. Maybe we don't need this line any longer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the key to product_slug
in the aaq
view.
https://github.com/mozilla/kitsune/blob/main/kitsune/questions/views.py#L535
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we ever insert the product_slug
key into the top level of the request.session
, only within the dictionary of the aaq_context
key, right? If so, it seems that we could remove this? It's not important and unrelated. I was just curious.
a93d9b6
to
4ec1ebe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the change from aaq_context.key
to aaq_context.product_slug
, I think there are still some instances of aaq_context.key
that need to change to aaq_context.product_slug
.
@@ -90,7 +90,7 @@ def _doc_page_cache_view(request, document_slug, *args, **kwargs): | |||
if ( | |||
request.user.is_authenticated | |||
or request.GET.get("redirect") == "no" | |||
or request.session.get("product_key") | |||
or request.session.get("product_slug") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we ever insert the product_slug
key into the top level of the request.session
, only within the dictionary of the aaq_context
key, right? If so, it seems that we could remove this? It's not important and unrelated. I was just curious.
No description provided.