Commit Graph

117 Commits

Author SHA1 Message Date
rijkvanzanten
05f0bc967e Turn hash into type
Fixes #3542
2021-01-12 17:08:19 -05:00
rijkvanzanten
c1f87113bf use express types instead of custom versions 2021-01-12 16:06:35 -05:00
WoLfulus
c5f3802da3 Replace express-async-handler for a local function. 2020-12-22 17:11:08 -03:00
Aleksandar Stanisic
9c1308b8b6 Enable reversing _null, _nnull, _empty and _nempty 2020-12-21 00:06:52 +01:00
WoLfulus
7f3e095a1f Enable base and admin routes when developing a Directus app 2020-12-17 11:42:50 -03:00
rijkvanzanten
2c032cd44d Fix validation object
Fixes #3375
2020-12-14 19:09:35 -05:00
rijkvanzanten
ea1853acfb Alias joins to prevent naming conflicts in nested queries
Fixes #3294
2020-12-08 17:55:40 -05:00
Igor Savin
7cddb458cb Run prettier across app and api 2020-12-08 02:22:00 +02:00
rijkvanzanten
9ce3f264b6 Bad log, no log 2020-12-01 12:45:09 -05:00
rijkvanzanten
cc2b18d711 Cas't string default value NULL to null
Fixes #2924
2020-11-27 20:53:51 -05:00
rijkvanzanten
100937c2dd Fix *.*.* fields using wrong default fields
Fixes #3219
2020-11-27 19:44:53 -05:00
rijkvanzanten
665ab42c5d Merge branch 'main' into m2a-interface 2020-11-27 13:55:06 -05:00
rijkvanzanten
7891920209 Fix nested or filter in permissions
Fixes #3167
2020-11-23 10:24:00 -05:00
rijkvanzanten
0002393486 Allow nested objects in env vars
FE: DB_SSL__CA=example
2020-11-20 15:19:38 -05:00
rijkvanzanten
563fdaba9c Fix shared fields in m2a fetch 2020-11-17 11:44:29 -05:00
rijkvanzanten
168e96ed03 Support field scoping in fields parameter 2020-11-17 11:27:09 -05:00
rijkvanzanten
e8f0d70322 Replace deep-map, fix _and filter parsing 2020-11-12 16:09:51 -05:00
rijkvanzanten
0c72ee6b1d Fix deep filters in app, fix current-user/current-role in filters 2020-11-12 14:12:05 -05:00
rijkvanzanten
236bde3c59 Fix deep query validation 2020-11-12 13:08:11 -05:00
rijkvanzanten
ae0fcc28fe Use dropdown for boolean default value 2020-11-11 16:10:33 -05:00
rijkvanzanten
a08d47971b Fix connection string connections 2020-11-10 17:22:45 -05:00
rijkvanzanten
1d53345da2 Only set single when passed true
Or '' or '1'

Fixes #913
2020-11-10 13:30:20 -05:00
rijkvanzanten
8cbdfb409b Use prefetched schema info 2020-11-09 17:13:48 -05:00
rijkvanzanten
528112314d Remove outdated tests, fix imports 2020-11-09 12:29:01 -05:00
rijkvanzanten
11dc1b6462 Don't auto-nest o2m if you don't have read access 2020-11-06 14:57:57 -05:00
rijkvanzanten
ee5211ce02 Fix nesting parent item recursively
Fixes #906
2020-11-06 14:15:26 -05:00
rijkvanzanten
a30da7e4c0 Update primary key checks for new versino of schema inspector 2020-11-04 15:18:45 -05:00
rijkvanzanten
baa62027ad Return JSON/CSV as unknown JSON blobs in GraphQL
Fixes #870
2020-11-03 19:18:23 -05:00
e01
84f902bfac Fix _ncontains typo 2020-11-02 16:39:56 +02:00
rijkvanzanten
708aea6fb6 Allow App to run under subpath 2020-10-30 18:11:55 -04:00
rijkvanzanten
13c4e7a49c Prevent maximum callstack error on wrong filter
Ref #805
2020-10-29 17:02:13 -04:00
rijkvanzanten
fa448c23d0 Remove double limit -1 check
Fixes #806
2020-10-29 16:34:37 -04:00
rijkvanzanten
d3ca132fad Move system relations out of db 2020-10-29 13:29:07 -04:00
rijkvanzanten
ee9baf02c0 Move system fields out of DB 2020-10-29 13:06:37 -04:00
rijkvanzanten
23fd029687 Move system collection rows out of DB 2020-10-28 16:26:46 -04: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
rijkvanzanten
8401c4cdbc Fix typing of toArray helper 2020-10-26 20:23:20 +01:00
rijkvanzanten
91bfcb875f Don't auto convert , to arrays in env
Fixes #782
2020-10-26 19:38:36 +01:00
rijkvanzanten
c49e1b0279 Extract adding joins to separate function 2020-10-26 18:33:38 +01:00
rijkvanzanten
8ecb8da3ab Default to _eq for filter 2020-10-26 17:30:27 +01:00
rijkvanzanten
febdd0adbd Attempt at resolving joins in nested where queries 2020-10-20 11:02:02 -04:00
rijkvanzanten
16cd8838a9 Fix in filter array parsing 2020-10-19 11:43:32 -04:00
rijkvanzanten
3d05b8cbe5 Finish translations 2020-10-16 18:59:00 -04:00
rijkvanzanten
634e58c217 Fix meta validatoin 2020-10-16 16:02:41 -04:00
rijkvanzanten
592ab925db Add toArray util 2020-10-15 18:00:27 -04:00
rijkvanzanten
cac329c783 Convert env var values that contain , to arrays 2020-10-15 17:45:15 -04:00
rijkvanzanten
2c3992b1f1 Add precision / scale support
Fixes #560
2020-10-15 17:22:39 -04:00
rijkvanzanten
5e1a54aee7 Don't treat top level m2os as relational 2020-10-15 10:40:08 -04:00
rijkvanzanten
8e966eb981 Fix *.* not fetching correct current level fields 2020-10-15 10:31:05 -04:00
rijkvanzanten
2023566163 Fix passing transaction to certain sections of relational update
Fixes #598
2020-10-14 16:39:24 -04:00