Commit Graph

69 Commits

Author SHA1 Message Date
Michael Snoyman
98df84df28
/stats endpoint 2020-10-16 04:21:08 +03:00
Deni Bertovic
98d0d61958 Adds /healthz endpoint
And points k8s readiness and liveness probes on it
2019-06-18 10:11:43 +02:00
Alexey Kuleshevich
f5e147ab97
Integration with Pantry and usage of new stackage-snapshots:
* Moved all extensions into modules that are using them, rather than globally,
  since they mess up ghci session and introduce conflicts among
  packages. Removed those from `.ghci` file as well
* Redesigned the schema to use Pantry and moved it into it's own module
* Switched all of the db and cron related stuff to RIO. Yesod part is
  still on classy-prelude
* Got pantry to update stackage-server database from hackage
* Got import of stackage-snapshots implemented
* Moved some logic from all-cabal-tool
* Switched everything to `PackageNameP`, `VersionP`, etc. from a la Text.
* Fixed haddock, so it now does proper redirects and pipes the docs
  correctly. Also implemented piping of json files from S3 bucket,
  so index-doc.json is also served by stackage-server thus making
  Ctrl+S feature work properly on haddock. Fix for commercialhaskell/stackage#4301
* Import of modules is done through cabal file parsing, which slows
  down the initial import process drastically, but incremental update
  is not a problem.
* Just as with modules, dependencies are also imported from cabal file.
* In general improved type safety by introducing a few data types:
  eg. `ModuleNameP`, `HackageCabalInfo`, and many more.
* Implemented pulling of deprecation map from hackages and storing it in db
* Implementation of forward/backward dependencies within a snapshot only.
* Drastically improved performance of cron import job, by checking which
  snapshots are not up to date
* Implemented pulling haddock list from S3 bucket. Modules that have
  documentation are marked from the availability of actual haddock. This
  process happens concurrently with snapshots loading.
* Rearranged modules a bit:
  * github related functions went into it's own module
  * cron related functions where moved from Database to Cron module
  * Split up some functions to reduce individual complexity
* Parallelized package loading in cron job
* Implemented parsed cabal file caching.
* All queries where reqritten with esqueleto
* Syntactic improvements:
  * Added stylish-haskell config
  * Formatted all imports and extensions with stylish-haskell.
  * Fixed inconsistent indentation across all modules
* Many improvements to the package page as well as few others.
* Reimplemented hoogledb creation.
* Dropped dependency on tar in favor of tar-conduit
* Added cli for stackage-server-cron
* Add cabal sha and size to the package page
* Fixed links in hoogle searches. Improved type safety for a hoogle handler
* satckage-server-cron is customizable with cli arguments

Final adjustments for the new stackage server release:

* Upgrade to lts-13.16.
* Stackage server related code has been merged to pantry. Made the code
  compatible with the newer version pantry
* Added cli '--snapshots-repo'
* Add readme to package page
* Adjust snapshots expected format:
  * Added `publish-time`
  * Removed name `field`
  * `compiler` field is now in the `resolver` field with fallback to
    the root
2019-04-30 17:10:33 +03:00
Michael Snoyman
760b356c0c
Use yesod-gitrev and githash 2018-06-25 12:35:42 +03:00
Michael Snoyman
115feaa219
Stackage blog 2018-01-28 14:28:41 +02:00
Michael Snoyman
298d1d5b52
Limit number of deps/revdeps shown 2017-12-11 20:05:31 +02:00
Michael Snoyman
9c90dd1f7d Add a /status/mirror route 2016-09-20 12:40:42 +03:00
Michael Snoyman
1fbaf13574 Overhaul to match latest Yesod scaffolding 2016-05-17 21:08:18 +03:00
Michael Snoyman
60af396f9c Add Haddock style.css and script.js 2016-05-02 14:18:27 +03:00
Konstantin Zudov
b798ac8236 Badges 2015-10-16 17:27:37 +03:00
Konstantin Zudov
c2fb5b1fa5 StackageBranch -> SnapshotBranch 2015-10-16 15:01:40 +03:00
Konstantin Zudov
5133a38006 Use StackageBranch in OldLinks 2015-10-16 10:01:31 +03:00
Konstantin Zudov
62c0789ca6 Use StackageBranch for Feed 2015-10-16 07:14:45 +03:00
Michael Snoyman
bef289a8c3 Download links for latest Stack (fixes commercialhaskell/stack#532) 2015-10-15 04:20:52 +00:00
Konstantin Zudov
5c2e8ecf68 Add /feed/#LtsMajor (e.g /feed/lts-3) 2015-10-13 13:36:37 +03:00
Konstantin Zudov
8c9c916491 Add /feed/lts and /feed/nightly 2015-10-13 13:07:22 +03:00
Michael Snoyman
20d08ffa31 /feed 2015-10-11 14:16:10 +03:00
Konstantin Zudov
160f2b02f9 Added UI for snapshot diffs 2015-10-10 10:44:06 +03:00
Michael Snoyman
768eaec573 Remove all social features
Motivation: these were the last things requiring a database. Once this
is gone, it simplifies deployment dramatically. I'm also not sure that
the social features were really worth keeping.
2015-09-25 17:43:50 +03:00
Michael Snoyman
c04686aad0 Initial Stackge.Database 2015-05-11 20:23:09 +03:00
Michael Snoyman
d956b074c0 Delete a whole bunch of stuff, nothing works 2015-05-11 17:46:07 +03:00
Michael Snoyman
511b1c21e9 Added /download/snapshots.json 2015-05-01 11:39:24 +03:00
Dan Burton
34d1d628e8 Reorganize hosting of stackage-setup binary and yaml 2015-04-24 13:43:52 -07: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
a3d679f2a3 Add BuildPlanR 2015-03-26 17:34:58 +02:00
Dan Burton
980cf46690 Add sitemap #20 2015-03-23 12:02:05 -07:00
Michael Snoyman
6cf5be6ff1 Remove bundle links in preparation of much larger v2 bundles 2015-03-16 13:34:10 +02:00
Michael Snoyman
c6800fd7aa Temp: upload v2 2015-03-16 09:47:25 +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
Michael Snoyman
2f0b328614 Add Handler.BuildVersion 2015-01-06 10:14:19 +02:00
Michael Snoyman
0b7d1e4bd0 Make Hoogle URLs more consistent with other URLs 2015-01-04 14:13:47 +02:00
Michael Sloan
c791c81ede Copy + modify code from fpcomplete.com for hoogle #47 2014-12-27 20:12:06 -08:00
Michael Snoyman
cb36a196ba Module listing 2014-12-25 15:01:14 +02:00
Dan Burton
b06424463e Add deprecation info to stackage (#42) 2014-12-21 13:48:15 -08:00
Michael Snoyman
46c1b6e97f Initial older releases code 2014-12-15 18:13:48 +02:00
Chris Done
b498d0a041 Separate page for all snapshots of a package 2014-12-15 11:49:37 +01:00
Michael Snoyman
046d3b6094 Support doc maps 2014-12-13 20:28:12 +02:00
Michael Snoyman
6b25df3e59 authors and install pages 2014-12-11 12:21:30 +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
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
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
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