Commit Graph

283 Commits

Author SHA1 Message Date
Michael Snoyman
9c57579caa Switch to stackage-build-plan 2015-05-10 12:06:02 +03:00
Dan Burton
025782be8d Add ghc-major-version to Stackage table #88 2015-05-01 21:37:53 -07:00
Michael Snoyman
511b1c21e9 Added /download/snapshots.json 2015-05-01 11:39:24 +03:00
Michael Snoyman
f03ada0f81 Add nightly to the list of snapshots
I also cleaned up the LTS code. It currently had the assumption that LTS
major versions would be monotonically increasing from 0 without gaps.
While likely to be true, that's slightly brittle, and did in fact break
in my testing (where I only had an lts-2.4 in the database).
2015-05-01 10:16:43 +03:00
Dan Burton
cdd059d9eb Address minor problems with download page #93 2015-04-28 11:53:53 -07:00
Michael Snoyman
7f26cc26a9 Shell script mime type 2015-04-28 15:23:50 +03:00
Michael Snoyman
cafa6b0496 Merge pull request #92 from fpco/download-handler
Download handler
2015-04-26 08:48:58 +03:00
Dan Burton
34d1d628e8 Reorganize hosting of stackage-setup binary and yaml 2015-04-24 13:43:52 -07:00
Dan Burton
2f1fb53537 stackage-setup prerelease download page #87 2015-04-23 21:28:57 -07:00
Michael Snoyman
ddfce6e551 Add JSON build plan (which includes flags #91) 2015-04-22 11:53:59 +03:00
Dan Burton
1117ca93c9 Adjusted design related to stackage-setup per #87 #88 2015-04-21 16:29:58 -07:00
Dan Burton
c837587609 Add sketch of 'environment.json' and 'lts-snapshots.json' 2015-04-15 18:26:26 -07:00
Dan Burton
80cb890dad Add sketch of 'stackage' executable download pages 2015-04-15 16:35:19 -07:00
Dan Burton
bfbe634e5f Add download link for hoogle database 2015-04-03 15:00:12 -07:00
Michael Snoyman
dd375bbbc1 Revert "Updated raw bundle URL"
This reverts commit d6ccfc04b9.
2015-03-30 13:21:13 +03:00
Michael Snoyman
5d5b9448ec Revert "Typo"
This reverts commit 027b562aa3.
2015-03-30 13:21:04 +03:00
Michael Snoyman
027b562aa3 Typo 2015-03-30 12:23:12 +03:00
Michael Snoyman
d6ccfc04b9 Updated raw bundle URL 2015-03-30 12:15:30 +03:00
Michael Snoyman
4ec9caab59 LTS update, warning cleanup 2015-03-26 18:50:38 +02:00
Michael Snoyman
55880e0f15 Treat package list instead as a set 2015-03-26 17:57:28 +02:00
Michael Snoyman
d69497ebf9 Workaround for missing HOME variable 2015-03-26 17:43:21 +02:00
Michael Snoyman
a3d679f2a3 Add BuildPlanR 2015-03-26 17:34:58 +02:00
Dan Burton
ad091514a7 sitemap now streams from the database 2015-03-23 14:35:54 -07:00
Dan Burton
980cf46690 Add sitemap #20 2015-03-23 12:02:05 -07:00
Michael Snoyman
e9aec442e9 stackage-types, simpler travis 2015-03-22 16:16:28 +02:00
Michael Snoyman
ec57908a63 Fix a build failure
Pinging @DanBurton @chrisdone
2015-03-19 13:45:32 +02:00
Michael Snoyman
706a977e19 Fix upload v2 core packages fpco/stackage#481
Simple fix: was only adding packages from the build plan, not from the
core libraries list. Most of the annoyance in the patch is just dealing
with the multiple PackageName and Version types.
2015-03-19 13:42:31 +02:00
Dan Burton
5c3e4adf10 cabal.config links should always be http; cabal doesn't support https. #83 2015-03-18 14:28:18 -07:00
Dan Burton
980aa4c484 Use persistent count instead of esqueleto countRows, as suggested by @chrisdone. 2015-03-18 11:10:39 -07:00
Michael Snoyman
fd89710c69 Better support for pre-existing snapshots 2015-03-18 13:00:58 +02:00
Michael Snoyman
2b4d9a667b Merge branch 'new-upload-v2'
Conflicts:
	Application.hs
2015-03-18 09:06:56 +02:00
Dan Burton
07fb2c9290 Snapshot list pagination now correctly uses row count to determine whether the last page has been reached. 2015-03-17 11:20:09 -07:00
Michael Snoyman
70a59af6c1 Stop tracking upload times from Hackage 2015-03-16 14:33:57 +02:00
Michael Snoyman
0bf235760b Complete (but untested) UploadV2 2015-03-16 14:20:01 +02:00
Michael Snoyman
3c4e132774 Remove some dead code 2015-03-16 13:36:31 +02:00
Michael Snoyman
6cf5be6ff1 Remove bundle links in preparation of much larger v2 bundles 2015-03-16 13:34:10 +02:00
Michael Snoyman
93f91708ca Make it compile 2015-03-16 11:40:44 +02:00
Michael Snoyman
4e4362f19b Remove unnecessary if hasBundle 2015-03-15 19:05:56 +02:00
Michael Snoyman
041d3aed21 Remove view code (fixes #79) 2015-03-15 18:27:35 +02:00
Michael Snoyman
0abc55d76e Store progress info in database (fixes #78) 2015-02-20 09:41:05 +02:00
Michael Snoyman
af28229971 Add /package-counts 2015-01-07 12:05:12 +02:00
Chris Done
a980c31371 Fix warnings; unused things mostly
@mgsloan just a heads up, pull before you start hacking, might save you
a merge
2015-01-06 13:41:09 +01:00
Michael Snoyman
2f0b328614 Add Handler.BuildVersion 2015-01-06 10:14:19 +02:00
Michael Snoyman
cb9736f50b Improve styling a bit 2015-01-05 10:46:36 +02:00
Michael Snoyman
cb2ef331e6 Do Hoogle database generation as a cron job #70 2015-01-05 09:00:45 +02:00
Michael Snoyman
7c94b008aa Persist Hoogle DBs 2015-01-04 21:28:30 +02:00
Michael Snoyman
ad28109f46 Disable cachedWidget to avoid memory exhaustion 2015-01-04 16:51:46 +02:00
Michael Snoyman
137453d9a2 Better unpacking code 2015-01-04 16:43:11 +02:00
Michael Snoyman
0b7d1e4bd0 Make Hoogle URLs more consistent with other URLs 2015-01-04 14:13:47 +02:00
Michael Snoyman
10e255c3cc Remove unnecessary dropExtension 2015-01-04 14:01:47 +02:00
Michael Sloan
95c5835266 Write hoogle DB generation errors to a file #47 2015-01-02 20:18:01 -08:00
Michael Snoyman
b007d36631 WIP changes to do Hoogle stuff in background 2014-12-30 08:51:57 +02:00
Michael Sloan
3229c1ef56 Create Hoogle DB on demand, if necessary #47 2014-12-27 23:35:13 -08:00
Michael Sloan
eeb0aae9d9 Avoid unnecessarily looking up StackageId in haddock unpacker 2014-12-27 20:40:05 -08:00
Michael Sloan
f635977b02 Tweak hoogle style and behavior #47 2014-12-27 20:12:06 -08:00
Michael Sloan
c791c81ede Copy + modify code from fpcomplete.com for hoogle #47 2014-12-27 20:12:06 -08:00
Michael Sloan
c0fed800cc Generate Hoogle DB when haddocks are unpacked #47 2014-12-27 20:12:06 -08:00
Michael Snoyman
125e7ea130 removeTreeIfExists 2014-12-26 10:16:11 +02:00
Michael Snoyman
cb36a196ba Module listing 2014-12-25 15:01:14 +02:00
Michael Snoyman
5cb2a6a296 Docs fallback 2014-12-24 09:23:38 +02:00
Michael Snoyman
a7254a0140 Workaround for non-present base 2014-12-24 09:07:31 +02:00
Michael Snoyman
7ac0fd8dbc Package pages per snapshot
This allows us to replace the Haddock-generate contents pages with our
snapshot/package pages.
2014-12-24 08:44:52 +02:00
Michael Snoyman
af2ea0952a Use a nullable column to speed up migration 2014-12-23 11:30:55 +02:00
Michael Snoyman
f0a8848456 Global configuration instructions #67 2014-12-23 10:36:51 +02:00
Michael Snoyman
9d745c9c42 Support for "installed" core packages #68 2014-12-22 23:04:13 +02:00
Dan Burton
b06424463e Add deprecation info to stackage (#42) 2014-12-21 13:48:15 -08:00
Dan Burton
edb4b93b49 Paginate 'all snapshots' list. (#41) 2014-12-19 18:33:58 -08:00
Michael Snoyman
d8925a9fed Clip package list to 5000 to avoid memory exhaustion 2014-12-19 10:12:55 +02:00
Michael Snoyman
3ee2110602 More sanity in docmap uploading 2014-12-18 10:24:19 +02:00
Michael Snoyman
e4937fca5d Include overwrite packages in cabal.config #65 2014-12-17 07:32:54 +02:00
Michael Snoyman
002192aed7 Add newline at end of cabal.config #63 2014-12-16 14:39:36 +02:00
Chris Done
2499b7b390 Fix compiler warnings 2014-12-16 12:03:25 +01:00
Chris Done
c39cd34765 Don't make a README section if the content's empty 2014-12-16 11:48:34 +01:00
Michael Snoyman
46c1b6e97f Initial older releases code 2014-12-15 18:13:48 +02:00
Chris Done
6f6c973d07 Fix up package where clause 2014-12-15 13:13:04 +01:00
Chris Done
1598423a6a Add LTS Haskell and Stackage Nightly links
Also made getPackageR slightly less horrific
2014-12-15 12:53:06 +01:00
Chris Done
b498d0a041 Separate page for all snapshots of a package 2014-12-15 11:49:37 +01:00
Michael Snoyman
4ab560e0c0 Snapshot page fixes 2014-12-15 11:45:42 +02:00
Chris Done
41307c3343 List packages in snapshot page 2014-12-14 21:53:00 +01:00
Chris Done
8010783064 Add hoempage link and collapse likes and tags 2014-12-14 20:55:24 +01:00
Chris Done
f7dde0a8e0 Add synopsis to package page 2014-12-14 20:41:17 +01:00
Chris Done
8d056968d0 Move snapshots and docs links to the top 2014-12-14 20:38:37 +01:00
Chris Done
f98e513f7a New homepage and new top nav (#52) 2014-12-14 20:18:40 +01:00
Michael Snoyman
0364b87aa1 Only admins can use the lts and nightly slug prefixes 2014-12-14 09:59:47 +02:00
Michael Snoyman
66bd8eb752 Add back old homepage 2014-12-14 08:10:15 +02:00
Michael Snoyman
046d3b6094 Support doc maps 2014-12-13 20:28:12 +02:00
Michael Snoyman
6732b2827a Changes for nice install page 2014-12-12 12:09:20 +02:00
Michael Snoyman
6b25df3e59 authors and install pages 2014-12-11 12:21:30 +02:00
Michael Snoyman
cab4e08fcc ?download=true on cabal.config 2014-12-11 12:19:00 +02:00
Michael Snoyman
861ca55fc8 More informative cabal.config 2014-12-11 07:42:10 +02:00
Michael Snoyman
522d2228a9 Package page per snapshot #36 #49
This is not yet live. We'll have a link for all packages in each
snapshot, which includes the version number, doc link if available, and
synopsis.
2014-12-10 12:06:55 +02:00
Michael Snoyman
6f4e9eb4fd Track whether an individual package has documentation #49 2014-12-10 11:12:53 +02:00
Michael Snoyman
45e7f50fea Allow uploading LTS and nightly snapshots 2014-12-10 10:32:13 +02:00
Michael Snoyman
529f9483cd /lts and /nightly routes are set up 2014-12-09 17:17:41 +02:00
Michael Snoyman
968805f01f Add WebsiteContent #48 2014-12-09 14:01:38 +02:00
Michael Snoyman
346cf7a8da Reverse dependencies #33 2014-12-08 16:15:56 +02:00
Michael Snoyman
cd53f7d0e5 Custom bundle names come from cabal file name #45 2014-12-02 16:28:14 +02:00
Michael Snoyman
a2697b1e27 Nicer bundle attachment names 2014-11-27 13:32:24 +02:00
Michael Snoyman
d111115b9c Fix upload-haddock to work with old-style PackageSetIdents 2014-11-25 10:36:12 +02:00
Michael Snoyman
a8911dbb3b Better URLs #37
URLs now look like /snapshot/2014-11-23-7.8hp-exc and similar.
2014-11-23 14:26:03 +02:00
Chris Done
a80ba1d7bf Select distinct tags from tags page
@snoyberg
2014-11-20 15:30:26 +01:00
Chris Done
190fef7adc Move tag part of slugs into own module, make tag banning use it (#34) 2014-11-20 14:55:54 +01:00
Chris Done
41a9160c19 Allow for empty banned tags list (#34) 2014-11-20 14:28:53 +01:00
Chris Done
f36df17c01 Add tag voting (#35) 2014-11-20 12:43:20 +01:00
Michael Snoyman
3fb5375230 Banned tag admin page
Pinging @chrisdone, decided to just bite the bullet and do it anyway
2014-11-20 12:44:39 +02:00
Michael Snoyman
985f48a6dc Banned tags #34 2014-11-20 12:26:45 +02:00
Michael Snoyman
fe4cda60f8 Clean up warnings 2014-11-19 11:08:45 +02:00
Michael Snoyman
01b86d368c Move to some newly added upstream functions 2014-11-19 09:36:16 +02:00
Michael Snoyman
8e610e35ae Be a bit more resilient to errors when compressing 2014-11-18 18:50:48 +02:00
Michael Snoyman
894f428a5b Better compressor-status termination messages 2014-11-18 18:37:20 +02:00
Michael Snoyman
b21694cbd6 Updated snapshot 2014-11-18 18:09:25 +02:00
Michael Snoyman
aae52c21e9 Better caching of package list 2014-11-17 12:22:20 +02:00
Michael Snoyman
8649e9d97b Cache-friendly headers #29 2014-11-15 20:25:58 +02:00
Chris Done
77a81b7a2f Display count for tags list/sort by that count (#26) 2014-11-14 13:54:50 +01:00
Chris Done
df66e5d982 Use same style as packages list for tag page (#17)
@DanBurton @snoyberg
2014-11-14 13:40:17 +01:00
Dan Burton
c5aef41fde Add tag pages and tags list with minimal styling. 2014-11-13 20:43:25 -08:00
Chris Done
e6fb29c9ee Fix stylesheet on all pages 2014-11-13 22:50:01 +01:00
Michael Snoyman
972fc5ae18 Minor cleanups from code review 2014-11-13 23:24:26 +02:00
Chris Done
c9671e7f3c Implement basic tagging (closes #16) 2014-11-13 22:20:57 +01:00
Michael Snoyman
d5989c8fbf Move liked classes into template
Per discussion with @DanBurton
2014-11-13 22:39:25 +02:00
Chris Done
436cdfb15e Like button tweaks (closes #15) 2014-11-13 20:30:44 +01:00
Dan Burton
9c229d2d4e Added like button functionality (#15) 2014-11-13 20:07:24 +01:00
Chris Done
a6bb737cc8 Restyle snapshots page 2014-11-13 15:53:18 +01:00
Chris Done
8f0e0e7aa3 Package list restyle (closes #18) 2014-11-13 15:53:18 +01:00
Chris Done
d705d63073 Restyle "recommended snapshots" list on homepage (closes #19) 2014-11-13 15:53:18 +01:00
Michael Snoyman
5b9ace6425 Show compressor status 2014-11-11 08:52:24 +02:00
Chris Done
b1d9b7e6d9 Show README and changelog from metadata table
@snoyberg

Check out these locally when your data is generated, they demonstrate
varying readme and changelog formats.

http://localhost:3000/package/yesod-core

http://localhost:3000/package/fay

http://localhost:3000/package/base

http://localhost:3000/package/conduit

http://localhost:3000/package/aeson

http://localhost:3000/package/bytestring

Pity there's no standard CHANGELOG format but it's better than
nothing and looks pretty in the conduit/base case.
2014-11-03 17:47:32 +01:00
Chris Done
d195dea789 Use getBy404 2014-11-03 16:37:47 +01:00
Michael Snoyman
f51e70c09e linkFor: use fpcomplete handle 2014-11-03 14:03:40 +02:00
Michael Snoyman
71d35bfa4f More concise recommended list
Problem: it's easy with the current "show four most recent" to run into
situations where- for example- only GHC 7.8 has had a successful build in
the past few days, and therefore it's the only snapshot that appears.
This gives a more consistent and useful listing of recommended
snapshots.

Styling of this is up for debate.
2014-11-03 14:03:40 +02:00
Chris Done
51744dc54d Pretty package page with metadata 2014-11-03 12:33:59 +01:00
Chris Done
0ac31b045f Add non-custom version of bootstrap for rest of pages 2014-11-03 12:33:59 +01:00
Michael Snoyman
20a95b4d24 Fix warnings 2014-10-24 13:51:26 +03:00
Michael Snoyman
3992ca4f38 Got the whole two thread system working 2014-10-24 13:51:26 +03:00
Dan Burton
cb3f1edffd Move and tweak impl of gzipHash 2014-10-24 13:51:26 +03:00
Michael Snoyman
904c3f3e70 Use suffix instead of fp (PEBKAC) 2014-10-24 13:51:26 +03:00
Michael Snoyman
8dc6c65b9d WIP: Planned fixes for the Haddock unpacking 2014-10-24 13:50:59 +03:00
Michael Snoyman
d299e1eef8 Don't recompress gz files 2014-10-24 13:50:59 +03:00
Michael Snoyman
2011967b08 Added some more FIXMEs 2014-10-24 13:50:59 +03:00
Michael Snoyman
0cfe2e8d41 Keep haddocks in a subdir 2014-10-24 13:50:59 +03:00
Michael Snoyman
9d6975aa55 Store cached, gzipped files
Pinging @manny-fp. This is similar to what we discussed. In a very rough
test, this brought the incremental disk usage for an extra set of docs
from 500MB to 20MB.
2014-10-24 13:50:59 +03:00
Michael Snoyman
765ed91767 Use cached widget for /package 2014-10-24 13:50:59 +03:00
Michael Snoyman
1d46dcf5d6 Display download stats on package page 2014-10-24 13:50:59 +03:00
Michael Snoyman
f42eb69498 Sanitize ident 2014-10-24 13:50:59 +03:00
Michael Snoyman
a68d05ad9f only exclusive links 2014-10-24 13:50:59 +03:00
Michael Snoyman
a1ed3d00ef Package list 2014-10-24 13:50:59 +03:00
Michael Snoyman
fc49565dd8 Silence a warning 2014-10-24 13:50:59 +03:00
Michael Snoyman
639e311093 Prototype package pages 2014-10-24 13:50:59 +03:00
Michael Snoyman
4cbf301051 Some tweaks for automated doc uploads 2014-10-24 13:50:59 +03:00
Michael Snoyman
5bed251284 Force Haddock unpacking right after upload 2014-10-24 13:50:59 +03:00