Commit Graph

1538 Commits

Author SHA1 Message Date
Pascal Jufer
993e0fe187 Move object-hash to non-optional deps (#7027)
Since required in assets.ts, fixes #7024

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-07-28 09:53:34 -04:00
Rijk van Zanten
206f2380b5 Fix cache-key causing problems in memcached (#7021)
* Add memcached to docker-compose

* Use object hash for cache key

Fixes #6823
2021-07-28 01:18:09 +02:00
Rijk van Zanten
f81dfda20f Don't return collections outside of cache (#7020)
Fixes #6602
2021-07-28 00:57:31 +02:00
Rijk van Zanten
628e4ead58 Fix MS SQL unique constraint field name extraction (#7019)
Fixes #6703
2021-07-28 00:47:54 +02:00
renovate[bot]
688f83b7a0 update dependency @types/sharp to v0.28.5 (#7017)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-27 18:14:48 -04:00
Rijk van Zanten
945d5d94e0 Add new /utils/cache/clear endpoint (#7014) 2021-07-27 23:32:25 +02:00
rijkvanzanten
f7064d69dc Fix return type on gql service 2021-07-27 16:51:14 -04:00
Rijk van Zanten
07fb7d67a8 Prevent from deleting the last admin user (#7008)
* Prevent from deleting the last admin user

Fixes #6990

* Add missing return types
2021-07-27 20:30:13 +00:00
Rijk van Zanten
96c16ff693 Default SERVE_APP to true (#7003)
Fixes #6993
2021-07-27 17:32:41 +02:00
Saad Irfan ⚡️
afdeb980cb Support for notifying user if an update is available for Directus CLI (#6852)
* Notify user if an update is available

* Replaced console log with logger

* Fix lint error

* Update api/src/start.ts

* Make update check non-blocking

* Remove unused async call

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-07-26 19:36:16 -04:00
Rijk van Zanten
b0ec803b0c Wait for the database to be ready in bootstrap step (#6987) 2021-07-26 23:10:17 +00:00
rijkvanzanten
3390430c04 v9.0.0-rc.86 2021-07-26 18:20:42 -04:00
Rijk van Zanten
c25fa70d84 Fix pino deprecation warning (#6984) 2021-07-27 00:08:09 +02:00
Rijk van Zanten
92e1ee77bd Add support for Conditional Fields (#6864)
* Add conditions field to directus_fields

* Add conditions configuration

* Apply conditional overrides

* Handle conditions in nested groups

* Fix reverse mutating conditions

* Start on filter setup interface

* Move field types/constants to shared

* [WIP] Updated client side filter validation

* Support logical operators in client validation step

* Use new validation util in conditions check

* Add nesting in filter seutp

* Add filter rule setup configurator

* Fixes that should've been done in the merge

* Strip out filter-settings interface

TBD in a new PR

* Move browser to index
2021-07-26 18:02:24 -04:00
Rijk van Zanten
87ab9b3dfa Improve error reporting on CLI bootstrap command (#6977)
* Show full DB error on bootstrap connection issue

* Show full DB error on bootstrap
2021-07-26 17:10:10 +00:00
Rijk van Zanten
d20cecb882 Update knex-schema-inspector@1.5.12 (#6975) 2021-07-26 12:13:42 -04:00
Nicola Krumschmidt
7d8aa9fced Replace DIRECTUS_DEV env var with NODE_ENV and SERVE_APP (#6929) 2021-07-22 23:47:56 +02:00
Adrian Dimitrov
efe7b076a3 Add default-folder option (#3209)
* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Update after rebase

* Add storage_default_folder setting, use folder when deploy file

* Fix files options; Add default label option for folder interface.

* Fix set folder for file

* UX

* Add migration for column, undo seed change

* Update nomanclature

* Make sure file library always submits folder, cleanup setting retrieval

* Use indexName on down migrate

* Fix import default folder, rename customPresets->folderPreset

* Rename interface import

* Use undefined as default folder

* Remove deprecated lang file

* Fix display of folder interface, treat null as value

* Move shared composable

* Remove unused ref

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-21 17:29:21 -04:00
renovate[bot]
d487f691a3 pin dependency @types/object-hash to 2.1.1 (#6914)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-21 16:05:03 -04:00
Tim
2c9ff3bca6 Allow custom transformations of assets (#6593)
* Allow custom transformations of assets

This exposes one query parameter `transforms`, which is a JSON array of
shard transformation operations.

It also updates the asset presets. The UX for this still needs some work

* Rename options to arguments for presets

More explicit

* options -> arguments in setting spec

* Better errors for invalid JSON in asset presets

* Add limit to transforms query parameter

* Use flattened option for extra transforms

* Fix placeholder color of code input

* Allow "simple mode" aliases

* Add documentation

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-21 15:57:47 -04:00
Nicola Krumschmidt
b61543c0e9 Move DeepPartial to shared (#6886)
Also cleans it up and adds support for readonly arrays.
2021-07-20 11:40:59 -04:00
j3n57h0m45
79c91ed50d enable custom name for refresh token (#6890) 2021-07-20 15:29:11 +02:00
Nicola Krumschmidt
d3a960a0a0 Make extension loading more robust (#6845)
* Make extension loading more robust

* Remove unnecessary path joining
2021-07-16 13:57:18 -04:00
Rijk van Zanten
11479313c9 Use / as default value for public_url (#6860) 2021-07-16 17:45:39 +02:00
Rijk van Zanten
c2e1aca63b Make sure every DB returns time as HH:mm:ss (#6847)
Fixes #6492
2021-07-16 00:21:19 +02:00
Rijk van Zanten
70bb6d70dd Improve default value extraction in MS SQL (#6843)
Fixes #6666
2021-07-15 23:57:08 +02:00
Rijk van Zanten
f360a2d445 Fixed issue that would cause the wrong field to be extracted when using "detailed" updates in o2m with non-"id" primary keys (#6841)
Fixes #6817
2021-07-15 23:40:04 +02:00
Rijk van Zanten
262e8cdbb8 Show warning when PUBLIC_URL isn't correctly configured (#6840)
Closes #6539
2021-07-15 23:20:35 +02:00
Nicola Krumschmidt
f96eeb2c83 v9.0.0-rc.85 2021-07-15 21:22:54 +02:00
rijkvanzanten
f60deb9ca2 Remove prepublish build step, handled in CI 2021-07-15 14:23:48 -04:00
rijkvanzanten
ddab55d190 v9.0.0-rc.84 2021-07-15 14:10:01 -04:00
rijkvanzanten
2a60a0fd88 Revert "v9.0.0-rc.84"
This reverts commit a4945a64fd.
2021-07-15 10:29:18 -04:00
Rijk van Zanten
be60fa9f31 Use [String] for CSV type in GraphQL (#6808)
Fixes #6653
2021-07-15 02:34:40 +02:00
Rijk van Zanten
1713f0cbf2 Allow setting a custom mailgun host (#6804)
Fixes #6787
2021-07-15 01:28:50 +02:00
rijkvanzanten
6d7dc17852 Remove oracle from optionaldependencies 2021-07-14 18:18:16 -04:00
rijkvanzanten
a4945a64fd v9.0.0-rc.84 2021-07-14 17:26:35 -04:00
rijkvanzanten
628b4efc29 Revert "v9.0.0-rc.84"
This reverts commit 18e62086f7.
2021-07-14 17:25:52 -04:00
rijkvanzanten
18e62086f7 v9.0.0-rc.84 2021-07-14 16:57:41 -04:00
Rijk van Zanten
ea19390f11 Add encrypt option to MS SQL questions (#6746) 2021-07-14 00:02:00 +02:00
Rijk van Zanten
5abfd96a99 Account for primary keys in A2O processing (#6783)
Fixes #6782
2021-07-13 16:26:56 -04:00
rijkvanzanten
f512ba5c1d Fix typo in asset cache default value 2021-07-13 16:10:57 -04:00
renovate[bot]
057f277b6c update dependency @types/lodash to v4.14.171 (#6704)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-12 13:20:52 +00:00
Aiden Foxx
2f3db645ef Fixed migration changing filesize failing on Oracle (#6722) 2021-07-12 14:09:50 +02:00
renovate[bot]
0658746e1f update dependency @types/node-cron to v2.0.4 (#6708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-12 14:08:23 +02:00
renovate[bot]
52d427a5de update dependency @types/qs to v6.9.7 (#6716)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-12 14:08:11 +02:00
Sean Goff
f4177be18b fix shared deps constant naming (#6758) 2021-07-11 22:11:15 +02:00
renovate[bot]
0cb1d3f72a update dependency @types/nodemailer to v6.4.4 (#6712)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-11 10:07:22 +02:00
renovate[bot]
dc1c115014 update dependency @types/cors to v2.8.12 (#6727)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-11 10:06:31 +02:00
Danny Coulombe
d1b4109f0d No error message from password reset request #6658 (#6734)
Co-authored-by: dannycoulombe <B!ahrk65>
2021-07-11 08:05:58 +00:00
Pascal Jufer
fb0e02cd4b Fix "Duplicate environment variable" error message never showing up (#6740) 2021-07-11 09:52:57 +02:00