Commit Graph

213 Commits

Author SHA1 Message Date
rijkvanzanten
23fd029687 Move system collection rows out of DB 2020-10-28 16:26:46 -04:00
rijkvanzanten
53fb7a099a Fix validation error on empty permissions
Fixes #791 (maybe)
2020-10-28 15:01:38 -04:00
Rijk van Zanten
0a8017d4a5 Merge pull request #795 from nickrum/sqlite-update-fix
Pass knex instance to applyFilter
2020-10-28 12:38:55 +01:00
Rijk van Zanten
4d20c471d5 Merge pull request #794 from dimitrov-adrian/fix-asset-dot-extension
Fix asset .ext in stored filenames
2020-10-28 12:38:02 +01:00
Nicola Krumschmidt
8b601c5b60 Pass knex instance to applyFilter
This fixes a regression introduced in #786.
When using a SQLite database, items could not be updated any more.
This is due to knex by default only allowing a single connection for
SQLite databases and the item update operation using applyFilter inside
a transaction which tries to use a different knex instance to connect to
the database.
2020-10-28 00:33:53 +01:00
e01
84f2188d1d Fix .ext in assets 2020-10-27 18:45:10 +02:00
Rijk van Zanten
e61429fc66 Merge pull request #775 from apstanisic/items-service-generics
Add generics for ItemsService
2020-10-27 10:51:58 +01:00
Aleksandar Stanisic
c30a5fcb0c Simplify generics 2020-10-26 21:32:04 +01:00
rijkvanzanten
9559497785 Fetch public info from /server/info endpoint
Fixes #784
2020-10-26 19:08:07 +01:00
Aleksandar Stanisic
9130c1b0b8 Add types to readSingleton 2020-10-26 18:52:52 +01:00
rijkvanzanten
b4f82efcee Return project branding in /server/info endpoint at all times 2020-10-26 18:52:51 +01:00
Aleksandar Stanisic
498233c09a Add generics per method 2020-10-26 18:38:33 +01:00
rijkvanzanten
b36d2944c7 Merge branch 'main' into joins 2020-10-26 16:57:23 +01:00
rijkvanzanten
d1bb2c6046 Fix relational fetching in graphql endpoint
Fixes #769
2020-10-26 11:51:14 +01:00
rijkvanzanten
dae2ca530f Fix type casting in authorization service
Fixes #776
2020-10-26 11:30:21 +01:00
Aleksandar Stanisic
6d262539ca Add generics for ItemsService 2020-10-24 21:34:00 +02:00
rijkvanzanten
f583fae41a Allow setting now() as default value
Fixes #742
2020-10-21 13:28:33 +02:00
rijkvanzanten
40377b341d Normalize filenames on upload
Closes #687
2020-10-20 20:18:16 -04:00
rijkvanzanten
febdd0adbd Attempt at resolving joins in nested where queries 2020-10-20 11:02:02 -04:00
rijkvanzanten
a6908c2963 VS Code, why. 2020-10-19 15:29:11 -04:00
rijkvanzanten
35c06b0b15 Throw forbidden exception on 404 2020-10-19 15:27:05 -04:00
rijkvanzanten
592ab925db Add toArray util 2020-10-15 18:00:27 -04:00
rijkvanzanten
2c3992b1f1 Add precision / scale support
Fixes #560
2020-10-15 17:22:39 -04:00
rijkvanzanten
2023566163 Fix passing transaction to certain sections of relational update
Fixes #598
2020-10-14 16:39:24 -04:00
rijkvanzanten
191e1187fb Fix setting o2m to null 2020-10-14 13:28:01 -04:00
rijkvanzanten
7fcb4717a4 Fix o2m resetting too many items 2020-10-13 18:30:03 -04:00
rijkvanzanten
cbd08a82b0 Add last admin user check 2020-10-13 16:36:31 -04:00
rijkvanzanten
99b7ba0e2e Add check making sure you have at least one admin role left before deletion 2020-10-13 16:27:02 -04:00
rijkvanzanten
9e3ad30457 Make sure collection meta exists before setting permission
Fixes #523
2020-10-12 18:36:28 -04:00
rijkvanzanten
364389bb35 Fix returned relations 2020-10-12 16:21:23 -04:00
rijkvanzanten
8afe2ee0c9 Fix m2o not nesting pk correctly 2020-10-12 16:03:26 -04:00
rijkvanzanten
fa2e255b7e Update spec service to use m2a 2020-10-12 14:16:54 -04:00
rijkvanzanten
b39b8ff864 Cleanup dynamic specs endpoint, add permissions 2020-10-12 14:05:27 -04:00
rijkvanzanten
bcb9a6b289 Add filtering in service 2020-10-12 10:38:22 -04:00
rijkvanzanten
6660638bc4 Pre-research into m2a support on graphql 2020-10-09 19:49:58 -04:00
rijkvanzanten
58dfa5d717 Remove temp fields from m2a 2020-10-09 19:35:41 -04:00
rijkvanzanten
847157506a Comment out services (temp) 2020-10-09 14:34:34 -04:00
rijkvanzanten
5dba15082f Handle non-o2m cases 2020-10-09 13:13:49 -04:00
rijkvanzanten
a910e4c712 Temp comment out oas in favor of spec branch 2020-10-09 13:07:15 -04:00
rijkvanzanten
d8bd6c82ab Consider root ast a collection 2020-10-09 13:07:15 -04:00
rijkvanzanten
2e6b295ee4 Fix type check 2020-10-09 13:07:15 -04:00
rijkvanzanten
5b91bc3577 Rework nested ast typings to nodes 2020-10-09 13:07:15 -04:00
rijkvanzanten
a8a69f1fb8 Tweak IO of o2m 2020-10-09 13:03:29 -04:00
rijkvanzanten
5c2af0970d Add upsert method 2020-10-09 12:33:36 -04:00
rijkvanzanten
eca967b6ab Add updateByQuery / deleteByQuery support 2020-10-09 12:23:20 -04:00
rijkvanzanten
4e0b08f989 Fix webhooks registration 2020-10-06 16:49:18 -04:00
rijkvanzanten
55922f0092 Add subspec interface 2020-10-06 16:28:27 -04:00
rijkvanzanten
e1be24832a Cleanup spec service 2020-10-06 15:41:08 -04:00
rijkvanzanten
c993d2394b Merge branch 'main' into api-openapi 2020-10-06 14:45:58 -04:00
rijkvanzanten
9d20cbea9c Only return relations for collections/fields you have access to read 2020-10-06 14:43:52 -04:00