Commit Graph

10020 Commits

Author SHA1 Message Date
ian
fdf0fa2fb8 Add max batch mutation (#17535)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-07 18:25:25 +02:00
Pascal Jufer
ec5852b23b Small typo on configuration options page in docs (#18102) 2023-04-07 09:44:00 -04:00
Azri Kahar
9bafaef939 Fix falsy default values when reading singleton collection (#18101)
* fix falsy default value for readSingleton

* add unit test

* opt to check null only

* sign CLA
2023-04-07 21:29:36 +08:00
Pascal Jufer
f7c2f14181 Check if there are any missing contributors (#18099) 2023-04-07 07:58:47 -04:00
Nitwel
88a401ca20 Make headers sticky again (#17850)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-07 12:29:41 +02:00
Pascal Jufer
99e6c7f8fd Clean-up configs (#18093)
* Consolidate gitignore config

* Remove editorconfig in subfolders

* Remove obsolete jest config
2023-04-07 17:29:28 +08:00
Bryant Gillespie
e3f688acb2 Security in Headless CMS Guide (#18073)
* migrate from docs repo

* sign cla agreement

* Remove .gitignore in docs in favor of root file

* content updates

* ignore vitepress cache

* add 2FA to dictionary

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-06 15:21:00 -04:00
Romain Lenzotti
949c4794d5 Fix missing payload.iss when authorization_response_iss_parameter_supported OpenID metadata is true (#18009)
* Fix missing payload.iss when authorization_response_iss_parameter_supported OpenID metadata is true

* Add github usernamt to contributings.yml

* Fix github username case

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-06 12:30:36 -04:00
ian
6bf5327614 Remove double bracket from CLA message (#18086) 2023-04-06 16:58:39 +02:00
Brainslug
bc8457e996 Windows compatibility for running migrations (#18082)
* Prepend the file:// prefix for windows compatibility in migrations

* cla
2023-04-06 09:04:18 -04:00
Brainslug
b01896314f Go back to tsx for api scripts for Windows compatibility (#18066)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-05 22:23:11 +00:00
Rijk van Zanten
535edd7d7e Update cla.yml 2023-04-05 17:42:21 -04:00
Rijk van Zanten
7db025b95c Create CODEOWNERS 2023-04-05 17:37:42 -04:00
Rijk van Zanten
1505a2cc8c Update pull_request_template.md (#18075) 2023-04-05 17:34:52 -04:00
Rijk van Zanten
8a654433e1 Update cla.yml 2023-04-05 14:01:27 -04:00
Rijk van Zanten
a9d45fc4a5 Add CLA + automation (#18071) 2023-04-05 13:59:50 -04:00
Nitwel
3219bfe38f Fix status on shutdown (#18010)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-04-05 14:50:15 +00:00
Pascal Jufer
8c0ac96358 Add workflow for docs spellchecker (#18063)
* Ignore node_modules for docs spellchecking

* Add workflows for docs spellchecking

* Update command to new structure

* Skip core checks on pure docs changes

* Don't build packages for spellcheck workflow

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-05 09:54:11 -04:00
ian
7e2193a205 Add gitignore for docs (#18059)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-05 13:45:34 +00:00
Pascal Jufer
a6aa99c0cc Mention Node.js LTS requirement in CLI documentation (#18060)
* Mention Node.js LTS requirement in CLI documentation

* Match capitalization of "Active" in linked page

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

---------

Co-authored-by: ian <licitdev@gmail.com>
2023-04-05 09:21:37 -04:00
Kevin Lewis
34babb8823 Removed link to field schema, which doesn't exists (#18062) 2023-04-05 09:20:49 -04:00
Rijk van Zanten
31e575202c Update docs_problem.yml 2023-04-05 09:19:47 -04:00
Pascal Jufer
aeb26bdbaa Update pull request template after move of docs (#18058) 2023-04-05 11:07:45 +00:00
Nitwel
9ee67830e3 Fix rehydrating cache after flow save (#17819)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-05 12:30:19 +02:00
Pascal Jufer
f1b48cb81d Mark docs package as private (#18053) 2023-04-04 18:57:19 -04:00
rijkvanzanten
11e10742a4 Update issue templates 2023-04-04 18:57:00 -04:00
rijkvanzanten
9d445d4842 Fix docs build
Squashed commit of the following:

commit 2b8a1c10608c51278dd7967a16295763af1bc605
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Tue Apr 4 18:45:56 2023 -0400

    Tweak

commit daad2447ce8a45ee80b9c4ea2bc768299384f6af
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Tue Apr 4 18:43:54 2023 -0400

    Update lockfile

commit b2c37099942a8c412f69176383553cc6c5522599
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Tue Apr 4 18:42:32 2023 -0400

    Update netlify build command

commit c3b4a11ad77834a1bf86f4b73fe6f09447f87ba5
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Tue Apr 4 18:40:40 2023 -0400

    Update node version
2023-04-04 18:46:05 -04:00
rijkvanzanten
06a0493e20 Try to make things better 2023-04-04 18:38:34 -04:00
Rijk van Zanten
c723085902 Move docs to monorepo (#18052)
* Move docs to monorepo

* Tweaks
2023-04-04 18:23:58 -04:00
rijkvanzanten
8ea179248e No emoji please 2023-04-04 17:49:08 -04:00
Rijk van Zanten
2983e61870 The Great TypeScript Modernization Program Season 3 Episode 6: The Big One (#18014)
* Step 1

* Step 2

* False sense of confidence

* Couple more before dinner

* Update schema package

* Update format-title

* Upgrade specs file

* Close

* Replace ts-node-dev with tsx, and various others

* Replace lodash with lodash-es

* Add lodash-es types

* Update knex import

* More fun is had

* FSE

* Consolidate repos

* Various tweaks and fixes

* Fix specs

* Remove dependency on knex-schema-inspector

* Fix wrong imports of inspector

* Move shared exceptions to new package

* Move constants to separate module

* Move types to new types package

* Use directus/types

* I believe this is no longer needed

* [WIP] Start moving utils to esm

* ESMify Shared

* Move shared utils to  @directus/utils

* Use @directus/utils instead of @directus/shared/utils

* It runs!

* Use correct schemaoverview type

* Fix imports

* Fix the thing

* Start on new update-checker lib

* Use new update-check package

* Swap out directus/shared in app

* Pushing through the last bits now

* Dangerously make extensions SDK ESM

* Use @directus/types in tests

* Copy util function to test

* Fix linter config

* Add missing import

* Hot takes

* Fix build

* Curse these default exports

* No tests in constants

* Add tests

* Remove tests from types

* Add tests for exceptions

* Fix test

* Fix app tests

* Fix import in test

* Fix various tests

* Fix specs export

* Some more tests

* Remove broken integration tests

These were broken beyond repair.. They were also written before we really knew what we we're doing with tests, so I think it's better to say goodbye and start over with these

* Regenerate lockfile

* Fix imports from merge

* I create my own problems

* Make sharp play nice

* Add vitest config

* Install missing blackbox dep

* Consts shouldn't be in types

tsk tsk tsk tsk

* Fix type/const usage in extensions-sdk

* cursed.default

* Reduce circular deps

* Fix circular dep in items service

* vvv

* Trigger testing for all vendors

* Add workaround for rollup

* Prepend the file protocol for the ESM loader to be compatible with Windows
"WARN: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'"

* Fix postgres

* Schema package updates

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Resolve cjs/mjs extensions

* Clean-up eslint config

* fixed extension concatination

* using string interpolation for consistency

* Revert MySQL optimisation

* Revert testing for all vendors

* Replace tsx with esbuild-kit/esm-loader

Is a bit faster and we can rely on the built-in `watch` and `inspect`
functionalities of Node.js

Note: The possibility to watch other files (.env in our case) might be
added in the future, see https://github.com/nodejs/node/issues/45467

* Use exact version for esbuild-kit/esm-loader

* Fix import

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-04 17:41:56 -04:00
rijkvanzanten
517e7cb55c v9.24.0 v9.24.0 2023-04-04 17:13:31 -04:00
Nitwel
3350e5c6ac Don't set edits at start (#17848) 2023-04-04 17:08:04 -04:00
rijkvanzanten
952da7b898 Simplify util 2023-04-04 17:07:02 -04:00
Rijk van Zanten
6badbb7a0e New Crowdin updates (#17936)
* New translations en-US.yaml (French)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Persian)

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

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Dutch)

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

* New translations en-US.yaml (Nepali)

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

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Thai)

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

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* 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 (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

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

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

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

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

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Estonian)

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

* New translations en-US.yaml (Breton)

* New translations en-US.yaml (Bosnian)

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

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

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

* Update source file en-US.yaml

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Persian)
2023-04-04 15:28:41 -04:00
Pascal Jufer
5b256f64c6 Use pnpm 8.1.0, define version via packageManager field, clean-up other version definitions (#17993)
* Use `packageManager` field to define pnpm version in one place

* Update to pnpm 8.1.0 (see also #17990)

* Enforce pnpm >= 8 via `engines`

* Clean-up `engines` & remove `volta`

* Add dedup workaround, consolidate test env prepare steps

* No checkout, no action :-)

* Bump minimal pnpm version to 8.1.0

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-04 15:20:25 -04:00
Azri Kahar
f900e59dcb Add missing fields to GraphQL server info (#17922)
* add rate limiter, rate limiter global and flows

* fix project fields in server info

* add graphql for /utils/random/string

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-03 18:07:52 -04:00
ian
e7cf4e09c8 Add cookie logger tests (#17932)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-04-03 16:47:56 +02:00
ian
f705fedf09 Fix cache skipping when PUBLIC_URL is relative (#18029)
* Fix cache skipping when PUBLIC_URL is relative

* Add test

* Update api/src/utils/should-skip-cache.test.ts

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-04-03 09:59:21 -04:00
Azri Kahar
b8dc4cde9c add missing .toString() password reset url (#18032) 2023-04-03 09:58:46 -04:00
Rijk van Zanten
bb952f9386 Add optional confirmation dialog with input fields to Manual Trigger in Flows (#17603)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-31 19:37:50 +00:00
Azri Kahar
6d793f8878 add active state to file interface (#18011) 2023-03-31 09:29:16 -04:00
Rijk van Zanten
953c2f95d5 Upgrade pnpm to 8 (#17979) 2023-03-28 13:43:25 -04:00
Nitwel
ba69f30a01 Do not override metadata (#17972)
* Do not override metadata

* Update test

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-03-28 11:20:21 -04:00
Wryn (yage) Wagner
e1a1190975 Dockerfile Improvements (#17965)
* combined layers, optimized layer order

* Revert data volume scoping

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-03-28 11:07:26 -04:00
Nitwel
529b9aaa67 Only check for undefined and null (#17976)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-03-28 10:53:45 -04:00
Nitwel
b3be34850e Fix sorting in m2m table (#17746)
* fix sorting in m2m table

* fix sorting

* run linter

* Update app/src/composables/use-relation-multiple.ts

* improve syntax

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-03-28 21:03:21 +08:00
José Varela
89293d92a9 App: Fix saving required relational fields (#17842)
* Fix saving relational fields

* Be more specific on variable name

* Fix missing quotes
2023-03-28 13:03:56 +02:00
Nitwel
75ad4876bf only hide v-select options (#17953) 2023-03-27 10:12:17 -04:00
Nitwel
ac36125439 export types in shared (#17954) 2023-03-27 09:55:37 -04:00