-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Avoid unnecessary user get expiring session memberships #3910
Avoid unnecessary user get expiring session memberships #3910
Conversation
Build failed.
|
recheck |
Build succeeded.
|
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.
lgtm
I have a gut feeling that I should rebase and test this with #3875 before merging it, so I will call it blocked until that lands. This makes the most sense in terms of simple merge order. |
Build succeeded.
|
recheck |
Build succeeded.
|
This is kind of the gist of the answer I was looking for:
I just wanted to have a sense of if and where this gets called from after the reordering. It seems that it is called from https://github.com/django/django/blob/1.11.19/django/contrib/sessions/middleware.py#L58 Everything should be perfectly okay with that. This is a post-save signal, and we are able to clearly identify the original save that happens
|
Build succeeded (gate pipeline).
|
SUMMARY
This is something to speed up our middleware by 1 database query for every request.
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION
there seems to be no need to obtain the object at all, so we can just not do it. I tested the filter and create commands via the shell manually, and I know we have at least 1 functional unit test that covers this code path.