Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 24, 2012
  1. Fixed a problem where the fonts used to generate the images weren't a…

    Alex Komoroske authored
    …ccessible to the voting handler.
  2. Made static serving work by making the upload: statement only upload …

    Alex Komoroske authored
    …static files. However, this means that voting.py did not have access to static/robohornet.png, so make a copy for it to use.
  3. Removing the acls for the public announcement. DOES NOT WORK; mixing …

    Alex Komoroske authored
    …a script with static file handlers isn't working, likely because of the upload:.* line.
Commits on May 18, 2012
  1. Changed how the OAuth flow works so that the Code parameter is never …

    Alex Komoroske authored
    …left in the URL for the user, because if they shared that code it could _potentially_ allow others to authenticate as them.
  2. Switch to being case insenstive when checking to make sure a given is…

    Alex Komoroske authored
    …sue is actually a performance issue.
  3. Switch to actually using the issues hosted in the real RoboHornet rep…

    Alex Komoroske authored
    …o to run votes off of. This (temporarily) requires us to request the "repo" scope via the GitHub API to see details in the hidden repo. Once this is public we can remove that scope so it just needs simple public access again. Right now only people with view or commit access to the hidden repo will be able to see the issues.
  4. Made it so that we can load up from different client_config.json file…

    Alex Komoroske authored
    …s when in development mode and when in production mode, minimizing the risk of pushing the wrong config file to production and breaking things.
Commits on May 12, 2012
  1. Make it so that if the badge image is already in memcache we don't ne…

    Alex Komoroske authored
    …ed to hit the datastore at all.
Commits on May 7, 2012
  1. Minor fix to handle the rare case where memcache expired one of the i…

    komoroske@google.com authored
    …mage properties and not the other.
    
    git-svn-id: https://robohornet.googlecode.com/svn/trunk@150 48a18672-c925-a5f9-4b90-b3a8688770c7
