Commit Graph

2660 Commits

Author SHA1 Message Date
Pascal Jufer
e1dd6fa037 Update TS related dependencies and configurations (#19866) 2023-09-29 14:45:47 +02:00
Rijk van Zanten
fe0b1efcca Use comments for embed insertion (#19860)
* Use comments for embed insertion

* Add changeset
2023-09-28 16:38:53 -04:00
Pascal Jufer
45f8eebf37 Fix redaction of objects with circular structure (#19834) 2023-09-28 17:32:26 +02:00
Rijk van Zanten
fd03a3d78c Revert "Add util to send notifications to admins (#19508)" (#19838)
This reverts commit 66ade28b96.
2023-09-28 08:40:36 -04:00
Nitwel
66ade28b96 Add util to send notifications to admins (#19508)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-09-28 10:38:43 +02:00
Pascal Jufer
3a40aea9f8 Continue termination when WebSocket is disabled (#19826)
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-09-27 18:20:44 +02:00
Jan Arends
aeed9c056b Enabled capitzalized table names for sequence reset (#19825)
* escaped identifiers

* fix

* used parameters for values and knex for escaping identifiers

* changeset

* Update api/src/database/helpers/sequence/dialects/postgres.ts

* Update .changeset/silver-cars-hear.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-09-27 13:12:02 +00:00
José Varela
9e1ae56b65 Export: Fix empty file when limit is -1 (#19820)
* Negative numbers should return all data

* Add changeset
2023-09-26 14:38:37 -04:00
Pascal Jufer
c67775a9a0 Bundle packages (#19712)
* Bundle `@directus/composables`

* Bundle `@directus/constants`

* Align tsconfig in `data` packages

To prevent warnings like
> Cannot write file 'packages/data-sql/dist/index.d.ts' because it would overwrite input file

* Bundle `@directus/pressure`

* Align tsconfig in `@directus/random`

* Bundle `@directus/schema`

* Bundle `@directus/storage`

* Bundle `@directus/storage-driver-azure`

* Bundle `@directus/storage-driver-cloudinary`

* Bundle `@directus/storage-driver-gcs`

* Bundle `@directus/storage-driver-local`

* Bundle `@directus/storage-driver-s3`

* Align tsconfig in `@directus/themes`

* Bundle `@directus/update-check`

* Add changeset

* Bundle `storage-driver-supabase`

* Update changeset

* Remove dedicated export of 'types/overview'
2023-09-26 21:14:27 +08:00
Nitwel
632b968c1f Fix hiding navigation on root folder (#19518)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-09-26 14:52:37 +02:00
Zehir
c0e3467368 Make the transformation argument of AssetsService.getAsset() optional (#19808)
* Ignore dev container

* getAsset() optional transformation

* Sign contributor license

* Run prettier

* Run prettier again

* Update .changeset/silent-radios-talk.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-09-26 11:14:08 +02:00
Rijk van Zanten
926f19d3fa 10.6.3 2023-09-25 15:43:10 -04:00
Rijk van Zanten
8a62031362 Add email validation on user create/update (#19794)
* Add email validation message error

* Validate emails on user create/update

* Add translation for app display
2023-09-25 09:54:56 -04:00
Daniel Biegler
8374a9a8b6 Pass file-id down so that FilesService can replace asset upon URL import (#19788) 2023-09-25 13:23:50 +02:00
Stanislaw Schlosser
158019f404 Set payload filename on upload even if primaryKey exists. (#19771)
* Set payload filename on upload even if primaryKey exists.

This way on image replace we update the file extension on disk and download filename.

* Add 0x2aff to contributors.yml

* Put 0x2aff contributor into quotes.

* add changeset

* Update changeset to reflect also extension

---------

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
2023-09-25 11:52:00 +02:00
jbmolle
8f37b5a16e fix: load configuration from JSON or YAML file (#19745)
* fix: load configuration from JSON or YAML file

* fix: format file with prettier

* Create beige-boats-design.md

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-09-20 15:34:42 +02:00
rijkvanzanten
e908db17b4 v10.6.2 2023-09-19 13:28:29 -04:00
Brainslug
243eed781b Merge pull request from GHSA-hmgw-9jrg-hf2m
* Add extra error handling for invalid messages

* added description and logging

* renamed fix function

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-09-19 13:12:42 -04:00
José Varela
9819049f0c Assets: Handle transformation timeout errors (#19684)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: ian <licitdev@gmail.com>
2023-09-15 13:32:50 +00:00
Pascal Jufer
9854a2174f Import config.js file as ESM (#19654)
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-09-13 13:19:34 +00:00
Pascal Jufer
0c56c46fdf Attempt to make "require shares fields" migration safer/more reliable (#19619)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-09-12 21:10:58 +02:00
Brainslug
a9116ab5ef Updated sharp dependency (#19658)
* updated sharp dependency

* added package lock

* Create chilly-adults-rule.md
2023-09-11 11:24:15 -04:00
Jan Arends
5c8d3d22c6 Reset auto increment sequence (#19328)
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-09-08 11:19:14 +02:00
Azeem Haider
f770fefc96 Ignore extra envs for mysql (#19589)
* fix #7420 ignore extra envs for mysql

* Update contributors.yml

* Run formatter

* Add changeset

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-09-05 07:33:32 -07:00
Azri Kahar
1857340bcd Add email body for completed exports to file library (#19550)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-31 15:08:48 +02:00
Pascal Jufer
425cdd64cc Fix decompression in file import endpoint (#19524)
* Fix decompression in file import endpoint

* Add changeset

* Clean-up decompressResponse function

* Align fn name
2023-08-29 22:57:27 +08:00
rijkvanzanten
3ec4009bb8 v10.6.0 2023-08-25 11:42:24 -04:00
Daniel Biegler
284156426f Replace vm2 with isolated-vm (#19332)
* add isolated-vm@4.6.0

* add mvp replacing vm2 with isolated-vm, two env vars

* make copying async and add tests

* add env vars to docs

* remove isolate-logging function

* update docs for FLOWS_EXEC_ALLOWED_MODULES removal

* further removal of allowed module usage

* rename env vars and their usage, remove script "compiling" and replace Reference with ExternalCopy

* remove logging and catching, let the outer executeOperation function do it

* remove vm2 from dependencies

* remove unused var

* run prettier formatting

* run eslint

* create changeset

* rename env var without unit suffix, add minimum to doc

* add two tests for config testing

* fix 'mb' spelling

* update changeset

* Mark it as major change for `@directus/api`

* Breaking change copy

* add logging from the operation

* run linting

* Update docs/releases/breaking-changes.md

* Update docs/releases/breaking-changes.md

* run linting, make operation cursive

* Mention HTTP requests in breaking changes

* make linter happy

* changed cursive to bold (asked kevin)

* add to the test for timeouts

* run linter

* Update api/src/operations/exec/index.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update api/src/operations/exec/index.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update note on run script modules

* Update breaking changes

* Update docs/app/flows/operations.md

Co-authored-by: ian <licitdev@gmail.com>

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: ian <licitdev@gmail.com>
2023-08-25 14:11:17 +00:00
ian
7aedf763c0 Redact env values in logs for Flows (#19513)
* Redact env values in revisions for Flows

* Add unit tests

* Create cold-maps-teach.md

* Redact string type envs only

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Fix linting

* Update test for non-string env

* Ignore zero length strings

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Add replacementFn to include key of redacted value

* Update cold-maps-teach.md

* Remove case insensitivity

* Update changeset

* Rework

* Add utils to changeset

* Add unit test

* Rename to getRedactedString and add REDACTED_TEXT

* Consistent naming

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-25 10:14:35 +02:00
Pascal Jufer
940545dbfe Fix condition for collection & item data in notification operation (#19521)
* Fix condition for collection & item data in notification operation

* Add changeset
2023-08-24 21:22:34 -04:00
Gerard Lamusse
7de52e6720 Fix deep sanitizeQuery (#19436)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-24 17:18:18 +02:00
PlanB
e6230ebd84 Docs: Update CACHE_NAMESPACE default value (#19496) 2023-08-23 10:00:02 +02:00
ian
88d4f7cfb1 Add JSON Web Token (JWT) operation (#19434)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-16 10:34:18 +00:00
Nitwel
e7ba4b4058 Add missing endpoints to openapi spec (#19390)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-16 12:00:57 +02:00
Nitwel
ebb018a5e8 Fix using wrong type for default values (#19439)
* Fix using wrong type for default values

* fix for readAll

* Format file

* Add changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-15 12:16:43 -04:00
Pascal Jufer
d6d6cf4b38 Fix "require shares fields" migration for strict MySQL (#19407)
* Fix "require shares fields" migration for strict MySQL

* Add changeset
2023-08-11 09:23:33 -04:00
rijkvanzanten
68ca1d309e v10.5.3 2023-08-10 15:11:51 -04:00
rijkvanzanten
e701313191 v10.5.2 2023-07-28 13:07:10 -04:00
rijkvanzanten
f3d3ee1292 v10.5.1 2023-07-26 10:34:54 -04:00
Pascal Jufer
479c5b55b7 Fix URL seralizing of trailing slashes after adding paths (#19252)
* Fix URL seralizing of trailing slashes after adding paths

* Create rare-shrimps-rescue.md

* Clean-up

* More precise changeset summary
2023-07-26 10:28:21 -04:00
rijkvanzanten
373cc9f4fa v10.5.0 2023-07-25 17:36:33 -04:00
Matthew Rollinson
f9635ac287 Supabase - Storage driver (#19135)
* Initial commit to add supabase as a storage driver

* Working supabase implementation

* Slight cleanup

* Started working on tests for storage-driver-supabase

* Updates

* Initial commit to add supabase as a storage driver

* Working supabase implementation

* Slight cleanup

* Started working on tests for storage-driver-supabase

* Updates

* Nicer working tests

* More working tests

* Readable stream

* Working version with all passing tests and types

* Update contributors.yml

* added documentation

* Ran prettier to fix formatting issues

* Ran linter and added Supabase to dictionary

* Fix tsconfig reference

* Organize imports

* Start at v0

* Add changeset

* Lock versions

* storage-driver-supabse: Added fullpath for move and copy arguments

* storage-driver-supabase: Removed resumable uploads

* Update lockfile

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-07-25 11:01:24 -04:00
José Varela
3a54f0db56 API: Do count distinct since left join duplicates results (#19208)
* Do count distinct since `left join` duplicates results

* Add changeset

* Correctly access count property

* Update .changeset/angry-suits-compete.md

* Optimize for simple filters

* Add tests

* Workaround broken 'as' for countDistinct in SQLite3

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: ian <licitdev@gmail.com>
2023-07-24 13:32:28 +02:00
Pascal Jufer
08f6953822 Require 'collection' & 'item' fields for shares (#19220) 2023-07-24 13:31:43 +02:00
Gerard Lamusse
ad1207a2f9 Remove res.status calculation as it is set later (#19214)
* Remove res.status calculation as it is set later

* Ensure 500 is thrown on multiple errors of different types

* Add changeset

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-07-21 09:56:22 -04:00
Amer @ ValueHeads
174c9fab9c [Bug Fix] utils/url.js removing trailing slashes (#19210)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-07-20 12:26:04 +02:00
Brainslug
4cc55b86ba Using the same data fetching logic for rest and graphql (#19155)
* Using the same data fetching logic for rest and graphql

* Create fresh-snails-knock.md

* checked and tested data fetching code

* always fetch a single result for gql subscriptions

* removed unused import

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-07-20 08:12:17 +02:00
Pascal Jufer
e583c6b6ea Add tsconfig for Vue & CJS (#19197)
* Add tsconfig for Vue

* Delete tsconfig.json

* Use vue tsconfig for composables

* Add changeset

* Update changeset

* Update changeset
2023-07-18 17:36:16 -04:00
Brainslug
56c03e843b Updated websocket registered events (#19189)
* added unused events

* Create plenty-paws-turn.md

* ran prettier
2023-07-18 12:05:05 -04:00
Rijk van Zanten
f1ac443298 Use projectColor for links in emails (#19171)
Fixes #18927
2023-07-14 22:14:29 +02:00