Commit Graph

1420 Commits

Author SHA1 Message Date
dependabot[bot]
d941ec5bc6 Bump typedoc-vitepress-theme from 1.0.0-next.10 to 1.0.1 (#23531)
Bumps [typedoc-vitepress-theme](https://github.com/typedoc2md/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-vitepress-theme) from 1.0.0-next.10 to 1.0.1.
- [Release notes](https://github.com/typedoc2md/typedoc-plugin-markdown/releases)
- [Changelog](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-vitepress-theme/CHANGELOG.md)
- [Commits](https://github.com/typedoc2md/typedoc-plugin-markdown/commits/typedoc-vitepress-theme@1.0.1/packages/typedoc-vitepress-theme)

---
updated-dependencies:
- dependency-name: typedoc-vitepress-theme
  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-09-02 19:43:20 -04:00
José Varela
a45a97a60c Docs: Give a little example about how to use extensions with Docker (#21488) 2024-09-02 19:20:52 -04:00
ian
6c6977c062 Implement logs websocket (#23016)
* Implement logs websocket

* Update docs

* Remove commented test code

* fixed controller shared logic

* fixed controller type

* Added shutdown callback

* Expose allowed log levels

* Use a different event

* Add log level filtering

* Return log_level when subscribed

* Remove unused import

* Limit logs websocket to `strict` auth mode (#23023)

* simplify logging handler

* enforce strict mode

* Update logs handler

* Update docs

---------

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

* Add unique nodeId as uid

* Create logStream only when required

* Add admin requirement check

* Extract isValidLogLevel as util

* Remove authentication and path from server info

* Remove hostname and pid from logs if not raw

* Fix nodeId implementation

* Support custom log levels

* Fix build

* Fix test

* Remove unused constants and util

* Display websocket logs details in server info for admins only

* Expose log level value in server info

* Stream raw logs to websocket

* Retain hostname and pid field in raw logs

* Add separate env var for logs streaming

* Reset attempts after reconnection failure

* Remove obsolete accountability refreshing

* Run handler only when enabled

* Add changeset

* Allow wss protocol

* Rename to logs-stream

* Add unit tests

* Add explicit check for the remaining client

* Updated json stringification in log-streaming

* prettier

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2024-08-29 10:01:35 -04:00
Jan Piotrowski
dc739a023e Docs: Unify Project/project capitalalization in Introduction (#23513)
* Docs: Unify Project/project capitalalization in Introduction

Stumbled over the capitalized "Project" when reading though the Introduction, so quickly unified document to use lower case "project" in all places that do not refer to the "Project" concepts of Directus or Directus Cloud specifically.

* sign CLA
2024-08-28 14:56:19 -04:00
Rijk van Zanten
3f5a666760 API: Compute schema once and share among other nodes (#23492)
* API: Compute schema once and share among other nodes

From #23328

* Compute schema once and share among other nodes

* Add compress/decompress

* Remove weirdness

* Make timeout configurable

* Remove compression/decompression
This was putting back the issues again.
I guess it's because the transformation to async
It seems useBus is already doing compression
So I believe there's no need for double compression.

* Add changeset

---------

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

* Fix formatting issue

---------

Co-authored-by: José Varela <varela@directus.io>
2024-08-26 17:17:20 -04:00
Hugo Torzuoli
a30f8b8152 docs: update codebase overview packages list (#23478) 2024-08-26 14:43:32 -04:00
Rijk van Zanten
358dc17f9c Fix docs missing import (#23490)
* Fix missing import in authentication example

* Add changeset
2024-08-26 18:28:59 +00:00
Fatuma Abdullahi
103a4c96e4 fix: update good first issue link (#23464)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-23 09:05:50 +00:00
max
a25479954c Env security table fix (#23461) 2024-08-23 09:48:08 +02:00
Manuel
bb8bcbac9a docs: fix wrong word in 'Update Data' op (#23454)
* docs: fix wrong word in 'Update Data' op 

copy-paste I guess

* add @tennox to contributors.yml
2024-08-22 20:30:33 +02:00
Kevin Lewis
582e018b30 Add new breaking change to 11.0.0 (#23449) 2024-08-22 15:12:51 +02:00
dependabot[bot]
e59c34929b Bump typedoc-plugin-zod from 1.2.0 to 1.2.1 (#23444)
Bumps [typedoc-plugin-zod](https://github.com/Gerrit0/typedoc-plugin-zod) from 1.2.0 to 1.2.1.
- [Commits](https://github.com/Gerrit0/typedoc-plugin-zod/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: typedoc-plugin-zod
  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-22 12:02:08 +02:00
daedalus
39f9515088 Add index support (#23149)
* feat(api): add index support

Co-Authored-By: Mahendra Kumar <22556323+mahendraHegde@users.noreply.github.com>

* fix(primary key): do not all mutating unique or index

* feat(app): add index selection

* refactor `dopIndex` to use array entry

* add docs

* add changeset

* add missing properties from field object spec

* simplify index checks

* formatting

* fix mssql index query

* fix additional fields being returned in schema

* fix oracle indexing

* only set nullable/not nullable if specifically requested

* Update app/src/lang/translations/en-US.yaml

Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>

* Revert "only set nullable/not nullable if specifically requested"

This reverts commit 4726dbb8cf.

* make changeset more explicit

---------

Co-authored-by: Mahendra Kumar <22556323+mahendraHegde@users.noreply.github.com>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-19 09:59:18 +00:00
Matthew Rollinson
feba625959 User Invite Token TTL (#22986)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-18 15:43:22 +02:00
Lukáš Zelenka
d5bf00f012 Tip to the "Creating Extensions" section (#23385)
* Tip  to the "Creating Extensions" section

Adds tip about automatic reloading extensions using the EXTENSIONS_AUTO_RELOAD environment variable.

fixes: #23382

* signed the CLA

* Contribution name in docs
2024-08-16 13:02:05 -04:00
Kevin Lewis
2cc93019a9 Added cloud callout in sidebar (#23350)
* Added cloud callout in sidebar

* Linter got mad for one newline, I will obey the linter.

---------

Co-authored-by: Bryant Gillespie <bryant@hireclockwork.com>
2024-08-14 13:59:21 -04:00
Hannes Küttner
2bc959baff Remove all mentions of CACHE_PERMISSIONS (#23322) 2024-08-14 14:38:45 +02: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
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
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
Rijk van Zanten
57b6dba79f Merge branch 'main' into v11-rc 2024-08-06 14:19:35 -04:00
Kevin Lewis
cd41cb52da Adding new tiers to rate limiting docs (#23213) 2024-08-06 16:56:32 +00:00
Rijk van Zanten
9faac0164e Merge branch 'main' into v11-rc 2024-08-05 16:21:55 -04:00
Pascal Jufer
5279ab6133 Add healthchecks conditions for dependent services (#23148) 2024-08-05 19:47:34 +02:00
dependabot[bot]
4d638ed354 Bump eslint-plugin-react from 7.34.3 to 7.35.0 (#23152)
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.34.3 to 7.35.0.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.34.3...v7.35.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  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-02 14:28:15 +02:00
Pascal Jufer
a9cca2cea6 Introduce created_on date field for files and adjust uploaded_on to be updated with every upload (#23035)
* Update date fields on directus_files

* Add changeset

* Use knex update instead of raw

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-07-23 13:00:25 -04:00
José Varela
49c93b376d Docs: Update regions on Cloud list (#23074)
* Update regions on Cloud list

* Add changeset

* Run formatter in glossary

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-07-22 14:52:16 -04:00
Jacob Wise
b004576643 Fix cron syntax in CMS guide (#23073) 2024-07-22 17:47:20 +02:00
SP12893678
cf3c82684b Add id description of available props in extensions panels docs (#23050) 2024-07-18 12:56:39 -04:00
Brainslug
3aef9bbc48 SDK Core Field type checking fails (#21089)
* updated relational fields to use the complete schema

* prettier

* Create few-horses-join.md

* Revert "updated relational fields to use the complete schema"

This reverts commit ac839c0ec8.

* Added type test for the core collection fallback

* fixed core collection fallback

* QoL set default schema for core collections

* prettier

* removed docs reference

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-07-16 17:01:25 -04:00
José Varela
c816c50e75 Api: Emit filter for email.send (#23024)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-07-16 16:02:12 +02:00
Kevin Lewis
edcdcfc09d Remove webhooks from docs (#23020) 2024-07-15 13:53:59 +00:00
Rijk van Zanten
3fc2bb7883 Resolve broken links (#22995)
Fxies #21923
2024-07-11 17:59:52 -04:00
Rijk van Zanten
4e6a109577 Add public registration to sso example (#22994)
Fixes #21936
2024-07-11 17:51:35 -04:00
Rijk van Zanten
a44fa152b0 Tweak note on how to enable custom module (#22993)
Fixes #22400
2024-07-11 17:05:32 -04:00
Rijk van Zanten
97af13eaf2 Add note on s3 endpoint usage (#22992)
Fixes #22447
2024-07-11 16:54:27 -04:00
burka
e060635b50 Add "SSO with Directus behind Proxy" guide (#22951)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-07-11 17:17:56 +00:00
Brainslug
8a1b2489ce Merge branch 'main' into chore-v11-merge-main 2024-07-10 13:52:02 +02:00
Rijk van Zanten
08095a293a Add note on max value for asset transform 2024-07-09 16:03:08 -04:00
Hannes Küttner
1ca6ad0d02 Merge branch 'main' into chore-v11-merge-main 2024-07-09 08:16:27 +02:00
Alan Tiller
4bb39ee6d8 Update users.md to add verification_url to Register User request body (#22913)
* Update users.md to add verification_url to Register User request body

* Update contributors.yml
2024-07-08 15:33:44 -04:00
Hannes Küttner
ea098e0413 Merge branch 'refs/heads/main' into chore-v11-merge-main
# Conflicts:
#	api/package.json
#	api/src/cli/commands/bootstrap/index.ts
#	app/package.json
#	directus/package.json
#	packages/composables/package.json
#	packages/create-directus-extension/package.json
#	packages/env/package.json
#	packages/errors/package.json
#	packages/extensions-registry/package.json
#	packages/extensions-sdk/package.json
#	packages/extensions/package.json
#	packages/memory/package.json
#	packages/pressure/package.json
#	packages/storage-driver-azure/package.json
#	packages/storage-driver-cloudinary/package.json
#	packages/storage-driver-gcs/package.json
#	packages/storage-driver-s3/package.json
#	packages/storage-driver-supabase/package.json
#	packages/system-data/package.json
#	packages/system-data/src/relations/relations.yaml
#	packages/themes/package.json
#	packages/types/package.json
#	packages/utils/package.json
#	packages/validation/package.json
#	pnpm-lock.yaml
#	sdk/package.json
2024-07-05 13:20:57 +02:00
burka
c38d7d4897 Allow to specify ADMIN_TOKEN in ENV (#22059) (#22724)
* Allow to specify ADMIN_TOKEN in ENV (#22059)

* Add changeset

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-07-03 11:39:29 -04:00
Brandon Zylstra
6db5578332 minor grammar fix in data-model.md (#22875)
* minor grammar fix in data-model.md

There was an errant word that I removed.

* Update contributors.yml
2024-07-02 13:07:03 -04:00
Brainslug
3cc349982f TUS changeset (#22901)
* changeset

* updated changeset

* updated docs

* more prettier

* dictionary
2024-07-02 17:23:20 +02:00
Brainslug
266e043c0e Add support for the TUS protocol (#22673)
* WIP initial TUS tests

* WIP further tus integration

* WIP authenticate uploads

* boilerplate stuff

* Migrated handlers

* resolving type errors

* tackle some build errors

* WIP moving resumable uploads to its own package

* added migration and integrated local file storage into directus files

* cleaned up local store

* cleaned up failed experiments

* prettier

* Add tus_data and tus_id to system data

* Improve file upload progress estimation for multiple files

* bypass creating a revision per uploaded chunk

* fixed accidental commit

* Fix pause/resume for multiple uploads

* Null coalesce all the way

* Added directus locking logic

* prettier

* Small tweak (added resume uploads dialog)

* authentication

* Add remove to resumable uploads

* added delete endpoint and cleaned old service setup

* WIP s3 storage adapter

* Less breaking of interfaces, more breaking of text

* Moved local adapter to its own package

* Prettying some things up

* Sort resumable uploads by creation time

* Fix resumable uploads dialog popping up on second file upload

* Move buttons around & properly handle error

* s3

* A few changes

- Make S3 driver work more reliable
- Move common logic to tus driver class
- Respect `folder` when uploading from a different folder
- Implement cleanup for both local and S3

* synced dependencies

* accept presets

* Remove extra code for folder, as this is handled in presets now

* Rename migration to most recent date

* updated lcokfile

* prettier

* dont fully rely on the sudo service

* removed unused import

* Hide partial file uploads from the API

* satisfy linter

* Refactor tus into storage driver

* Fix merge conflicts

* Update pnpm-lock

* Fix typing issue

* nuked tus driver packages

* updated environment vars

* prettier

* Change type import style

* Fix S3 cleanup

* Use `modified_on` instead of tus creation date

* Pass chunk size to storage drivers

* Add sudo service to scheduled job

* Make cleanup work even if no upload was done before

* Remove "Resume Uploads" interface

* Update packages/env/src/constants/defaults.ts

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

* Add config docs

* Add resumable to dictionary

* moved chunk filter to service

* simplify middleware

* use lodash

* Update api/src/services/tus/data-store.ts

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

* move to devDeps

* package lock

* fixed import

* updated test mocking

* Create a new TUS server handler for every request instead of one global one

* Allow for tree-shaking tus-client

* Rename resumable-uploads.ts to tus.ts

* Extract meta data from uploaded file

* Only consider full parts or the final part for bytesUploaded in S3

* Add additional sanity check to S3 driver

* Remove pause/resume functionality

* fixed file replacement

* Remove unused expose

* Reintroduce defineExpose and expose abort

* Broken file replace

* fixed replacement

* prettier

* added filesize in replace

* update metadata extraction

* Remove unused import

* updated package-lock

* extra validation check

* oops

---------

Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-07-02 17:00:59 +02:00
Mohammad Quadri
61466e722e Fix code in "Create A Radio Selector With Icons, SVG, or Images" guide (#22892) 2024-07-02 08:52:38 +02:00
PoHsun611
6a4413c7bd Docs: Fix code issue in Interactive Panel Guide (#22864)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-06-28 11:38:08 +02:00
Rijk van Zanten
d6ce1d88f4 Update note on review process (#22853) 2024-06-26 08:50:36 -04:00