rijkvanzanten
74508c70b8
v9.23.2
2023-03-23 13:35:11 -04:00
ian
cce33436d1
Rework schema caching to use memory ( #17763 )
...
Co-authored-by: Nitwel <mail@nitwel.de >
Co-authored-by: Jan Arends <jaads@users.noreply.github.com >
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-03-23 12:52:06 +01:00
rijkvanzanten
fa44632c71
Update snapshot
2023-03-22 17:48:17 -04:00
rijkvanzanten
fbb4da2e77
Fix test
2023-03-22 17:27:39 -04:00
rijkvanzanten
5247b68afa
Updates 6 of 6
2023-03-22 17:23:30 -04:00
rijkvanzanten
fe74c43bc0
Updates 5 of many
2023-03-22 17:02:18 -04:00
rijkvanzanten
f0e0508dd2
Updates 4 of many
...
This was my favorite so far
2023-03-22 16:55:46 -04:00
rijkvanzanten
71060a51f7
Updates 3 of many
2023-03-22 16:29:36 -04:00
rijkvanzanten
0a137551a8
Updates 2 of many
2023-03-22 16:23:25 -04:00
rijkvanzanten
05034d0e17
Updates 1 of many
2023-03-22 16:13:54 -04:00
rijkvanzanten
e721e33c8b
Enable exactOptionalPropertyTypes
2023-03-22 16:13:48 -04:00
Rijk van Zanten
806be3a193
TSConfig Modernization part 2: Enable non-breaking flags ( #17889 )
...
* Enable non-breaking flags
* Add explicit src
2023-03-22 15:58:44 -04:00
Rijk van Zanten
1a5f06c791
TSConfig Modernization: Set importsNotUsedAsValues ( #17887 )
...
* Set importsNotUsedAsValues
* Fix import
2023-03-22 14:51:27 -04:00
ian
7b256e769c
Fix built-in modules for flows exec operation ( #17866 )
...
* Fix built-in modules in flows exec
* Tiny ocd patch
2023-03-21 16:46:03 +01:00
Nitwel
022d77d5d9
Fix keep folder on reupload ( #17744 )
...
* Fix deleting data on reupload
* only update folder when necessary
* run linter
* fix replacing filename_download and title
* run linter
* fix if statement
* clean up code
* Remove unused import of 'File'
* cleanup code
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-03-21 16:17:19 +01:00
rijkvanzanten
c938e4be34
Remove comment
2023-03-20 16:53:11 -04:00
Nitwel
a9a5e2a26d
Fix options being null ( #17847 )
2023-03-20 13:54:27 +01:00
Pascal Jufer
0293c88aa3
Patch Tuesday 🐸 ( #17811 )
...
* Update root deps
* Update `directus` deps
* Update `@directus/app` deps
* Update usage of knex-mock-client
* Update `@directus/shared` deps
* Update `extensions-sdk` deps
* Update `@directus/specs` deps
* Update `@directus/storage` deps
* Update `@directus/storage-driver-azure` deps
* Update `@directus/storage-driver-cloudinary` deps
* Update `@directus/storage-driver-gcs` deps
* Update `@directus/storage-driver-local` deps
* Update `@directus/storage-driver-s3` deps
* Update `@directus/utils` deps
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2023-03-17 15:15:03 +08:00
Azri Kahar
251927a765
Require value in project settings' fields ( #17771 )
...
* support required fields in system-modules
* update settings fields to required
2023-03-16 11:47:01 +01:00
Pascal Jufer
5209f81879
Clean-up scripts in package.json files ( #17810 )
...
* Clean-up scripts in package.json files
* Remove superfluous comma
2023-03-16 11:09:29 +01:00
ian
3ff37b0f32
Sanitize query in updateByQuery and deleteByQuery ( #17649 )
...
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
2023-03-15 15:25:12 +01:00
Connor
34acd97a01
Fix Flow Error Handling ( #17519 )
...
* Validate Operation Result is Serializable
* Enumerate Flow Error Object so it gets logged
* Add ability for error to be a JSON string and parse it
* Make the request operation throw useful error
* Revert DockerCompose in "Validate Operation Result is Serializable"
This partially reverts commit c7e76716a5 .
* Fix Typescript Errors
* Move isValidJSON to Shared Util and add Tests
* return the error message excluding stack trace
* allow for non-exception errors
* Apply suggestions from code review
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
* Clean-up after wrong suggestion
* Clean-up processing of error data
* Use content-type json if body is object
* Reformat error data check
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
Co-authored-by: Brainslug <tim@brainslug.nl >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-03-15 08:29:55 +00:00
Nitwel
6943f70a39
Only load defined fields in m2a ( #17710 )
...
Co-authored-by: ian <licitdev@gmail.com >
2023-03-14 17:17:31 +01:00
Nitwel
bbb387fe86
Write full item to revisions ( #17729 )
...
* Write full item to revisions
* Get revision data/delta in single call
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2023-03-09 14:50:04 -06:00
Brainslug
77cffa6849
Require value for dropdown choices ( #17732 )
...
* updated value to be required
* applied to other interfaces
* Made dropdown labels required too
* added required fields for other interfaces
* added required fields for field/collection translations
2023-03-10 00:14:39 +08:00
Rijk van Zanten
0154878f27
Improve assets performance ( #17734 )
...
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: ian <licitdev@gmail.com >
2023-03-08 18:28:36 +01:00
Pascal Jufer
7b89a11ebe
Include schema components in OAS ( #17712 )
...
* Add missing schema components to required list
* Update expected schema & switch to inline snapshot
---------
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
2023-03-06 15:33:53 +01:00
Azri Kahar
d466204732
Add ability to limit requests from using the Cache-Control header to skip cache ( #17642 )
...
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-03-02 13:19:30 +01:00
Brainslug
ee7fca3e31
Global rate limiter ( #17296 )
...
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2023-03-02 13:04:22 +01:00
Azri Kahar
512ca48680
Allow null for related_collection in applyJoiSchema ( #17665 )
...
* allow null for related_collection
* Add M2A to schema tests
* Trigger testing for all vendors
* Standardize naming convention
* Update deleted collections assertion
* Fix typo
* Revert testing for all vendors
---------
Co-authored-by: ian <licitdev@gmail.com >
2023-03-02 08:23:13 +01:00
rijkvanzanten
e468f58eec
v9.23.1
2023-03-01 09:51:57 -05:00
rijkvanzanten
47b9824954
v9.23.0
2023-02-28 12:51:36 -05:00
Azri Kahar
1f6a8e57ad
Additionally check for varchar when casting UUID in apply diff ( #17615 )
...
* check for varchar when casting UUID in apply diff
* add test
---------
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
2023-02-28 11:33:25 +01:00
ian
fb41eee1ed
Catch IPTC and XMP extraction errors ( #17633 )
...
* Catch IPTC and XMP extraction errors
* Add autoPurgeCache option to uploadOne
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
---------
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
2023-02-27 11:05:00 +00:00
Thierry Kühni
9856019c3a
Catch ICC parse errors to avoid server crash ( #17622 )
...
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-02-27 08:21:20 +01:00
Pascal Jufer
1cceeaf637
Update request unit test ( #17624 )
2023-02-25 21:32:43 -05:00
rijkvanzanten
6dce1a2f8a
Update request
...
Squashed commit of the following:
commit 5afeab357b73494d690c33952efd41b29367fab5
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Fri Feb 24 15:39:15 2023 -0500
Add dns pre-resolve
commit 68e0e8c8099b5463297185f220e80b2b6d5b980a
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Fri Feb 24 12:28:18 2023 -0500
Start on request interceptor
2023-02-24 15:40:25 -05:00
Rijk van Zanten
ee59646b8c
Use example.com instead of directus.io ( #17600 )
2023-02-22 15:19:55 -05:00
Rijk van Zanten
6cb92ea06a
Add support for ASSET_TRANSFORM_TIMEOUT env var ( #17596 )
...
* Add support for ASSET_TRANSFORM_TIMEOUT env var
* Use string based config
* Timeout on overall promise
2023-02-22 14:39:02 -05:00
Norbert Fodor
3e80260a49
Remove hardcoded package extension path ( #17525 )
...
* Remove hardcoded package extension path
* Rename PACKAGE_EXTENSIONS_PATH env variable to PACKAGE_FILE_LOCATION
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com >
2023-02-21 17:22:18 +01:00
ian
9c36d7d8ef
Throw validation error after authorization ( #17499 )
...
* Throw validation error after authorization
* Improve tests
* Refactor for deleteMany
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
* Refactor other usages in users service that errors before ForbiddenException
* Update tests
* Adjust test for 'deleteByQuery'
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2023-02-20 11:57:10 +01:00
Pascal Jufer
e3c755dcf0
Add getMilliseconds util for safer value interpretation ( #17498 )
...
* Add `getMilliseconds` util for safer value interpretation
* Test more data types
* Remove remnant
* Customizable fallback with default of undefined
* Clean-up
* Transform getMilliseconds to named export
---------
Co-authored-by: ian <licitdev@gmail.com >
2023-02-17 11:06:26 -05:00
Pascal Jufer
37faf3bd5d
Patch Tuesday 🐸 ( #17530 )
...
* Update root deps
* Reformat files with new prettier version
* Update `directus` deps
* Update `@directus/app` deps
* Update `@directus/shared` deps
* Update components snapshots after updates
prop order has changed
* Update `extensions-sdk` deps
* pin version of zod in shared
* Update `@directus/storage` deps
* Update `@directus/storage-driver-azure` deps
* Update `storage-driver-cloudinary` deps
* Update `@directus/storage-driver-cloudinary` deps
* Update `@directus/storage-driver-local` deps
* Update `@directus/storage-driver-s3` deps
* Update `@directus/utils` deps
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2023-02-16 17:47:39 +08:00
Pascal Jufer
89fbac36ce
Catch errors from exif-reader ( #17527 )
2023-02-15 21:37:51 +00:00
Pascal Jufer
45c4bc89f1
EXTENSIONS_CACHE_TTL: Add to allow list & decouple from other cache envs (#17464 )
...
* EXTENSIONS_CACHE_TTL: Add to allow list & decouple from other cache envs
* Remove unnecessary import
* Broaden getCacheControlHeader function, use it for assets & extensions
* Add unit tests
* Apply suggestions from code review
Consistent lowercase "cache-control" in test description
---------
Co-authored-by: ian <licitdev@gmail.com >
2023-02-14 10:28:40 -05:00
rijkvanzanten
ff53d3e69a
Cleanup request handler
...
Squashed commit of the following:
commit 90368698c8
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Mon Feb 13 15:49:12 2023 -0500
Cleanup
commit 61514f4509
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Mon Feb 13 15:44:15 2023 -0500
Rename to index
commit 38fe6b84fa
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Mon Feb 13 15:41:23 2023 -0500
Test coverage 100%
commit f2e36db95e
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Mon Feb 13 15:22:45 2023 -0500
Split up handler from validator
commit 800ac1968a
Author: Pascal Jufer <pascal-jufer@bluewin.ch >
Date: Mon Feb 13 20:44:48 2023 +0100
Use shared axios instance with URL check for outgoing requests
2023-02-13 15:49:24 -05:00
ian
ea91c40733
Fix sort added by offset not removed for MSSQL ( #17343 )
2023-02-13 10:39:11 +01:00
ian
d7f16cd8ac
Allow offset and page args for GraphQL aggregated queries ( #17481 )
2023-02-10 19:09:32 +08:00
Nitwel
acd4078239
Fix using strings for flow trigger collections ( #17441 )
2023-02-08 12:59:23 -05:00
Nitwel
3866b138ad
Allow for custom robots.txt ( #17448 )
...
* Allow for custom robots.txt
* fix test
2023-02-08 11:19:16 -05:00