Commits on May 4, 2012
  1. Created a badge/vote server in App Engine that authenticates to GitHu…

    komoroske@google.com authored
    …b to generate badge images and handle voting.
    
    Squashed commit of the following:
    
    commit 83895472b2aa7b2e3e1abf8e483bc957c681feae
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 14:34:34 2012 -0700
    
        Correct text positioning (for some reason it's different in prod than in dev)
    
    commit 86fc37baa3249047e9d124905d85f98957d35c6a
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 14:13:25 2012 -0700
    
        Fixed a bug where the first time you signed in it wouldn't say who you were authenticated as.
    
    commit c1b05aa3371bde2c68a36e07b3b24e2c044e0379
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 14:10:46 2012 -0700
    
        Stopped requiring a google account sign in for voting (you need a GH signin anyway)
    
    commit c4ed86b936fe41f9050cf882d25c263265fcb79c
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 14:08:41 2012 -0700
    
        Very simple styling for the vote pages.
    
    commit 84e445c6f532cf5ca0222140c2cd8471db1ea1c6
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 14:05:26 2012 -0700
    
        A real badge if there isn't such an issue.
    
    commit 9fd5c39073715df4128d2817d2b566b5ba4f7d9e
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 13:59:52 2012 -0700
    
        Basic error handling if the vote transaction fails.
    
    commit 0887414beaa1bc5f6408cd7fc128c9b08b009f32
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 10:45:09 2012 -0700
    
        Plumbed through voting/unvoting to the UI.
    
    commit 9ba25f21933eb3efc625d1db31bcc2a85b7cc2ac
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 10:28:37 2012 -0700
    
        Defined a toggle_vote method on the Issue (not exposed to the UI yet)
    
    commit e129467c1b70d8ef152d72b4ea5126b0771f9892
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Fri May 4 10:25:34 2012 -0700
    
        Implemented unvoting functionality (although it's not exposed via the UI yet).
    
    commit 35d2be300619fb9d26dc059a57de81988a5510c2
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 19:36:48 2012 -0700
    
        Completed drawing code given the current inputs.
    
    commit 8344bbe637837ae6005fc521ec5f581b120f1e2a
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 19:28:19 2012 -0700
    
        Draw all of the inner orange pill. Drawing works, it just needs some tweaking on padding.
    
    commit a32081e7e23efba8f246bf81518aadd438c1ce28
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 19:21:57 2012 -0700
    
        Draw vote count (wrong color on purpose)
    
    commit 8ba242aec0ed2f372156b3972725b6930ef6b5d6
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 19:19:27 2012 -0700
    
        Draw the issue number
    
    commit e94beaec8a83614640836e26fbbde6733b50c26d
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 19:16:36 2012 -0700
    
        Draw the badge image as well
    
    commit 1a9ef2235ddcb68a2193aad88866b84c1ef77950
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 19:08:50 2012 -0700
    
        Draw the background of the badge
    
    commit 693ff77926798039049fb81189af0dd67c399276
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 19:06:07 2012 -0700
    
        Size the badge based on amount of text to print.
    
    commit 33e9c8b2eee0257a812259866327811b4ae1b46e
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 18:54:16 2012 -0700
    
        Defined color constants that we'll use for the badge.
    
    commit a0dfcfc89e2cb712e084f31b03d5bcb7212c26df
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 18:50:04 2012 -0700
    
        Made it so badges don't rely on there being a fixed size for badges.
    
    commit 90d5b5d069fc76b0a137d2d5cc18efb81afaa707
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 18:42:16 2012 -0700
    
        Factored out drawing code in preparation for making it much more legit.
    
    commit 65071ebe0f372c75a51c60a23695cdb07215b9bf
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 17:58:31 2012 -0700
    
        Include the image badge on the vote page, for reference.
    
    commit 4230862de24cba33254d23c5cd5dcba203ed8393
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 17:57:19 2012 -0700
    
        Changed the URL patterns so that without the badge parameter you get the vote page.
    
    commit 84c871b544a34eac590a7a950af91bf4b1725b57
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 17:56:31 2012 -0700
    
        We cache the image in memcache for quickness.
    
    commit b265b488acfb385d32d4eced1cfaa848bf0e3f6e
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 15:58:06 2012 -0700
    
        Cache the username in memcache so we don't have to keep hitting github.
    
    commit 7f11bcadf435bfc30014b3b77a49273bcfd2dd37
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 15:51:14 2012 -0700
    
        Actual voting happens in a transaction to avoid cases where the cached number gets out of sync with the actual number of votes.
    
    commit 6c688f49cb0db0654392b04ee0cb2be5f7390de2
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:54:06 2012 -0700
    
        Made each vote have its issue as its parent (so we can do it in a transaction).
    
    commit f4d2e579b7923a15d3ecaebde27a63d4a86baa0a
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:46:24 2012 -0700
    
        Created render_template convenience function for voting pages. Added an error message slot in the vote.html template, and use it for all types of error messages.
    
    commit 343cda97adb187a8746a722eb8b2a0b75b2da9bb
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:38:32 2012 -0700
    
        Switched to only have one voted template,for simplicity.
    
    commit cb1a2f14f37c6e06fe4c6fea59c575bbb4fe2d1f
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:37:10 2012 -0700
    
        Fixed a bug where when voting it said no issue because we passed a string, not an int.
    
    commit d3d7ca9c6d73329d05c7154c9de5441827abf1a5
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:32:44 2012 -0700
    
        Make voting work even if no one has requested the badge image for that issue yet.
    
    commit 0148c3898c3630e4de81729076ac9df38dc252c9
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:29:23 2012 -0700
    
        Show a stub of a no issue image if there isn't an issue that comes back from GitHub.
    
    commit c1e5bee84f30178def22b9300d74b82aebdac2fe
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:27:13 2012 -0700
    
        Check to make sure the issue in GitHub has the appropriate label.
    
    commit cd2783fd42d4ff680be9b269a2730b3874a3ec8a
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:22:22 2012 -0700
    
        Basic checking to make sure the issue actually exists in GitHub.
    
    commit 26b435a3a6ccd76ed4812eec83ea7a42d0a29e7f
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Thu May 3 11:16:46 2012 -0700
    
        Added another TODO
    
    commit 4f234055862d83231d4ede4487e02bee3eaeb8a0
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Wed May 2 08:51:45 2012 -0700
    
        Fixed the redirect bug (missing the "s" in https).
    
    commit ad65836d12e2b4752555769f5686b3be43d4e340
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Tue May 1 20:17:02 2012 -0700
    
        Started work to check if github thinks an issue should exist. Doesn't work because GitHub forwards us to developer.github.com for some reason.
    
    commit 30126b36e076902a0e1263c63b75b5cda46824e9
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Tue May 1 20:04:53 2012 -0700
    
        Only allow a given user to vote once.
    
    commit 2092d55326acd7386f8741cf252bc0be4b846f0c
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Tue May 1 19:59:38 2012 -0700
    
        Add a gitignore file that will ignore the client_config.json files if you have one in your repo.
    
    commit 74220570cf3f57cc5211f1f7ffc86c9ab3695cdd
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Tue May 1 19:55:15 2012 -0700
    
        Added an explicit client_config sample file
    
    commit b34a052d540f664102d1508757e8e72ceccaee72
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 21:02:51 2012 -0700
    
        Removed an old TODO from the code that no longer applies.
    
    commit 516fbe3b038f09a1e0f5123c735dc061a509d745
    Merge: f43b510 f614813
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 21:01:56 2012 -0700
    
        Merge branch 'github-auth' into badges
    
    commit f614813b5cd47931fbf731e92d80378ee1d4345a
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 21:00:13 2012 -0700
    
        Actually record the username from github when voting.
    
    commit ce8defb57fb74a6031d6b0525fa8de9c3c07a96d
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 20:52:12 2012 -0700
    
        Don't allow a vote if the user isn't authenticated with GitHub.
    
    commit 9035a6f836e07e528954b19bd18f0d555fd865a0
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 20:47:00 2012 -0700
    
        We actually set the access_code cookie clientside.
    
    commit 75458ac6652df3e380cc6b20044f0eca0ac5160e
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 20:33:10 2012 -0700
    
        Parse out the access token.
    
    commit 0da4d21a38a716fba0045d237e848d81c1a6a36f
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 20:28:58 2012 -0700
    
        We send the code back to github to get an access token (but we don't currently do anything with it).
    
    commit 37ec74d4f4386de8f8c1fe73ee38b17fafe4164b
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 20:25:13 2012 -0700
    
        Fixed a bug where after loading config from JSON we couldn't do string substitution.
    
    commit f9fb681b2c23c13641688fe7b5d0fe88a6bd26fe
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 20:16:34 2012 -0700
    
        Load client_id and client_secret from a file that's deliberately not in the repo.
    
    commit e9e4b86a9010d920faab4bb577cb4ed670e8b3c9
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 20:01:22 2012 -0700
    
        We redirect you to git hub if you aren't logged in. But when github redirects you back we don't catch you.
    
    commit e7201e2dbd9c00a1c20e346f6454281b5c0ea99e
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 19:53:10 2012 -0700
    
        Oops, use the already-parsed cookies dictionary on the request object.
    
    commit 3b73ba176260b2784c268196faad102d28622c83
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 19:42:36 2012 -0700
    
        Pull out the access cookie if it's set.
    
    commit f43b510a89ff1c9b2748a83d4f5c84d91144d79a
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 19:12:43 2012 -0700
    
        The badge images actually have the vote count.
    
    commit 220789ae755a753bb4aac7f923de64c591c0ae51
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 19:07:37 2012 -0700
    
        Keep track of vote_count on the issue seperately, for optimization reasons.
    
    commit 2fb1bc5bc3a6c5cce5653d15009daa6569b4d313
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 19:06:37 2012 -0700
    
        Refactor voting logic to be part of issue.
    
    commit c398268b135c97ee6ff2c379396d4d9324cdb22c
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 19:04:05 2012 -0700
    
        Very simple voting for an issue when posted to the vote URL.
    
    commit 125308eabae56824742bb8e6677655921c1edfd8
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 19:01:20 2012 -0700
    
        Fixed up definition of Vote data model.
    
    commit 89003f11dcb1d437142a6c60f3657eddde78d4da
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 18:55:44 2012 -0700
    
        Present a simple vote form at issue/xxx/vote URLs
    
    commit c4cacde8d6e53761b96cc0a72fc652e6f2a57cab
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 18:30:42 2012 -0700
    
        Defined a Vote object in the datastore.
    
    commit 66ed5a907a8aba261aea8b2d15ac60dcd121739a
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 18:26:27 2012 -0700
    
        factored image creation into get_image method on Issue.
    
    commit 41b9470b574c564650fe4feb2972427c3b7309ed
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 18:25:07 2012 -0700
    
        Very simple get_or_create_issue.
    
    commit 38d2a6f29cbb340c49ec2c294383615e968018dc
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Mon Apr 30 18:20:18 2012 -0700
    
        Super stubby stub of Issue datastore object
    
    commit d99826ac4e8eeb643dd3e68ca2a392ccfe1c19ed
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Sun Apr 29 20:54:19 2012 -0700
    
        Have very simple printing of (constant) numbers using a font.
    
    commit 7c0c8d095eaa324204cf8ba1bcc6840022b765c9
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Sun Apr 29 20:51:25 2012 -0700
    
        Fixed a typo where we still used webapp instead of webapp2 for some uses.
    
    commit e86d92d9cb38c8b6c4dababbc0a9d76dcdfb66e2
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Sun Apr 29 20:23:37 2012 -0700
    
        Simple stub that dynamnically generates a content-less image
    
    commit 3cecf5fed97e34d290da6e836f64d8636ec7e8a5
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Sun Apr 29 20:14:09 2012 -0700
    
        include PIL
    
    commit 25528e2d6de3c8adc8ee72729ba7ec14cb352623
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Sun Apr 29 20:11:56 2012 -0700
    
        Stub of badge page.
    
    commit 068d52c82666b769d0c1c030667106ef89c5804f
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Sun Apr 29 20:09:02 2012 -0700
    
        Added stub of hosting for /issue URLs
    
    commit 5c55cf9a34600bf88598a0c016dbbb3d17185c77
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Sun Apr 29 20:04:20 2012 -0700
    
        Switch to using concurrent requests and webapp2 in the simple-acl-server. This makes all functionality work again.
    
    commit 3963962dfd4566c84c03056fc583d6f960743888
    Author: Alex Komoroske <komoroske@google.com>
    Date:   Sun Apr 29 20:00:57 2012 -0700
    
        Switch to using python27 (which will allow us to use the PIL). The simple-acl-server does not work in this commit.
    
    git-svn-id: https://robohornet.googlecode.com/svn/trunk@149 48a18672-c925-a5f9-4b90-b3a8688770c7
Something went wrong with that request. Please try again.