Commit Graph

1090 Commits

Author SHA1 Message Date
rijkvanzanten
d9a09719cf Fix width/height of exif orientation image
Fixes #4323
2021-03-04 10:28:47 -05:00
rijkvanzanten
31b5dbfe66 Fix validation error on preset creation with app access
Fixes #4369
2021-03-03 19:57:04 -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
5f08b5e331 Support root option in S3/Azure/GCS (#4364)
* Support `root` option in S3

* Ignore GCS key files for local testing

* Default root to empty string

* Add dev watchers to drive-* packages

* Add file rootpath to Azure
2021-03-03 16:37:44 -05:00
reolat
24548680d5 Create allow list for custom migration file extensions (#4358) 2021-03-03 12:24:04 -05:00
rijkvanzanten
8aedc29aa1 v9.0.0-rc.44 2021-02-26 17:32:48 -05:00
rijkvanzanten
ba4810bac3 Prevent direct(us_) access through /items 2021-02-26 17:30:51 -05:00
rijkvanzanten
09a4b673eb Fix filtering by number
Fixes #3917
2021-02-26 17:30:20 -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
Ben Haynes
83b1aa53c2 desaturate all system dividers 2021-02-26 11:32:52 -05:00
rijkvanzanten
c2a5622cef Remove unused environment variable 2021-02-26 10:49:19 -05:00
rijkvanzanten
6a2f4c42a0 Fix permission presets parsing on mysql
Fixes #4199
2021-02-26 10:30:16 -05:00
Rijk van Zanten
db30acbb8a Move sortField to relationship setup (#4304)
* Add migration

* Add sort field to relation types

* Remove sortfield options in favor of relationship

* Add sort field configuration to relational setup

* Save m2a sortfield on the correct row

* Add default sort field to system data
2021-02-25 19:13:36 -05:00
rijkvanzanten
f088074d48 Only return full 500 stack trace to authenticated admin users 2021-02-25 19:12:18 -05:00
rijkvanzanten
f2d8c9e5be Check file create permissions before fetching external file 2021-02-25 19:03:38 -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
64b012bccc Revert "Link devDependencies"
This reverts commit 63ec4b8e60.
2021-02-24 19:03:26 -05:00
rijkvanzanten
63ec4b8e60 Link devDependencies 2021-02-24 18:27:01 -05:00
rijkvanzanten
4cfa64e752 Fix outgoing headers in /graphql
Fixes #4264
2021-02-24 11:06:55 -05:00
rijkvanzanten
5908822ea9 Fix between query validation, add example to docs
Fixes #4269
2021-02-24 10:44:20 -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
rijkvanzanten
42ab1cce49 v9.0.0-rc.43 2021-02-23 17:18:22 -05:00
rijkvanzanten
3d33b9db55 Allow and ignore null schema in field update
Fixes #4254
2021-02-23 17:06:35 -05:00
rijkvanzanten
142b250c8d Use pino error instead of fatal
Fatal throws flushing error when using 'pretty' log style
2021-02-23 11:29:37 -05:00
rijkvanzanten
435d6ec84a Validate DB_CLIENT env var before creating DB connection
Fixes #3556
2021-02-23 11:28:56 -05:00
rijkvanzanten
2a738b7b52 Scope order by clause to table
Fixes #4246
2021-02-23 10:53:25 -05:00
rijkvanzanten
b087967c29 Prioritize env vars over stored vars in config file
Fixes #4191
2021-02-22 20:21:50 -05:00
rijkvanzanten
81bb7cfa53 Allow configuring the connection pool size
Closes #3165
2021-02-22 20:19:08 -05:00
Rijk van Zanten
0beaf56dc3 Add on-error hook (#4233)
* Add on-error hook

Closes #2906

* Ignore unspecified listeners

* Document error hook
2021-02-22 19:00:53 -05:00
Rijk van Zanten
f87cbb5824 Make max-payload-size configurable (#4232)
* Make max post size configurable

Closes #2925

* Document max payload size env var
2021-02-22 18:35:07 -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
Juan Carlos Blanco Delgado
7dee95e8aa Adding syntax prefix parsing to specific types instead of only string var (#4190)
* Adding syntax prefix parsing to specific types instead of only strings env variables

* Update api/src/env.ts

* Update docs/reference/environment-variables.md

* Update docs/reference/environment-variables.md

* Ignore pre-parsed types

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-02-22 11:36:24 -05:00
rijkvanzanten
0233e56c88 Fix type check of refresh cookie secure env var
Fixes #4205
2021-02-22 11:14:39 -05:00
rijkvanzanten
055ebcb69b v9.0.0-rc.42 2021-02-19 17:22:06 -05:00
rijkvanzanten
eb9069c42c Don't use string parsed values in .env 2021-02-19 15:09:14 -05:00
Ben Haynes
4fa15e4b9e npm readme fix broken link 2021-02-19 12:14:25 -05:00
Nicola Krumschmidt
fe479784af Unpin sqlite3 and update to version 5.0.2 (#4175) 2021-02-19 11:08:36 -05:00
rijkvanzanten
315456916a Fix default limit for nested o2m sets
Ref #3743
2021-02-19 10:52:24 -05:00
rijkvanzanten
8d1bd064c6 v9.0.0-rc.41 2021-02-18 17:14:22 -05:00
Rijk van Zanten
ee3eb2818e Fix null case in directus_permissions.fields (#4161)
Fixes #4095
2021-02-18 17:06:48 -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
rijkvanzanten
930028b083 Merge branch 'main' of github.com:directus/directus into main 2021-02-17 19:01:05 -05:00
rijkvanzanten
1624681487 Remove .flat usage
Fixes #4118
2021-02-17 19:00:54 -05:00
Martijn Boland
d95ab172bd Prevent duplicates in select list. Fix taken from PR 3498 and fixes #2930 (#4140)
Co-authored-by: Martijn Boland <martijn@taiga.nl>
2021-02-17 18:59:43 -05:00