1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-24 21:35:06 +03:00
A workspace for research teams
Go to file
Dmitrij Pavluk fbc949f3e4 Task/log monad (#264)
* monad DiT

* addition of monad DiT to gaider

* add deriving

* fix of exceptions

* Logger.hs

* logging

* configs

* fix

* cathing of exception

* logger structure

* configs fixes

* log format

* add time format to config

* add logs

* add logs

* add show instances to db actions

* add log to matomo

* add emptyOnExceptyon

* fixing of tests

* add test for logs

* add test for api

* add test for api

* sdd tests to api

* fix of tests

* fix of tests

* fix of errors

* add api tests

* add new tests for log

* add new tests for log

* add new tests for log

* add new tests for log & api

* ordering of API.hs

* add test of traits to api

* fixes to tests

* fixes of test

* add atributes to log

* attributes to logs

* fix to log

* Fix proposals

* Fix error level style

* Try to fix travis tests

* Add comment to servant error log

* Revert openFile to check travis tests

* Abstract withTempFile

* Rework the way handlers are logged

* Fix typos

* Don't use pack

* Add explicit export lists and warn about missing export lists

* Fix comments

* Get rid of useless H.

* Make export lists consistent

* Rewrite config comments

* Log to stderr by default, not to /var/log/guide.log

* Don't use module X

* Rewrite Guider.Logger.Init slightly

* No {- -} comments

* Separate logTests from webspec module

* Swap throwM with Di.Core.throw

* Fix logging

* No more .ghci

* Formatting, etc

* Remove loggers we're not going to use

* Comment

* Typo

* Comments

* searchQuery -> query

It's called "query" in the API

* Rename

* More logging

* Reorder things

* Fix test compilation

* Api -> ApiSpec

* Remove constantly failing footer test

* Rename logTest

* Fix failing log test

* TODO

* We don't do caching anymore

* Increase test time for move item up

* Add haddocked test

* Add uncommented function for test

* Up haddock test

* Add quotes

* Remove ':'

* Add curl stack

* Delete test function

* Up beforeHaddocked to 251

* Increase second threadDelay to 1 million

* Check test fixes

* Remove commented code

* Return bracket function

* Add comment
2019-02-26 10:40:42 +05:00
back Task/log monad (#264) 2019-02-26 10:40:42 +05:00
docker/back Travis improvements (#253) 2019-01-02 17:07:52 +04:00
favicon Move the backend to /back/ (#240) 2018-12-09 23:02:03 +01:00
front front: npm packages vulnerabilities fixed 2019-02-20 16:26:18 +04:00
scripts Move the backend to /back/ (#240) 2018-12-09 23:02:03 +01:00
.gitignore Move the backend to /back/ (#240) 2018-12-09 23:02:03 +01:00
.hlint.yaml Add HLint rules and fix some suggestions (#261) 2019-01-23 09:29:39 +01:00
.travis.yml Task/log monad (#264) 2019-02-26 10:40:42 +05:00
INSTALL.md Move the backend to /back/ (#240) 2018-12-09 23:02:03 +01:00
Makefile Travis improvements (#253) 2019-01-02 17:07:52 +04:00
README.md Move the backend to /back/ (#240) 2018-12-09 23:02:03 +01:00
shell.nix Add custom shell.nix file 2017-10-09 09:30:41 +02:00
stack.yaml Task/log monad (#264) 2019-02-26 10:40:42 +05:00

Aelve Guide

Build status BSD3 license

The beta version is running at guide.aelve.com. The most complete section yet is the one about lenses.

Installation instructions and the explanation of config variables (in config.json) are here: INSTALL.md. Don't be afraid to install it locally it's very easy! You don't need to set up any databases or anything like that, and you can get a full copy of the data from the site by simply cloning it from Github.

Contributing

If you want to contribute but don't know where to start, grep the source for [very-easy] and [easy], or look at these issues:

  • “your first pull request” really easy things, with detailed “how to fix it” instructions
  • “your second pull request” less easy things, which assume that you already know where stuff happens in the code
  • “not-fleshed-out idea” discussion issues (“should we have users? what better ways are there to present pros and cons?”) which you can help with even if you don't know Haskell
  • “design” issues about design (which I'm not good at, and so help is wanted)

Testing

You need chromedriver and selenium-server-standalone installed (those are the package names on Arch Linux). Then you can do

$ java -jar /usr/share/selenium-server/selenium-server-standalone.jar
$ make back/test

Notes

When you see something like

-- See Note [acid-state]

it means that there's an extensive comment somewhere else in the code, which you can find by grepping for Note [acid-state]. This convention was stolen from GHC. If you know some plugin for Emacs that would help with jumping to comments (even if those comments would have to be formatted differently), let me know.