Commit Graph

96 Commits

Author SHA1 Message Date
Benedikt Kulmann
5780df7058 Fix endpoint urls 2020-08-19 13:17:09 +02:00
Benedikt Kulmann
8fdbefe38d Add default roles on service start 2020-08-19 13:11:20 +02:00
Benedikt Kulmann
20d95f23fa Make linter happy 2020-08-19 12:55:11 +02:00
Benedikt Kulmann
65d71bd6fd Add role service and manager 2020-08-19 12:55:11 +02:00
Benedikt Kulmann
143bf118fa Add RoleService and Permission to protobuf 2020-08-19 12:55:10 +02:00
Benedikt Kulmann
189a811da5 pre-allocate record slices 2020-08-19 12:14:25 +02:00
Benedikt Kulmann
0e8be0e195 Adapt UI app to new data model 2020-08-19 10:27:06 +02:00
Benedikt Kulmann
8282f348eb Make linter happy 2020-08-19 10:20:54 +02:00
Benedikt Kulmann
535717a025 Add tests for filesystem store implementation 2020-08-19 10:20:54 +02:00
Benedikt Kulmann
95e54866b8 Add test for account uuid from request 2020-08-19 10:20:54 +02:00
Benedikt Kulmann
42ecee73d9 Fix grpc tests 2020-08-19 10:20:53 +02:00
Benedikt Kulmann
acff61c406 Fix data path 2020-08-19 10:20:53 +02:00
Benedikt Kulmann
3cb272e76e Switch to uuids and simplify names
- bundles, settings and values now have uuids as identifier
- removed unnecessary name parts (SettingsBundle -> Bundle,
SettingsValue -> Value, ...)
2020-08-19 10:20:51 +02:00
Benedikt Kulmann
33720f2b5a Fix path in go package for generated files 2020-08-19 10:18:46 +02:00
Benedikt Kulmann
15a3e6c378 Make linter happy 2020-08-12 15:41:01 +02:00
Benedikt Kulmann
f2345bc654 Don't convert account ids to lowercase 2020-08-12 15:28:13 +02:00
Benedikt Kulmann
17658df8b6 Allow + . and @ in account ids 2020-08-12 15:26:12 +02:00
Benedikt Kulmann
a183de1d36 Allow alphanumeric, - and _ for account uuids 2020-08-12 14:43:12 +02:00
Benedikt Kulmann
2de2d0b33e Remove debug output 2020-08-12 14:40:15 +02:00
Vincent Petry
fa1784ebb6 Remove one more validator for UUID 2020-08-12 14:33:04 +02:00
Vincent Petry
12c1b96f6f Allow any user id format
The user id / account UUID should allow any format as in some cases a regular user name
could be used there.
2020-08-12 14:21:31 +02:00
A.Unger
ea65b50000 unit test getFailsafeIdentifier 2020-07-22 10:22:21 +02:00
A.Unger
2c901cf162 refactor 2020-07-22 09:36:38 +02:00
A.Unger
3704bb5be3 add defensive code on type assertion 2020-07-22 09:24:42 +02:00
Benedikt Kulmann
f7a1128d8a Check in updated embed.go 2020-07-02 08:14:04 +02:00
Benedikt Kulmann
7faf5ca52f Fix server naming 2020-07-02 08:13:24 +02:00
Benedikt Kulmann
35ccf26d65 Regenerate embed.go file 2020-06-09 09:49:56 +02:00
Benedikt Kulmann
f0ee8f8e1f Upgrade ODS to 1.6.0 2020-06-08 13:00:29 +02:00
Benedikt Kulmann
3a100258dc Fix formatting 2020-06-04 12:54:16 +02:00
Benedikt Kulmann
7158f762e0 Add test validating that spaces are allowed in display names. 2020-06-04 11:52:25 +02:00
Benedikt Kulmann
7907ae6708 Add test validating that UTF is allowed in display names 2020-06-04 11:49:02 +02:00
Benedikt Kulmann
6e2fe244ca Reuse dummy settings array 2020-06-04 11:37:36 +02:00
Benedikt Kulmann
baac21505a Use dummySettings on bundle properties test to simplify test scope 2020-06-04 11:30:22 +02:00
Benedikt Kulmann
4691cedb58 Add test validating that settings in a bundle cannot be empty 2020-06-04 10:57:13 +02:00
Benedikt Kulmann
cf02e53703 Revert "Make use of the new dynamic navItems feature in phoenix"
This reverts commit cdf1d89a63.
It was commited in this branch by accident.
2020-06-04 08:48:40 +02:00
Benedikt Kulmann
cdf1d89a63 Make use of the new dynamic navItems feature in phoenix
Phoenix core now has the ability to add navItems dynamically. With this
we can add navItems for the extensions which have at least one settings
bundle.
2020-06-04 08:37:58 +02:00
Benedikt Kulmann
86611f6e1c Make sure that account uuids are lower case 2020-06-03 15:30:35 +02:00
Benedikt Kulmann
6baabf2148 Remove Nil validation on ListSettingsValues request
That validation was just wrong. It enforced identifier values to be
empty.
2020-06-03 15:24:39 +02:00
Benedikt Kulmann
aae6356138 Fix formatting 2020-06-03 13:26:09 +02:00
Benedikt Kulmann
5a59a0ccd3 Remove redundant variable declarations 2020-06-03 13:18:43 +02:00
Benedikt Kulmann
3a9efee815 Make linters happy 2020-06-03 13:15:12 +02:00
Benedikt Kulmann
e7d3bb2063 Make get and list side effect free
Previously, Get and List requests could have the side effect of creating
folders. Creating required folders now only happens on save requests.
2020-06-03 13:00:14 +02:00
Benedikt Kulmann
b002720b03 Add validation for DisplayName and Settings being required in SettingsBundles 2020-06-03 12:43:32 +02:00
Benedikt Kulmann
cdafe48a62 Fix tests for invalid identifiers 2020-06-03 12:02:26 +02:00
Benedikt Kulmann
ac98d4b85b Adapt validation for list requests on bundles and values
There are certain scenarios where fields of the Identifier are allowed
to be empty. If they are not empty they still have to match our
requirements for the contents of those fields (alphanumeric, -, _). This
is taken into acccount as well now.
2020-06-03 11:23:24 +02:00
Benedikt Kulmann
718ec8e061 Set up input validation for Identifiers on settings bundles
Implemented first input validation steps by making static validation on
identifiers in settings bundle requests.
2020-06-03 10:50:28 +02:00
Artur Neumann
a922961f12 make staticcheck happy 1 2020-06-02 13:33:55 +02:00
Artur Neumann
72cfd4a89f gprc tests 2020-06-02 13:33:54 +02:00
Benedikt Kulmann
04837d5bcb Fix import formatting 2020-05-27 16:05:50 +02:00
Benedikt Kulmann
080384870a Use account uuid from request context in augmented identifier 2020-05-27 15:38:12 +02:00