Commit graph

179 commits

Author SHA1 Message Date
4b3a874dd0 Personalize email senders and send errors to me 2023-02-17 13:51:47 -08:00
f10e23b3c1 Update to appengine v2 SDK 2023-02-17 13:50:58 -08:00
Mihai Parparita
c275491a3a Update persistent.info links to use HTTPS 2022-04-10 21:44:48 -07:00
Mihai Parparita
63af49c29b Auto-generated change to index.yaml 2022-04-10 21:44:01 -07:00
Mihai Parparita
8fc40ed008 Minial updates to work with go 1.18
Add a minimal go modules setup, and update to work with more recent
versions of the oauth2 and GitHub libraries.
2022-04-10 21:42:43 -07:00
Mihai Parparita
728faecd4f Avoid infinite task queue retries when trying to compute repo vintages
GitHub consistently returns a 500 for large repos, so assume that the first
commit is the repo creation date for them.
2020-05-03 10:55:30 -07:00
Mihai Parparita
438cb1fdac Ignore deadline exceeded errors. 2020-03-07 14:55:16 -08:00
Mihai Parparita
6c662e2109 Changes necessary to run with the Go 1.11 App Engine runtime. 2020-03-05 21:30:47 -08:00
Mihai Parparita
9997f6a729 Tweak app.yaml for gcloud deploys 2019-02-27 22:57:08 -08:00
Mihai Parparita
ffa401fb8d Don't send emails about GitHub 502s 2019-02-27 22:56:53 -08:00
Mihai Parparita
876c32b4d5 Limit task queue retries. 2018-12-05 22:36:19 -08:00
Mihai Parparita
535a3b2acf Add chunking for looking of repo vintages.
Can only call datastore.GetMulti with 1000 keys.
2016-10-26 23:21:00 -07:00
Mihai Parparita
012d736e25 Fix digest end date to not overlap with the next digest period.
Apparently the since/until repository timestamp limits denote a closed interval,
so commits made at midnight would appear twice. Switch to setting the end date
to being one second earlier.
2015-09-06 22:40:58 -07:00
Mihai Parparita
112ddb2b02 Don't use border: shorthand in combination with other CSS properties.
Something (Gmail's HTML sanitizer?) reordered the properties in the style
declaration, and having border: come after border-width: etc. clobbers the
earlier rules.
2015-08-19 22:17:26 -07:00
Mihai Parparita
d831754422 Stop querying for the organization list.
The changes to the repositories and organization APIs are live
(https://developer.github.com/changes/2015-06-24-breaking-changes-to-organization-permissions-are-now-official/)
and thus the scopes used for the public repositories only option are no longer
sufficient to list organizations. However, it's no longer necessary to do that
in the first place, since the user repository list now includes repos from
organizations.
2015-08-18 22:13:38 -07:00
Mihai Parparita
054ea6e082 Prepare for the organization API changes described in https://developer.github.com/changes/2014-12-08-organization-permissions-api-preview/. 2015-02-07 14:38:33 -08:00
Mihai Parparita
741e7e0a2f Take into account Accept header for the cache key.
Allows using API previews (triggered by changing the Accept header) without
poisoning the cache.
2015-02-07 14:37:28 -08:00
Mihai Parparita
c0a76b82a6 Fix null pointer when viewing repos for an account with revoked credentials. 2015-01-03 14:35:51 -08:00
Mihai Parparita
6b8e347a72 Stop looking up repos for all users on the admin page.
Takes too long to load. Move repos instead into a per-user page.

Also adds basic redacting of repo information.
2014-12-27 21:53:38 -08:00
Mihai Parparita
439d60913b Sort the admin users list by GitHub user ID. 2014-12-27 21:28:04 -08:00
Mihai Parparita
3d5bf2cad4 Add admin command for deleting accounts. 2014-12-27 21:17:52 -08:00
Mihai Parparita
00e19e79b4 Ignore 403s when computing vintages. 2014-12-24 17:42:38 -08:00
Mihai Parparita
fc94f2ff06 Fix private repositories checkbox not being visible in Firefox.
Firefox doesn't support generated content in before/after pseudo classes applied
to <input type="checkbox"> elements. Switch instead to adding the custom
checkbox glyph to the <label> for the checkbox.

Thanks to @snarfed for reporting this.
2014-12-20 22:08:06 -08:00
Mihai Parparita
48034e3b3f Don't retry vintage calculation if the repo can't be loaded.
The user has most likely deleted their account.
2014-12-20 21:54:47 -08:00
Mihai Parparita
33617ef0a1 Add basic robots.txt file. 2014-12-20 21:49:06 -08:00
Mihai Parparita
a270579f36 More aggressively persis the user's email address in the account object. 2014-12-20 21:44:09 -08:00
Mihai Parparita
735ac7ffb3 Better handling of GitHub OAuth errors when sending digest emails.
Fail silently if we can't even get an email address, otherwise send an error
email to the user.
2014-12-20 21:38:09 -08:00
Mihai Parparita
2851ad3ac2 Better handling for revoked credentials on the admin page. 2014-12-20 15:16:27 -08:00
Mihai Parparita
8a05a55208 Add card background on signed in index page too. 2014-12-16 21:39:27 -08:00
Mihai Parparita
305e4a86f5 Fix pluralization in email intro. 2014-12-16 21:34:28 -08:00
Mihai Parparita
9cb75013b1 Slightly better digest intro paragraph. 2014-12-14 21:47:13 -08:00
Mihai Parparita
7e2f693fea Add Google Analytics tracking. 2014-12-14 21:35:51 -08:00
Mihai Parparita
ed78cefe30 Switch header image from PNG to JPEG.
Almost 3x smaller. Also run ImageOptim on all the images.
2014-12-14 21:30:19 -08:00
Mihai Parparita
05acf9240a Don't turn errors fetching individual repository intervals into errors for the whole digest.
Return the data that we have, and indicate in a footer which repositories errors
were encountered for.
2014-12-14 21:23:33 -08:00
Mihai Parparita
f39b6e5e17 Add totals to admin page. 2014-12-14 16:16:12 -08:00
Mihai Parparita
8cb1302b1d Flesh out signed out homepage. 2014-12-13 23:57:59 -08:00
Mihai Parparita
f8657e9992 Add favicon. 2014-12-13 22:33:18 -08:00
Mihai Parparita
a9e17ee600 Fixes to make things look better on phone screens. 2014-12-13 21:59:20 -08:00
Mihai Parparita
b8398279db Add space between avatar and username. 2014-12-13 21:39:35 -08:00
Mihai Parparita
3340a9d288 Add FAQ. 2014-12-13 21:36:29 -08:00
Mihai Parparita
b1f7a0ba0f Add a footer to website pages. 2014-12-13 15:47:31 -08:00
Mihai Parparita
1bf5d997f6 Make sure HTTP responses are not cacheable. 2014-12-13 15:35:10 -08:00
Mihai Parparita
5b5cf2ab6a Make sure memcache keys are under the 250 byte limit. 2014-12-08 22:04:12 -08:00
Mihai Parparita
4a45ada620 Log more details for memcache errors. 2014-12-07 15:13:49 -08:00
Mihai Parparita
f462e1917a Email me for digest send errors. 2014-12-07 15:07:40 -08:00
Mihai Parparita
e72f87d801 Add prettier default error page. 2014-12-07 14:58:46 -08:00
Mihai Parparita
fc216fb3de Email me for internal errors. 2014-12-07 14:37:57 -08:00
Mihai Parparita
b3887d60b6 Add basic panic recovery.
Based on Martini's.
2014-12-07 14:20:13 -08:00
Mihai Parparita
62aa3d79d9 Fix formatting after ba402fabad. 2014-12-06 14:51:58 -08:00
Mihai Parparita
6a52f76635 Fix continue URL validation.
When running in production http.Reqest.URL is an absolute URL, so we shouldn't
check for leading slashes. Instead check for the hostname matching (which also
works for relative URLs on localhost).
2014-12-06 14:50:40 -08:00