Commit Graph

13 Commits

Author SHA1 Message Date
Bryan Richter
6b4232b1c6
Add download-bucket-url option 2024-01-08 16:45:50 +02:00
Michael Snoyman
0823066401
Configurable poolsize, longer timeout 2020-07-07 13:58:55 +03: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
122e34ff12
Migrate from SQLite to PostgreSQL 2017-08-20 09:38:54 +03:00
Michael Snoyman
1fbaf13574 Overhaul to match latest Yesod scaffolding 2016-05-17 21:08:18 +03:00
Michael Snoyman
be25e87b69 Force SSL in production (fixes #150) 2016-02-02 07:56:30 +00:00
Michael Snoyman
789443cb71 Allow less downloading during dev 2015-10-06 07:14:29 +03:00
Michael Snoyman
34886ca21a Add in settings.yml 2015-10-06 06:47:48 +03:00
Michael Snoyman
881e7076fa Create -sample config files to avoid credentials in repo 2014-10-24 13:57:40 +03:00
Michael Snoyman
493c612cbd Switch to FP Complete Hackage mirror 2014-09-28 07:42:44 +03:00
Michael Snoyman
f349bd68d9 Some production settings 2014-04-16 10:43:01 +03:00
Michael Snoyman
95250c5b09 Blob storage and downloading from Hackage 2014-04-10 10:59:58 +03:00
Michael Snoyman
714ee2b272 Scaffolding 2014-04-09 10:52:04 +03:00