Commit Graph

150 Commits

Author SHA1 Message Date
d38e675c9e rename one variable 2021-05-04 20:13:20 +02:00
cade63a9b7 bump github.com/Kichiyaki/goutil, use reflect in models.isZero 2021-05-04 20:10:21 +02:00
6fc7af4b50 bump github.com/Kichiyaki/goutil 2021-05-04 19:19:14 +02:00
f907e7294e add github.com/Kichiyaki/goutil, github.com/Kichiyaki/appmode, github.com/Kichiyaki/gopgutil 2021-05-02 13:16:32 +02:00
c05cc6ee9d add info when server startup 2021-05-02 09:30:02 +02:00
f65aa260b8
Merge pull request #7 from zdam-egzamin-zawodowy/refactor
Refactor
2021-05-02 09:25:30 +02:00
c2330ccd00 go mod tidy 2021-05-02 09:24:59 +02:00
804264375a replace os.Getenv with envutil.GetenvString 2021-05-02 09:23:35 +02:00
89ce683e08 move/rename packages 2021-05-02 09:15:10 +02:00
7de549f183 rename/move some of the packages/files 2021-05-02 08:36:10 +02:00
5bd09500c1 bump github.com/Kichiyaki/ginlogrus and github.com/Kichiyaki/go-pg-logrus-query-logger/v10 2021-05-02 08:10:54 +02:00
7b9487fd8d bump github.com/Kichiyaki/gin-logrus and github.com/Kichiyaki/go-pg-logrus-query-logger/v10 2021-04-28 20:08:22 +02:00
fb1b65d8a4 remove DebugHook 2021-04-25 18:29:50 +02:00
da752803a5 downgrade gin-gonic/gin 2021-04-24 15:28:49 +02:00
44288ec6a9 bump github.com/Kichiyaki/gin-logrus 2021-04-23 20:28:12 +02:00
b96d2391ff move query logger to the separate package, bump github.com/Kichiyaki/gin-logrus 2021-04-23 19:58:14 +02:00
f85a21e86f move logger to the separate package, add checks if models are valid go-pg hooks 2021-04-23 19:29:13 +02:00
1fc884b151 use logrus.JSONFormatter instead of logrus.TextFormatter when mode == production 2021-04-22 18:24:40 +02:00
78531f8a13 don't return details when MODE == "production" (errorutils.Wrap) 2021-04-19 22:23:10 +02:00
6bc4fed70b order associated qualifications by formula and code 2021-04-17 16:41:56 +02:00
a0f9646bcc add circleci 2021-04-16 06:38:48 +02:00
48d55df7a9 add Dockerfile 2021-04-13 06:20:43 +02:00
6216c1d923 remove unused constants 2021-04-11 11:52:33 +02:00
5b0efa2ee7 increase the max length of a qualification name (100 -> 200) 2021-04-11 11:45:47 +02:00
efafee1ccd qualification_pg_repository.GetSimilar should return an empty slice when len(qualificationIDs) == 0 2021-04-05 17:31:36 +02:00
68c0509c54 update schema 2021-04-05 12:22:54 +02:00
afaea39c5e fix: question_pg_repository.associateQualificationWithProfession does nothing on conflict 2021-04-04 19:52:15 +02:00
1ba3949d57 add a new field (id) to QualificationToProfession 2021-04-03 10:32:17 +02:00
44ca74144f add a new query - similarQualifications 2021-03-28 09:07:34 +02:00
0b14efd014 replace fmt.Errorf with errors.New/errors.Errorf 2021-03-27 16:20:55 +01:00
c3c57b780c add a new method to the Qualification usecase/repository - GetSimilar 2021-03-27 16:03:43 +01:00
48d2adb7ae
Merge pull request #6 from zdam-egzamin-zawodowy/query-complexity
query complexity
2021-03-24 06:23:32 +01:00
51b3771e04 move 'totalFieldComplexity' from every query to constants 2021-03-24 06:18:01 +01:00
311026fb7a update algorithm that computes query complexity 2021-03-24 06:15:48 +01:00
6c28c9798d move getQueryComplexity to a separate package 2021-03-24 05:43:43 +01:00
e936b9b0ed add a new field to the Profession graphql type (Qualifications) 2021-03-21 18:19:22 +01:00
827a353fba add complexity for mutations 2021-03-21 17:43:12 +01:00
91a35dd2e7 add complexity limit 2021-03-20 16:44:56 +01:00
f86160c8b3 Question: fix image upload 2021-03-14 11:38:05 +01:00
4e60592044 Question: fix image upload 2021-03-14 10:37:56 +01:00
d8e838c6b7 replace hardcoded sql statements with corresponding sqlutils in models 2021-03-13 18:40:06 +01:00
5303afc6e8 Question: fix answers 2021-03-13 16:41:09 +01:00
01ab1aa509 small refactor 2021-03-13 16:05:20 +01:00
e0fb674f17 update graphql schema 2021-03-13 08:59:33 +01:00
8978aed00d models.ProfessionFilter: add a new field - QualificationID 2021-03-13 08:58:23 +01:00
d02d32ec5a fix UserInput.ApplyUpdate uses wrong column name for email field 2021-03-12 11:13:38 +01:00
a92079f315 fix or filters: use WhereOr method instead of Where 2021-03-12 08:20:42 +01:00
a1436e8df3 fix undefined: question.DefaultLimit 2021-03-11 20:25:40 +01:00
81900132ea profession, qualification, user: fix sorting 2021-03-11 20:23:53 +01:00
5dd92c0665 Question: add a pagination limit to the usecase.Fetch method 2021-03-11 19:48:24 +01:00