Bug 36767

Summary: Add sign in/out link to TestResults appengine
Product: WebKit Reporter: Victor Wang <victorw>
Component: Tools / TestsAssignee: Victor Wang <victorw>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, commit-queue, dglazkov, ojan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
Proposed Patch
none
Proposed Patch
abarth: review-
Proposed Patch none

Description Victor Wang 2010-03-29 11:44:52 PDT
Add a link to TestResults appengine so admin can sign in and sign out.

TestResults appengine allows admins to view/do extra stuffs that normal users won't be able to. For example, admin can see a "delete" link next to a file and has the privilege to delete a file.
Comment 1 Victor Wang 2010-03-29 11:47:15 PDT
Created attachment 51941 [details]
Proposed Patch
Comment 2 Victor Wang 2010-03-29 11:49:50 PDT
Created attachment 51942 [details]
Proposed Patch
Comment 3 Ojan Vafai 2010-03-29 12:09:45 PDT
Comment on attachment 51942 [details]
Proposed Patch

> +        user = users.get_current_user()
> +        if user:
> +            user_email = user.email()
> +            sign = "Sign out"
> +            sign_url = users.create_logout_url(self.request.uri)

How about calling these login_text and login_url? "sign" could mean other things.

> +.sign {

s/sign/login ?

Otherwise, looks good.
Comment 4 Adam Barth 2010-03-29 13:06:46 PDT
Comment on attachment 51942 [details]
Proposed Patch

Please address Ojan's feedback.
Comment 5 Victor Wang 2010-03-29 13:44:10 PDT
Created attachment 51963 [details]
Proposed Patch

names updated. please take a look.
Comment 6 Adam Barth 2010-03-29 14:01:31 PDT
Comment on attachment 51963 [details]
Proposed Patch

LGTM
Comment 7 WebKit Commit Bot 2010-03-29 17:34:50 PDT
Comment on attachment 51963 [details]
Proposed Patch

Clearing flags on attachment: 51963

Committed r56753: <http://trac.webkit.org/changeset/56753>
Comment 8 WebKit Commit Bot 2010-03-29 17:34:55 PDT
All reviewed patches have been landed.  Closing bug.