1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 04:07:14 +03:00
Commit Graph

37 Commits

Author SHA1 Message Date
Artyom Kazak
0d170b3e30 Migrate to to-1.2.0 (#382)
* Migrate to to-1.1.0

* Migrate to to-1.2.0
2019-08-19 10:41:34 +00:00
Artyom Kazak
83f77c9309 Move 'To' out of Guide (#371)
* Move 'To' out

* Fix compilation errors
2019-08-13 18:56:52 +00:00
Artyom Kazak
b4f339cf0c Remove EKG and unused dependencies (found via 'weeder') (#366)
* Remove EKG

* Remove unused dependencies, found via 'weeder'
2019-08-11 12:59:42 +00:00
Vladislav Sabanov
593cb30fc5
Add insert/update transactions (#355)
* add insert transactions

* Fix Add, Add Set[wip], Test them

* Set function is completed and delete one also

* Add moveItem

* Add moveTrait

* Use ItemRow (#356)

* fix travis

* make corrections to the comments

* Add rest row types

* prettify

* Update back/src/Guide/Database/Set.hs

Co-Authored-By: Artyom Kazak <artyom@aelve.com>

* Add row types to get functions. Make ttype convertions

* Formatting

* Use 'do' for constructing rows

* Rename "column" to "columns"

* Fix an article

* Fix boolean capitalization

* Fix Haddock

* Rename TraitType constructors

* Fix sql query

* Fix select in schema

* Reexport more modules from Guide.Database

* Name the #created UTCTime arg

* Restore consistency

* Expand _order comments

* Rename mismatched row fields

* Add lenses for rows

* Replace set functions with 'modifyCategoryRow' and so on

* Document 'exposeFields' and 'exposeFieldsPrefixed'

* Rename exposeFields

* Improve logging in 'setupDatabase'

* Abstract 'makeLensesWith' to Utils module

* Less default parameters in 'addCategory'

* Rewrite docs for makeClassWithLenses
2019-08-10 17:13:40 +05:00
Artyom Kazak
41c3523323
Remove item groups (#347) 2019-07-26 20:00:22 +03:00
Vladislav Sabanov
36a92f9bf7 Add get functions for categories, traits and items (#339) 2019-07-25 15:17:29 +03:00
Vladislav Sabanov
9e0f432408
Create tables with hasql (#328)
* create tables with hasql

* Fixes 1

* fix failing

* add todo

* Add more comments

* fix commits

* Mention that libpq has to be installed

* Minor fixes

* Migrations

* Fix wording

* Wording 2
2019-07-11 22:12:14 +05:00
Artyom Kazak
1b22041506
Migrate to LTS 13 and Ubuntu Xenial (#302) 2019-06-26 11:35:52 +03:00
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
Vladislav Sabanov
65800eda6a
[WIP] Remove kinds and add hackage as option (#249)
* Split hackage

* WIP

* Migrate to newer safecopy-migrate

* Fix migrate

* Rename description to summary for item

* Fix link to templates

* Frontend tests fix for pr #249

* Change the path back

* WIP. Fix templates

* Update back/src/Guide/Api/Types.hs

* Remove unnecessary stuff from .gitignore

* Revert style changes

* Two spaces

* _itemDescription has been renamed

* Remove the Hackage test

* name_on_hackage -> hackage

* Fix Hackage param' type

* front changes from kind to hackage

* Fix tests

* Try fix templete

* Revert last commit

* Comment front test in travis
2019-01-05 16:08:42 +05:00
Artyom Kazak
c32852ab77
Move the backend to /back/ (#240) 2018-12-09 23:02:03 +01:00
Artyom Kazak
b597877af0
Pin highlighting-kate (#246) 2018-12-09 11:58:07 +01:00
Artyom Kazak
8788244c11 Throw away ReDoc 2018-09-22 18:53:07 +02:00
Artyom Kazak
0a309bbff4 Fix errors in the API 2018-09-22 18:53:07 +02:00
Artyom Kazak
b9796134bd Buildable on Windows 2018-09-04 01:35:01 +02:00
Artyom Kazak
4c3429ab10 Fix commit 2018-09-02 00:32:44 +02:00
Artyom Kazak
a68e1f1506 Serve both swaggers 2018-09-02 00:30:11 +02:00
Artyom Kazak
cdc4bd74fe Migrate to GHC 8.4 2018-09-02 00:03:48 +02:00
Artyom Kazak
6020688fa3 Use ReDoc instead of Swagger-UI 2018-09-01 20:25:47 +02:00
Artyom Kazak
227112e84e Bump all versions 2018-08-20 00:25:38 +02:00
Jens Krause
4da88af9c1
Add custom shell.nix file 2017-10-09 09:30:41 +02:00
Artyom
0f2d0fa86b
Update to newer cmark-sections 2017-09-10 16:08:03 +03:00
Artyom
76d76974ad
Implement a very simple Servant API 2017-09-01 11:46:37 +03:00
vrom911
11e8e92301 Use fmt-0.4.0 with renewed operators +| |+ 2017-08-12 12:56:41 +03:00
Juan Bono
abce5536b4 Merge pull request #171 from aelve/referrers
Show referrers better
2017-07-09 19:30:48 -03:00
Artyom
0c5e8c874b
Use newer text-all with bytestring encoding/decoding 2017-07-10 01:23:37 +03:00
Artyom
f987c7e6ea
Move safecopy utils to a separate package (safecopy-migrate) 2017-07-02 00:03:50 +03:00
Artyom
ffddc9b720
Merge branch 'master' into sessions 2017-05-23 21:30:53 +03:00
Artyom
d9b32e76ef
[#158] Bump LTS version to 8.13 2017-05-22 13:09:39 +03:00
Artyom
1e6ae6ec50
Switch to fmt-0.2 2017-04-26 21:56:46 +03:00
Aaron Friel
65c30a1276 Implement user sessions and type-safe admin routing 2017-03-17 15:02:51 -05:00
Artyom
4ff43808ee
Switch to the fmt library for formatting 2017-03-04 19:57:59 +03:00
Artyom
f4880ce85d
Update dependencies
* patches-vector with bumped base is available on Hackage now
* stache-plus has tests that don't compile on a system
  with an old GCC, so we have to use a branch with no tests
2017-02-09 12:02:21 +03:00
Artyom
e8a6afd7e5
Switch to GHC 8 2016-11-26 03:40:46 +03:00
Artyom
8bd2720a8a Get rid of some custom dependencies 2016-11-19 19:43:30 +03:00
Artyom
c54b1ee287 Switch to a newer Stackage snapshot 2016-08-29 19:31:11 +03:00
Artyom
c72815c436 Big switch to Mustache (only half-done)
* Render some elements of some pages with Mustache
* Switch to Stack
* Add a bit of tests
* Turn the project into a library
2016-08-17 11:18:57 +03:00