Rijk van Zanten
b613ce1d18
Improve recursive filtering ( #4493 )
...
* Use lowercase chars only
* Fix join alias mapping
* Pass keys as array in delete
* Cleanup delete controller
* Don't catch unexpected errors
2021-03-11 17:56:04 -05:00
Rijk van Zanten
4248b187bb
Implement unique constraint support ( #4467 )
...
* Allow creating unique fields
* Allow removing unique constriant
* Show unique constraint error as validation error in app
2021-03-10 17:35:21 -05:00
Rijk van Zanten
971a18c219
Database Error Abstraction ( #4465 )
...
* Start on database-error abstraction layer
* Add SQLite error abstraction
* Enable SQLite foreign key support
* Cleanup sqlite dialect slightly
Does it matter? Not really!
* Add MySQL error abstraction
* WIP Almost done with MSSQL
* Add correct error handling for MS SQL
* Fix mysql errors by not relying on value order
* Don't rely on sql in postgres exception translation
* Fix sqlite error parsing
* Remove foreign key constraint from activity to collections
A collection can be DB-only, but we still want to track activity for non-meta collections
* Translate error on update as well
2021-03-10 17:16:15 -05:00
rijkvanzanten
e8222d2a28
Add reset_url allow list for password reset request
2021-03-08 13:48:59 -05:00
rijkvanzanten
5afa6c04fc
Create field in transaction
...
Fixes #4211
2021-03-04 17:35:39 -05:00
Rijk van Zanten
30f631b0b2
Allow deeply nested queries with deep ( #4384 )
...
* Allow deeply nested query using _prefix
* Support deeply nested deep-queries
* Parse nested deep in GraphQL correctly
* Update docs
2021-03-04 12:59:54 -05:00
rijkvanzanten
d9a09719cf
Fix width/height of exif orientation image
...
Fixes #4323
2021-03-04 10:28:47 -05:00
Nicola Krumschmidt
08293b8570
Update Knex to version 0.95.0 ( #4374 )
...
* Update Knex to version 0.95.0
* Fix formatting in schema dialects
* Fix Knex imports
* Update package-lock
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-03-03 19:37:44 -05:00
rijkvanzanten
c3dd7023a7
Don't surface forbidden reasoning
2021-03-03 17:33:11 -05:00
rijkvanzanten
738ef8622d
Don't leak collection name in param exception
2021-03-03 17:04:44 -05:00
Rijk van Zanten
7ab359eacf
Throw forbidden error on /fields ( #4366 )
...
Fixes #4349
2021-03-03 17:04:39 -05:00
Rijk van Zanten
1d9ffc2d7f
Tweak asset metadata on upload ( #4317 )
...
* Update sharp
* Only read image metadata after upload
Preserves animated gifs and other files
Fixes #4297
* Rotate thumbnails based on exif data
Ref #4206
2021-02-26 17:18:17 -05:00
rijkvanzanten
f6c4ab0e6a
Check if table still exists before auto-dropping columns
2021-02-26 16:08:10 -05:00
Rijk van Zanten
b0f3c0591a
Add "explicit" o2m update syntax ( #4295 )
...
* Add support for a new o2m relational update structure
* Document these wonders
2021-02-25 14:08:57 -05:00
rijkvanzanten
4cfa64e752
Fix outgoing headers in /graphql
...
Fixes #4264
2021-02-24 11:06:55 -05:00
Pyll Gomez
aeb4ec0472
API hooks for event added for auth.login ( #4255 )
...
* Rotate JPG image on upload #4206
* fixes #3949 width/height generated for gif and tif
* API hooks for event added for auth.login #4079
* updated doc for api hooks for new auth.login event
* Style tweaks
* Update docs
* Tweak docs some more
* Spelling error
* Allow non-required flags and pass to hook
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-02-24 10:37:13 -05:00
Pyll Gomez
08e4400935
Fix for generating meta data gif and tiff images ( #4230 )
...
* Rotate JPG image on upload #4206
* fixes #3949 width/height generated for gif and tif
2021-02-22 17:10:24 -05:00
Pyll Gomez
87ec42c1bc
Rotate JPG image on upload #4206 ( #4223 )
2021-02-22 12:36:03 -05:00
Nicola Krumschmidt
065f7ea72a
Check if array is empty before inserting into database ( #4003 )
2021-02-18 15:10:12 -05:00
rijkvanzanten
f9685b0d4a
Base content-length on stat instead of saved value
2021-02-18 13:33:03 -05:00
Rijk van Zanten
6661633031
Fetch all meta rows when retrieving collections ( #4142 )
2021-02-17 18:55:29 -05:00
Rijk van Zanten
b81cfe0a49
Implement byte-range requests on /assets ( #4136 )
...
Fixes #3640
2021-02-17 17:56:44 -05:00
alejandro-tss
d9cff2f8f3
Fixed authorization service ( #4130 )
...
Fix permission filter when validate payload in authorization service
2021-02-17 11:19:07 -05:00
rijkvanzanten
3615612da0
Apply search to filter_count
...
Fixes #4121
2021-02-17 10:47:57 -05:00
rijkvanzanten
b88150c29d
Save "null" default value as null
...
Closes #3190
2021-02-15 14:04:02 -05:00
rijkvanzanten
76f1a387c7
Throw error on reading forbidden collection
...
Ref #4043
2021-02-15 13:50:44 -05:00
rijkvanzanten
d1ecac4394
Cleanup import
2021-02-15 13:50:17 -05:00
Rijk van Zanten
62f040b5d8
Warn on usage of __ prefixed fields in GraphQL ( #4033 )
...
Fixes #3825
2021-02-12 15:36:11 -05:00
Rijk van Zanten
ee3f5cbad3
Various m2a builder fixes ( #4032 )
...
* Fix drawer opening empty item after sort
* Fix null sorting
* Fix sending null for a type in field creation
* Fix sort / edit existing on sorted values in m2a builder
Fixes #4005 , fixes #4007
* Remove stray console log
2021-02-12 15:23:23 -05:00
Rijk van Zanten
b7d87e581a
System permissions for app access ( #4004 )
...
* Pass relations through schema, instead of individual reads
* Fetch field transforms upfront
* Fix length check
* List if user has app access or not in accountability
* Load permissions up front, merge app access minimal permissions
* Show app access required permissions in permissions overview
* Show system minimal permissions in permissions detail
* Fix app access check in authenticate for jwt use
* Fix minimal permissions for presets
* Remove /permissions/me in favor of root use w/ permissions
* Fix logical nested OR in an AND
* Use root permissions endpoint with filter instead of /me
* Allow filter query on /permissions
* Add system minimal app access permissions into result of /permissions
* Remove stray console log
* Remove stray console.dir
* Set current role as role for minimal permissions
* Fix no-permissions state for user detail
* Add filter items function that allows altering existing result set
2021-02-11 12:50:56 -05:00
Daniel Stoyanoff
54bab04b3c
#3982 - Write logs as part of health check in case the status is ERROR or WARN to help investigating issues easier ( #3993 )
...
Co-authored-by: Daniel <daniel.s@appgr8.com >
2021-02-10 09:37:21 -05:00
Rijk van Zanten
e6fa07dba8
Allow field creation with just field/type combo ( #3990 )
...
Fixes #3926
2021-02-09 18:43:25 -05:00
andriusign
c00e89a8c0
Allow to pass custom URL for user invitation ( #3972 )
...
* Allow to pass custom URL for invitation to enable verification of user's email on custom Frond-End page (other than Directus Admin page).
* Update api/src/services/users.ts
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
* Update api/src/services/users.ts
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
* Update api/src/services/users.ts
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-02-08 16:39:11 -05:00
Rijk van Zanten
4144cecef5
Fix validation structure in authorization service ( #3967 )
...
Fixes #3597
2021-02-08 15:13:14 -05:00
WoLfulus
b8e7c80b72
Application initialization events ( #3680 )
...
* Adds `not_found` hook
* Separate hooks and endpoints initialization process
* Adds additional application events
* Remove unused import
* Change the event order to accound for notFound and errorHandler
* Change emitAsync.catch to use the emitAsyncSafe function
* Updated docs, reordered table by lifecycle and usage
2021-02-08 12:30:09 -05:00
Joseph Geis
42f0f01b13
Add system collections to GraphQL schema (wip) ( #3872 )
2021-02-08 12:21:50 -05:00
Rijk van Zanten
817ccf3620
Overhaul docs ( #3951 )
...
* Add Quickstart Guide
* Update installation
* Remove unused files
* Update support/backing
* Tweaks in concepts
* Setup file structure for API reference 2.0
* Setup page layout for reference
* Add clean-urls plugin
* getting started updates
* Finish authentication rest
* getting started updates
* Render stylus in 2 spaces
* Various
* Various
* Finish activity docs
* Add collections reference
* Add extension reference
* concepts updates
* Fields/tweaks
* Add files doc
* Add revisions
* concepts docs
* More api reference
* Finish rest api reference (finally)
* initial concepts
* More things
* Add assets api ref
* Move sections from file to assets
* Add environment variables
* contributing docs
* Add field transforms page
* Left align table headers
* concept links
* Add API config
* Fix mobile nav
* Add migrating a project
* doc link fixes
Co-authored-by: Ben Haynes <ben@rngr.org >
2021-02-05 18:51:54 -05:00
Rijk van Zanten
5a019b4284
Implemented Union Types in GraphQL ( #3852 )
...
* Fetch correct amount of data
* Allow system required data to be returned in items service
* Fetch non-requested required data, find type through context
Fixes #3718
2021-01-29 16:23:33 -05:00
Rijk van Zanten
6cce246b92
Prefix union type name with collection name ( #3847 )
...
Fixes #3835
2021-01-29 10:56:41 -05:00
rijkvanzanten
5632bd0ea7
Only check existense of user password when using password auth
...
Fixes #3831
2021-01-28 11:52:59 -05:00
rijkvanzanten
9bf8b5242c
Fix modifying payloads from before hooks
...
Fixes #3776
2021-01-27 12:48:46 -05:00
rijkvanzanten
154ec3977b
Don't crash on upload of corrupted files
2021-01-25 19:03:25 -05:00
rijkvanzanten
99052add83
Treat no password as invalid
2021-01-25 17:46:51 -05:00
rijkvanzanten
b6524b20eb
Tweak perf values
2021-01-20 21:26:46 -05:00
rijkvanzanten
d98300d528
Fix graphql response type
2021-01-14 12:52:57 -05:00
rijkvanzanten
05f0bc967e
Turn hash into type
...
Fixes #3542
2021-01-12 17:08:19 -05:00
rijkvanzanten
f00a38737b
Delete collections item first
...
Fixes #3593
2021-01-12 16:23:30 -05:00
rijkvanzanten
7fa977f002
Warn instead of crash on failed exif/iptc/icc extraction
...
Fixes #3535
2021-01-12 11:10:17 -05:00
Rijk van Zanten
64da0cadc3
Merge pull request #3645 from mehmetuken/create-hook
...
Create event emitter take out transaction scope.
2021-01-11 08:37:00 -07:00
Mehmet Tüken
ce21ce54ee
emit create event take out transaction scope.
2021-01-11 09:18:43 +03:00