Commit Graph

78 Commits

Author SHA1 Message Date
A.Unger
11dee33e3c update github.com/mennanov/fieldmask-utils@v0.3.3
slim down cofig
2020-11-03 15:33:27 +01:00
Alex Unger
6761f70959 try non unique? 2020-10-29 16:09:20 +01:00
Alex Unger
636caea217 add index on account.Id due to a rogue query 2020-10-29 15:24:26 +01:00
A.Unger
c72e212c91 first implementation of our own query tree and tree resolution
added godata dep

use correct godata dependency, enhance tests

refactor around indexer search tree

tests reflecting currently used queries

fix static checker

fix linter

replace old regexp with a calll to indexer.Query

fix linter

remove offenses
2020-10-28 16:02:44 +01:00
Benedikt Kulmann
fe0e4303a0 Use LoadAccounts in accounts handler 2020-10-24 06:37:29 +02:00
A.Unger
142f094f43 Merge branch 'master' into rebuild-index 2020-10-23 22:58:35 +02:00
Jörn Friedrich Dreyer
031a1b8012 Fix id or username query handling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-10-23 16:40:52 +02:00
Benedikt Kulmann
be6c429535 Add more details to errors 2020-10-23 16:34:51 +02:00
Benedikt Kulmann
bf5a960714 Reformat responses 2020-10-23 16:30:23 +02:00
Benedikt Kulmann
16a74c8a7e Docblocks and refactoring 2020-10-23 16:15:52 +02:00
Benedikt Kulmann
6eaa04ee9e Rebuild groups index 2020-10-23 16:09:00 +02:00
Benedikt Kulmann
8ac50f9839 Fix loading all accounts 2020-10-23 16:03:03 +02:00
Benedikt Kulmann
03a0c3d5e5 Rebuild index for accounts 2020-10-23 14:45:37 +02:00
A.Unger
f89c05cf61 raw implementation of index Delete 2020-10-23 14:11:20 +02:00
Benedikt Kulmann
a518a51f72 Extract creating indices on the indexer into a function 2020-10-23 12:55:01 +02:00
A.Unger
17b7c82425 basic wiring 2020-10-23 12:23:33 +02:00
A.Unger
50b0e6568b Merge branch 'master' into rebuild-index 2020-10-23 12:19:38 +02:00
Benedikt Kulmann
4206071af6 First part of index reset 2020-10-23 11:54:07 +02:00
Benedikt Kulmann
d2e011b744 Disable deprecation warning for proto package 2020-10-23 10:30:21 +02:00
Benedikt Kulmann
be9f6e574b Use proto.Merge 2020-10-23 10:19:17 +02:00
A.Unger
b232e9f46f make vet happy, use protobuf generated merger 2020-10-22 13:39:54 +02:00
A.Unger
cbf13d0972 fix build 2020-10-21 12:16:25 +02:00
A.Unger
a08d94e8b3 fix staticcheck + linter 2020-10-21 12:12:23 +02:00
Benedikt Kulmann
dee9959e69 Make indexes configurable for being case insensitive 2020-10-19 17:53:53 +02:00
Benedikt Kulmann
cb5a78f0dd Allow email on auth queries 2020-10-19 12:29:10 +02:00
A.Unger
d902f50b42 fix vet 2020-10-19 11:36:19 +02:00
A.Unger
b9695c01c1 fix static check 2020-10-19 11:28:47 +02:00
A.Unger
febd6fa65b fix query order from more explicit to less 2020-10-19 11:25:22 +02:00
Benedikt Kulmann
cb7e98ecbc Add another account search regex 2020-10-19 10:48:45 +02:00
Benedikt Kulmann
c340816953 Revert "WIP regexes for account search"
This reverts commit ad33ee7716.
2020-10-19 10:35:05 +02:00
Benedikt Kulmann
ad33ee7716 WIP regexes for account search 2020-10-19 09:42:47 +02:00
Benedikt Kulmann
a6c2e808ae Refactor auth request within ListAccounts
The auth request is a special case of ListAccounts with query. It must
only have one account as a result and doesn't need to go through the
full process of query matching. Refactored the function to take some
shortcuts for auth requests.
2020-10-17 13:08:17 +02:00
Benedikt Kulmann
9dbf77fad1 Fix more index tests 2020-10-16 09:57:08 +02:00
Benedikt Kulmann
16a190857f Fix staticchecks 2020-10-15 23:59:53 +02:00
Benedikt Kulmann
79a4b81147 Get rid of checkError test function and fix account update validation 2020-10-15 22:58:07 +02:00
Benedikt Kulmann
5f6b36c1db prevent duplicate accounts and validate account update 2020-10-15 22:34:00 +02:00
Ilja Neumann
ca1fa005a6 Return BadRequestError instead of InternalServerError
Apparently InternalServer errors are not returned back by the handler
2020-10-15 18:00:08 +02:00
A.Unger
da70231338 whatever dude 2020-10-15 17:08:16 +02:00
A.Unger
019b1070df assign users to default users group (gid=30000) on creation 2020-10-15 15:43:10 +02:00
A.Unger
d5c5e519ba fix TestCreateExistingUser test 2020-10-15 15:43:10 +02:00
A.Unger
97da31627f refactor test suite 2020-10-15 15:43:10 +02:00
Benedikt Kulmann
441e7156f4 Add note regarding rollback 2020-10-15 15:43:10 +02:00
Benedikt Kulmann
f6d3425de8 Create default group for new accounts 2020-10-15 15:43:10 +02:00
Benedikt Kulmann
f3f9c3d9fb Add rollback for CreateGroup when indexing fails 2020-10-15 15:43:10 +02:00
Benedikt Kulmann
37dc6c7db9 Rollback account creation on error 2020-10-15 15:43:10 +02:00
A.Unger
c460908e44 add lower and upper bound to config 2020-10-15 15:43:08 +02:00
Benedikt Kulmann
d578a2603a Fix service user 2020-10-15 15:36:06 +02:00
Benedikt Kulmann
629561833a Write uid and gid from autoincrement index into accounts/groups 2020-10-15 15:36:04 +02:00
Ilja Neumann
3aa10fa8f0 Fix lint 2020-10-14 18:03:52 +02:00
Ilja Neumann
f651303866 Fix id or samaccount query 2020-10-14 18:03:52 +02:00