Commit Graph

12119 Commits

Author SHA1 Message Date
Hannes Küttner
51ecd31312 Fix the order of preset application and payload validation (#23346)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-14 14:11:51 +02:00
Alex van der Valk
2d81ffa9a5 Add default sort field to o2m interface (#23019)
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-14 11:11:05 +00:00
Azri Kahar
7d8fdce267 Fix file export is ready notification for user without create permission to directus_notifications (#23336)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-14 10:24:32 +00:00
Florian C. Wachmann
2fcb737459 Ensured that WYSIWYG uses the correct CSS var to display fonts correctly (#23343)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-14 09:55:45 +00:00
Hannes Küttner
434b8e822c Adjust permissions migration to work with more MySQL flavors (#23327) 2024-08-14 11:32:03 +02:00
Azri Kahar
0fa0f48efe Fix typo for Invalid aggregate query parameter warning log (#23334) 2024-08-14 07:59:07 +02:00
SP12893678
b6aa277f3a Fix bookmark incorrect save on debounce in collection route change (#18318) (#23324)
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-13 15:34:41 +00:00
dependabot[bot]
bb2460566e Bump esbuild-yaml from 1.1.1 to 1.2.0 (#23315)
Bumps [esbuild-yaml](https://github.com/luxass/esbuild-yaml) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/luxass/esbuild-yaml/releases)
- [Commits](https://github.com/luxass/esbuild-yaml/compare/v1.1.1...v1.2.0)

---
updated-dependencies:
- dependency-name: esbuild-yaml
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-13 09:10:20 +02:00
Hannes Küttner
7ddf5fd927 Fix sort field defaulting for related o2m collections (#23267)
* Default to the correct sort field for nested o2m items

* Add changeset

* Add test

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-08-12 15:05:46 -04:00
Hannes Küttner
e49da1df9a Improved querying of languages collection in translations interface (#23300)
* Check field existence in translations related collection (`languages` most of the time)

* Add changeset
2024-08-12 14:40:59 -04:00
Hannes Küttner
578bd7a164 Fixed the permission application for relational _some and _none filters (#23272)
* Inject the correct cases into _some and _none filters

* Make sure that all arguments are passed to the relational count helper through types

* Unrelated

* `getCases` applies its own collection filtering

* Add changeset
2024-08-13 01:54:25 +08:00
Dominic Marcelino
e2b4012060 Hide WYSIWYG toolbar if no items are selected (#23310)
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-12 17:25:40 +00:00
Hannes Küttner
ce626ab7ec Fix deep groupBy behavior for O2M relations (#23279)
* Add additional group field for o2m

* Add changeset

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2024-08-12 11:47:11 -04:00
ian
939423f257 Change get-address test port (#23302)
* Change get-address test port

* Get random port instead

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2024-08-12 10:11:36 -04:00
Kevin Lewis
1c62695d0c Added new price reference in readme (#23303) 2024-08-12 09:56:57 -04:00
dependabot[bot]
419b9972b2 Bump @fortawesome/free-brands-svg-icons from 6.5.2 to 6.6.0 (#23289)
Bumps [@fortawesome/free-brands-svg-icons](https://github.com/FortAwesome/Font-Awesome) from 6.5.2 to 6.6.0.
- [Release notes](https://github.com/FortAwesome/Font-Awesome/releases)
- [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/6.x/CHANGELOG.md)
- [Commits](https://github.com/FortAwesome/Font-Awesome/compare/6.5.2...6.6.0)

---
updated-dependencies:
- dependency-name: "@fortawesome/free-brands-svg-icons"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-12 11:37:28 +02:00
dependabot[bot]
0aae60bd84 Bump tar from 7.4.2 to 7.4.3 (#23290)
Bumps [tar](https://github.com/isaacs/node-tar) from 7.4.2 to 7.4.3.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.4.2...v7.4.3)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-12 11:37:02 +02:00
Azri Kahar
9a9f01732c Fix readonly mutation to fields in the store via item drawer (#23277) 2024-08-10 11:26:37 +02:00
Hannes Küttner
e602450d2b Fix singleton permissions structure (#23269)
* Fix singleton update permission fields & presets

* Add changeset

* Fix typo

* Make code slightly prettier
2024-08-09 13:39:37 -04:00
Kevin Lewis
13e47efe80 Removed RC mentions in docs (#23271)
* Removed RC remtions

* Format policies

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-08-09 12:09:10 -04:00
Crow
8426111498 Persist default value and nullable in field schema update (#23151)
* make variable more descriptive

* persist default value and nullable in field schema update

* add changeset

* add self to contributors

* extracted expressions out of the selection

* a bit more refactoring

* fix

* set nullable as default

* tiny refactoring

* handle null as default value correctly

---------

Co-authored-by: Jan Arends <jan.arends@mailbox.org>
2024-08-09 13:16:03 +02:00
dependabot[bot]
bec215049d Bump codemirror from 5.65.16 to 5.65.17 (#23259)
Bumps [codemirror](https://github.com/codemirror/basic-setup) from 5.65.16 to 5.65.17.
- [Changelog](https://github.com/codemirror/basic-setup/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/basic-setup/commits)

---
updated-dependencies:
- dependency-name: codemirror
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 12:02:31 +02:00
dependabot[bot]
40e012518b Bump inquirer from 9.3.5 to 9.3.6 (#23261)
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.3.5 to 9.3.6.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.3.5...inquirer@9.3.6)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 11:49:06 +02:00
Pascal Jufer
e708a8675a Enhance item count (#22519)
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-09 09:20:17 +00:00
Nico
8cf1d37297 fix(docs): fix formatting issue in breaking changes document; state correct version in breaking changes (#23264) 2024-08-09 11:12:48 +02:00
daedalus
fe8d9fb1c2 Fix DB_CLIENT expected before project initialized (#23256) 2024-08-09 09:45:43 +02:00
Rijk van Zanten
034341c5b1 v11.0.1 v11.0.1 2024-08-08 13:10:25 -04:00
Rijk van Zanten
81b0e30a32 New Crowdin updates (#23218)
* Update source file en-US.yaml

* New translations en-us.yaml (Korean)

* New translations en-us.yaml (Chinese Simplified)

* New translations en-us.yaml (Persian)

* New translations en-us.yaml (Danish)

* New translations en-us.yaml (Romanian)

* New translations en-us.yaml (French)

* New translations en-us.yaml (Spanish)

* New translations en-us.yaml (Afrikaans)

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Bulgarian)

* New translations en-us.yaml (Catalan)

* New translations en-us.yaml (Czech)

* New translations en-us.yaml (German)

* New translations en-us.yaml (Greek)

* New translations en-us.yaml (Finnish)

* New translations en-us.yaml (Hebrew)

* New translations en-us.yaml (Hungarian)

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (Japanese)

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Lithuanian)

* New translations en-us.yaml (Dutch)

* New translations en-us.yaml (Norwegian)

* New translations en-us.yaml (Polish)

* New translations en-us.yaml (Portuguese)

* New translations en-us.yaml (Russian)

* New translations en-us.yaml (Slovak)

* New translations en-us.yaml (Slovenian)

* New translations en-us.yaml (Albanian)

* New translations en-us.yaml (Serbian (Cyrillic))

* New translations en-us.yaml (Swedish)

* New translations en-us.yaml (Turkish)

* New translations en-us.yaml (Ukrainian)

* New translations en-us.yaml (Chinese Traditional)

* New translations en-us.yaml (Vietnamese)

* New translations en-us.yaml (Icelandic)

* New translations en-us.yaml (Portuguese, Brazilian)

* New translations en-us.yaml (Indonesian)

* New translations en-us.yaml (Spanish, Chile)

* New translations en-us.yaml (Spanish, Mexico)

* New translations en-us.yaml (Thai)

* New translations en-us.yaml (Croatian)

* New translations en-us.yaml (Estonian)

* New translations en-us.yaml (Malay)

* New translations en-us.yaml (English, Canada)

* New translations en-us.yaml (English, United Kingdom)

* New translations en-us.yaml (French, Canada)

* New translations en-us.yaml (Esperanto)

* New translations en-us.yaml (Breton)

* New translations en-us.yaml (Bosnian)

* New translations en-us.yaml (Serbian (Latin))

* New translations en-us.yaml (Nepali)

* New translations en-us.yaml (Sorani (Kurdish))

* New translations en-us.yaml (Spanish, Latin America)

* New translations en-us.yaml (Czech)

* New translations en-us.yaml (Czech)

* New translations en-us.yaml (Russian)

* New translations en-us.yaml (Slovak)

* New translations en-us.yaml (Albanian)
2024-08-08 12:54:09 -04:00
José Varela
4548893c4d API / Migrations: Fix drop foreign key if have a different name (#23253)
* Fix drop foreign key if have a different name

* Improve memory usage
Variables are only defined within try block

* Add changeset

* Target "role" column
Since users can create custom fields in directus tables and since someone may have tried to create another field to directus_roles, let's specify which column

* Fix formatting

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-08-08 12:52:21 -04:00
Jogchum Koerts
c0df1aa65c Retry transaction also for SQLITE_BUSY (#23243)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-08 13:49:30 +02:00
SP12893678
7d22f32443 Fix block editor value updates to be realtime (#23115)
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-08 11:28:46 +00:00
dependabot[bot]
eb47bb1cb6 Bump @editorjs/image from 2.9.2 to 2.9.3 (#23244)
Bumps [@editorjs/image](https://github.com/editor-js/image) from 2.9.2 to 2.9.3.
- [Commits](https://github.com/editor-js/image/commits)

---
updated-dependencies:
- dependency-name: "@editorjs/image"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-08 12:42:00 +02:00
dependabot[bot]
010eba978f Bump eslint-plugin-vue from 9.26.0 to 9.27.0 (#23246)
Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 9.26.0 to 9.27.0.
- [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases)
- [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v9.26.0...v9.27.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-vue
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-08 12:26:35 +02:00
Hannes Küttner
bb1b15a906 Ignore missing foreign key constraint in policies migration (#23251)
* Gracefully handle missing role foreign key constraint in directus_permissions

* Add changeset

* Update changeset
2024-08-08 18:16:01 +08:00
José Varela
a3966103bf Packages/Env: Allow casting when reading config value from a file (#22164)
* Allow cast file or default to string

* adopted test

* do not default to string

* added test

* combined tests for reading config from a file

* better function name

* adopted file name

* reference fixes

* another reference fix

* fixed references for mocks

* additional test for type casting of default configs

* replaced equal check with toHaveBeenCalled

* new test file with fewer mocks

* a word regarding this in the docs

* enhanced new test

* test casting to string although string contains comma

* formatting in docs

* tiny tweak regarding readability

* changeset

* added another default type for config variable

* final comments

---------

Co-authored-by: Jan Arends <jan.arends@mailbox.org>
2024-08-08 12:03:33 +02:00
Florian Strasser
338625f894 Add unix socket support (#23150)
* Update server.ts | Issue 23142

Fix Problem on server.ts to only accept integer Values as port. Some hosters require the port to be a string forwarding to a specific file as socket.

* Update contributors.yml

* Update server.ts

* Update server.ts

* Add changset

* Resolve formatting error

* move unix socket to separate variable

* add docs

* update changeset

* do not add protocol to address

* add correct casing for `Unix`

* do not add protocol prefix if listening on socket

* add missing package bumps to changes

* Update server.ts

Changed listenOptions initialization

* formatting

* remove port override note

* update doc wording to be inline with host and add ignore

* add tests

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2024-08-07 15:58:04 -04:00
Danilo Bürger
068e17a10b Respect system language on display translations (#23240)
* Respect system language on display translations

* Add changeset

* Added danilobuerger to contributors.yml

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-08-07 18:03:03 +00:00
SP12893678
0c092deedc Remove extra div insdie ul element (#23116) 2024-08-07 17:41:50 +00:00
Pascal Jufer
7dc49e5e44 Adjust the provisioned DB_CLIENT value in init CLI command for mysql2 (#23232)
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-07 16:20:04 +02:00
Pascal Jufer
980f8d0274 Fix the "add-system-fk-triggers" migration for mysql2 (#23233) 2024-08-07 16:19:05 +02:00
Pascal Jufer
15eebdb875 Adjust the init CLI command for new mysql2 package (#23231)
* Adjust driver used for MySQL

* Add changeset
2024-08-07 09:21:19 -04:00
dependabot[bot]
80b28d2080 Bump semver from 7.6.2 to 7.6.3 (#23222)
Bumps [semver](https://github.com/npm/node-semver) from 7.6.2 to 7.6.3.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.6.2...v7.6.3)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 07:20:50 +02:00
dependabot[bot]
ae9c4f1979 Bump zod-validation-error from 3.3.0 to 3.3.1 (#23221)
Bumps [zod-validation-error](https://github.com/causaly/zod-validation-error) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/causaly/zod-validation-error/releases)
- [Changelog](https://github.com/causaly/zod-validation-error/blob/main/CHANGELOG.md)
- [Commits](https://github.com/causaly/zod-validation-error/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: zod-validation-error
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 07:10:58 +02:00
dependabot[bot]
fde8789579 Bump vue-tsc from 2.0.26 to 2.0.29 (#23220)
Bumps [vue-tsc](https://github.com/vuejs/language-tools/tree/HEAD/packages/tsc) from 2.0.26 to 2.0.29.
- [Release notes](https://github.com/vuejs/language-tools/releases)
- [Changelog](https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/language-tools/commits/HEAD/packages/tsc)

---
updated-dependencies:
- dependency-name: vue-tsc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 07:10:28 +02:00
Rijk van Zanten
2b02764ac8 v11.0.0 v11.0.0 2024-08-06 15:53:17 -04:00
Rijk van Zanten
aa425a19da v11.0.0 2024-08-06 15:50:40 -04:00
Rijk van Zanten
81dcb38cf8 Bump all packages to a major 2024-08-06 15:41:33 -04:00
Rijk van Zanten
01d950ca9f Merge pull request #23216 from directus/v11-rc
Launch v11
2024-08-06 15:27:52 -04:00
Rijk van Zanten
5ba0533989 Remove prerelease state 2024-08-06 14:45:44 -04:00
Rijk van Zanten
002a7848c6 Merge branch 'main' into v11-rc 2024-08-06 14:43:52 -04:00