Commit Graph

207 Commits

Author SHA1 Message Date
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
300709f527 add a new model - UserFilterOr 2021-03-09 20:17:16 +01:00
419c1f7aaf update schema 2021-03-09 19:42:29 +01:00
16caa7bbe9 UserInput.Sanitize - don't convert a password to lowercase 2021-03-07 19:48:59 +01:00
12d8fb51f4 - add a new method 'HasBasicDataToUpdate' to the two inputs: QuestionInput and QualificationInput
- small changes in error handling (qualification.pgRepository.UpdateMany, qualification.pgRepository.Store, profession.pgRepository.UpdateMany, profession.pgRepository.Store)
2021-03-07 13:06:00 +01:00
c7391ec468 add the .idea folder to the .gitignore 2021-03-07 11:57:22 +01:00
82853734be another part of bugfixes 2021-03-06 14:43:50 +01:00
a44afa628c update main.go, bugfixes 2021-03-06 14:02:48 +01:00
147b11b87a
Merge pull request #5 from zdam-egzamin-zawodowy/gqlgen
gqlgen configuration
2021-03-06 13:30:14 +01:00
ae1fa40c70 add graphql httpdelivery 2021-03-06 13:29:22 +01:00
03fad75536 add a new package 'dataloader', add a new middleware 'DataLoaderToContext' 2021-03-06 13:16:50 +01:00
4c0bf09b69 add question resolvers implementation 2021-03-06 12:54:39 +01:00
f11a986ab5 add qualification resolvers implementation 2021-03-06 12:49:42 +01:00
85d8530b78 add profession resolvers implementation 2021-03-06 12:34:13 +01:00
31f632e653 add user resolvers implementation 2021-03-06 12:29:33 +01:00
7da98d0f97 add 2 directive handlers (authenticated, hasRole) 2021-03-06 12:02:26 +01:00
49c8dd355a add graphql schema 2021-03-06 11:54:55 +01:00
4f9c6b67df
Merge pull request #4 from zdam-egzamin-zawodowy/gin-configuration
Add some gin middlewares (Authenticate, Logger, GinContextToContext)
2021-03-06 10:35:28 +01:00
9f881aba1d add a new middleware - Logger 2021-03-06 10:33:47 +01:00
6251cacded add two middlewares - Authenticate and GinContextToContext 2021-03-06 10:05:54 +01:00
acbc4defe2
Merge pull request #3 from zdam-egzamin-zawodowy/usecases-and-repositories
add usecases and repositories
2021-03-06 09:33:21 +01:00
575479f236 add auth package 2021-03-06 09:32:15 +01:00
fdb934145a add QuestionInput sanitization 2021-03-06 09:03:39 +01:00
b066446051 add QualificationInput sanitization 2021-03-06 09:01:22 +01:00
75253f2c02 add ProfessionInput sanitization 2021-03-06 08:58:57 +01:00
cc93a57af9 add UserInput sanitization 2021-03-06 08:56:54 +01:00
56c8c9160b rename two utils (sqlutils.SanitizeSortExpression -> sqlutils.SanitizeSort, sqlutils.SanitizeSortExpressions -> sqlutils.SanitizeSorts), add a new helper type to db package (Sort) 2021-03-06 08:44:49 +01:00
838a93b8b5 refactor, add question.Usecase implementation 2021-03-05 19:52:15 +01:00
4746b4c153 question - pg_repository - add a new method GenerateTest 2021-03-04 19:27:00 +01:00
7ae94f16a0 question - add a new type 'repository' which includes all helpers, remove helpers 2021-03-04 17:23:36 +01:00
2ee047a801 [WIP]: rename question.Repository.FindByIDAndUpdate -> question.Repository.UpdateOneByID 2021-02-28 17:59:53 +01:00
ff9e6289ee [WIP]: initial version of question repository 2021-02-28 17:54:40 +01:00
17c0d6c4e5 add a new package - filestorage 2021-02-28 15:01:30 +01:00
8fae4a2b03 add qualification repository and usecase 2021-02-27 14:46:00 +01:00
a9d7250623 add user usecase/repository | add admin acc creation when none exists 2021-02-27 14:01:59 +01:00
532cf70b84 profession - add validation to UpdateOne and Store methods 2021-02-27 12:40:06 +01:00
3414f8cbb5 add sort expression sanitization 2021-02-27 12:17:29 +01:00
b1a50a3e1e profession - add usecase 2021-02-27 12:12:16 +01:00
f49dfc5c43 profession: add pg_repository, add a new package errorutils 2021-02-27 11:33:16 +01:00
c3408ef7c8 fix not adding fk constraints 2021-02-27 10:34:06 +01:00
4b4398d851
Merge pull request #2 from zdam-egzamin-zawodowy/db-connection
add two new packages - envutils and db, add .gitignore
2021-02-27 10:14:10 +01:00
d39a6317fc add two new packages - envutils and db, add .gitignore 2021-02-27 10:13:35 +01:00
26abcb7a45
Merge pull request #1 from zdam-egzamin-zawodowy/models
add models
2021-02-27 09:31:50 +01:00
a9e34ccc57 add two new models - QuestionInput and QuestionFilter 2021-02-27 09:29:30 +01:00