Code

Opened 8 years ago

Closed 8 years ago

#1410 closed defect (fixed)

[magic-removal] request.user should lazy load

Reported by: adrian Owned by: adrian
Component: Core (Other) Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

As of [2423], request.user hits the database for every request, to grab the logged-in user. This should instead do lazy loading, so that the user is only looked up if request.user is accessed. Previously, this was implemented as a property.

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by jkocherhans

  • Resolution set to fixed
  • Status changed from new to closed

(In [2431]) magic-removal: fixed #1410. The UserSource class will eventually be replaced with the muti-auth stuff.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.