Fix a regression in accessing the username for the session.
Review Request #6900 — Created Feb. 3, 2015 and submitted
My previous optimization to fetching the user resource along with the
session broke theget_username()function, which attempted to follow a
now non-existent link. It's been updated to get the expanded user
resource instead and access the username from that.
Ran
rbt status. Before, it would crash with an attribute error. After,
it showed me a list of my open review requests.
Tool: PEP8 Style Checker Processed Files: rbtools/utils/users.py Tool: Pyflakes Processed Files: rbtools/utils/users.py