1490 Commits

Author SHA1 Message Date
Carmen Huidobro
0f3e01ceb7 Add blanket redirect for coming from Google Images (#25244)
Co-authored-by: ian <licitdev@gmail.com>
2025-07-24 10:59:00 -04:00
Rijk van Zanten
2edbea9386 Move common dependencies to catalog (#25467)
* Update pnpm to v10

* Update package.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Allow builds

* Move common dependencies to catalog

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-15 14:40:28 -04:00
ian
9bb4541731 Fix missing Netlify redirection for links without .html (#25458)
* Move changes into _redirects source of truth

* Update generation script to generate redirection without file extension

* Update redirection to include paths without file extension
2025-07-15 18:16:56 +08:00
ian
68090b9728 Remove reverted changeset (#25102)
* Remove reverted changeset

* Fix linting issues
2025-04-22 09:42:44 -04:00
Carmen Huidobro
be934b722d Temporarily remove 301 on sentry article (#24828) 2025-03-12 16:45:54 +01:00
Carmen Huidobro
ca67a28ff3 Merge pull request #24800 from directus/carmenh/fix-redirects
force redirects
2025-03-07 15:41:21 +01:00
Carmen Huidobro
6772c85355 Revert "Update docs redirect for config options" (#24799) 2025-03-07 22:05:00 +08:00
ian
6fb13625cf Update docs redirect for config options 2025-03-05 15:06:13 +08:00
renovate[bot]
9d54e0b662 Update dependency typescript to v5.8.2 (#24749)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-03-02 13:53:03 +01:00
renovate[bot]
de2a9b10f8 Update all non-major dependencies (#24722)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-03-02 11:49:52 +00:00
yage
5747cca78e move redirects _into_ the netlify.toml 2025-02-28 18:47:10 +03:00
Carmen Huidobro
21b796f1f4 Remove config redirects 2025-02-28 11:55:16 +01:00
Carmen Huidobro
bdaaa33c57 Remove leading URL domains 2025-02-28 11:49:11 +01:00
Carmen Huidobro
86caaa500a Move redirects to public site 2025-02-28 10:58:14 +01:00
Brainslug
7b09df9035 Update incorrect UsersService usage in Working with Users doc example (#24726)
* Updated incorrect example

* Create shiny-rings-hope.md

* Update docs/extensions/services/working-with-users.md

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

---------

Co-authored-by: ian <licitdev@gmail.com>
2025-02-27 12:22:34 -05:00
ian
d9f3970a25 Add semaphore to GraphQL schema generation (#24667)
* freeze schema and yeeted key-v for local schema cache

* prettier

* renamed utility

* check for already frozen schemas

* fixed sanitizeSchema editing by referenc

* fixed broken test

* removed unused async

* await columninfo cache compression

* Create friendly-beers-reply.md

* Clear memorySchemaCache in clearSystemCache()

* Rename memory schema cache methods

* Add CACHE_SCHEMA_FREEZE_ENABLED to allow schema mutations

* Prevent breaking change

* Improve description clarity

* Add mutex to GraphQL schema generation

* Add changeset

* Check cache after acquiring lock

* Use a configurable semaphore

* Update .changeset/great-apes-look.md

* Use TS number casting

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2025-02-25 17:51:23 +08:00
Brainslug
aadbf31e0c API / Cache: Improve schema caching (#24636)
* freeze schema and yeeted key-v for local schema cache

* prettier

* renamed utility

* check for already frozen schemas

* fixed sanitizeSchema editing by referenc

* fixed broken test

* removed unused async

* await columninfo cache compression

* Create friendly-beers-reply.md

* Clear memorySchemaCache in clearSystemCache()

* Rename memory schema cache methods

* Add CACHE_SCHEMA_FREEZE_ENABLED to allow schema mutations

* Prevent breaking change

* Improve description clarity

* added tests to freeze-schema

* fmt

* Update .changeset/friendly-beers-reply.md

* Fix typo

* Add unfreeze tests

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Nitwel <mail@nitwel.de>
2025-02-25 16:46:39 +08:00
Carmen Huidobro
d0ca5c2e33 Setup redirects to new docs (#24671)
Include `docs/_redirects` to make sure the old docs pages get redirected to the new docs pages.
2025-02-24 15:03:49 -07:00
daedalus
5fc2a8c0ff Add Prometheus support (#24233)
* initial metrics implementation

* secure endpoint

* move metric generation to cron

* update directus env var list

* remove additional space in output

* prefer histogram over gauge

* add defaults

* add tests

* metric generation should be done on a per instance basis

* add docs

* simplify docs

* add changeset

* add proper capitalization

* do not attempt to access redis cache if redis is not available

* Update api/src/schedules/metrics.test.ts

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

* metric lock should not be synchronized

* utilize prometheus client

* update typing

* check db metrics enabled before observe

* refactor get/track metric calls

* add cluster support

* add pm2 aggregation support

* rework pm2 aggregation

* Update api/src/schedules/metrics.ts

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

* ensure errors are caught

* add metrics bearer type to be inline with auth spec

* utilize early returns in access check

* at sensible default histogram bucket timeframe

* Update docs/self-hosted/config-options.md

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

* Update docs/reference/system/metrics.md

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

* do not initialize metrics when it isnt enabled

Co-Authored-By: Pascal Jufer <5363448+paescuj@users.noreply.github.com>

* fix api build

* return null for disabled metrics to be inline with other services

* prefere single service metric list env

Co-Authored-By: Pascal Jufer <5363448+paescuj@users.noreply.github.com>

* Update api/src/metrics/lib/create-metrics.test.ts

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

* update METRIC_TOKENS description

* update create metrics test wording

* reorg metric types

* Update create-metrics.ts

* Enable all metrics services by default

* Add full metrics output example

* Move enabled check to useMetrics & save results

* Adjust types in changeset

* metrics is REST API only

* update default cron to every minute

* update documented metric default schedule

* update metric schedule desc to be inline with default

* clarify metrics are returned from generated values and not at runtime

* add aggregation within pm2 context warning

* fix spellcheck

* Small grammar fixes for metrics aggregation notice

* Add `directus` minor bump

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

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Pascal Jufer <5363448+paescuj@users.noreply.github.com>
2025-02-19 19:31:56 +08:00
ian
54b9be28cb Add required to fields meta docs (#24574) 2025-02-10 12:22:53 +01:00
ian
fb3b26d886 Remove invalid operation trigger API from SDK and docs (#24461) 2025-01-24 07:57:52 +01:00
Nikolas Rimikis
69d7ba532d fix(docs): singleton item update docs mention primary key (#24430)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-01-20 12:44:04 +00:00
Pascal Jufer
9279cf228d Remove/replace obsoelete dependencies (#24374)
* Remove/replace obsoelete dependencies

* Add changeset
2025-01-09 13:56:12 -05:00
renovate[bot]
b4db97474c fix(deps): update all non-major dependencies (#24377)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-01-09 18:05:06 +00:00
renovate[bot]
56f6bef62a fix(deps): update dependency marked to v15 (#24375)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 17:32:34 +00:00
renovate[bot]
4a398599a6 chore(deps): update dependency @pnpm/find-workspace-dir to v900 (#24363)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-01-08 18:54:27 +00:00
Rijk van Zanten
b8cc796f4c Upgrade Node.js runtime version to 22 (#24140)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-01-08 13:26:14 +01:00
renovate[bot]
f31d2fb850 fix(deps): update all non-major dependencies (#24341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-01-08 00:44:29 +00:00
renovate[bot]
4149059668 chore(deps): update dependency typescript to v5.7.2 (#24297)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-27 23:39:02 +00:00
Rijk van Zanten
7621e2a4c4 Add banner about new docs (#24270) 2024-12-23 10:32:20 -05:00
hadi baalbaki
b64bd4173c fixed a tiny typo in content-versioning.md (#24265) 2024-12-20 12:10:49 +01:00
ian
d7e4071129 Add tip to enable System Logs (#24218) 2024-12-13 23:17:17 -05:00
Johannes
feeda04ad8 Add ability to map oidc groups to Directus roles (#24157)
* add oidc group mapping

* add changeset and contributors.yml

* add back upstream changes

* Run formatter

* Fix capitalization in docs description

* Re-add lost docs after merge conflict resolution

* Make groups claim name configurable

* Add OIDC to dictionary

* Improve groups check

Co-authored-by: Aiden Foxx <aiden.foxx.mail@gmail.com>

* Add log message if OIDC group claim is empty

* Make groups claim optional

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Aiden Foxx <aiden.foxx.mail@gmail.com>
2024-12-10 16:48:35 -05:00
Vladislav Stishenko
5c2981e509 Added Redis Sentinel cluster example (#24166)
in config-options.md at Redis config options

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-12-09 10:52:52 -05:00
clonefetch
d3f98f2e2a chore: fix some comments (#24167) 2024-12-09 09:07:32 +01:00
Kevin Lewis
e1425e61ca Removed broken link to access (#24158) 2024-12-06 10:37:57 +01:00
Nick Settler
cdfb3c2dc0 fix: assign admin policy to a new role created via command line (#24022)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-12-05 14:29:00 -05:00
Rijk van Zanten
72e18a308e Fix sdk example in docs
Fixes #24133
2024-12-03 12:30:26 -05:00
daedalus
ce4bfe074a Add support for activity/revisions/logs retention (#24058)
* Add retention support for `directus_activity` and `directus_revisions` (#23410)

* add retention support

* add changeset

* add docs

* rework imports

* skip processing for no records

* improve retention tests

* improve tests

* add error handling

* remove redundant while condition in retention

* improve error message

* increase retention to 90 days

* add lock

* Use the action constant

* Skip the full table count

* Add false to disable in docs

* Reduce batch to 500 for db compat

* Add timeout to lock

* skip revisions if activities is more frequent

* Update docs/self-hosted/config-options.md

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/self-hosted/config-options.md

Co-authored-by: Kevin Lewis <kvn@lws.io>

* RETENTION_TASKS are no longer constant

* fix formatting for retentions enabled config option

* reword RETENTION_SCHEDULE config option

* add explicit return types and update to async for consistency

* fix schedules tests to be async

* update jsdoc to correctly indicate schedule job

* add correct default value for retention schedules

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Kevin Lewis <kvn@lws.io>

* Removed outdated logic for versioning (#23749)

* Extract comments to a separate table (#22295)

* Add directus_comments migration

* Add comments controller and service

* Remove from activity

* Update system-data and types

* Refactor app with new endpoints

* Expose service

* Update app minimal permissions

* Add collection translation

* Define relations

* Allow comment creation only if there's item read access

* Patch for MSSQL double constraints issue

* Fix users service test

* Add sdk support

* Update specs

* Fix formatting

* Fix specs error

* Patch whoopsie

* Remove obsolete GraphQL mutations

* Update required fields

* Remove unused vars

* Allow edit and delete of legacy activity comments

* Remove legacy comments from SDK

* Add changeset

* Batch upwards migration

* Update SDK to use keysOrQuery

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

* Update implementation for keysOrQuery

* Remove singleton check

* Update SDK to use keysOrQuery 2

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

* Update keysOrQuery typedoc

* Fix import

* Update migration timestamp

* fixed import

* Update api/src/utils/get-service.ts

* utilize chunk processing in migration

* formatting

* only services extended from itemservice should be added

* remove redundant checks from comment header

* update comment service to v11 permission format

* specify missing required fields

* Mock comments in users test

* Simplify migration and update date

* WIP legacy access

* Optimise imports

* WIP app cleanup

* Update loadUserPreviews typing

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Read legacy comments

* Parse using comments service

* Perform migration directly

* Fix legacy app sort query which uses id

* Migrate legacy comments in mutations

* Reduce api semver

* Update app recommended permissions

* Recommend updating of comment only

* replace hardcoded type with existing one

* Allow users to update or delete their own comments

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

* Skip further access validation for non-existent collections

* Check if collection exists before the admin check

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

* Fix incorrect legacy check

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Fix merging of count when db returns count as string type

* Remove unused import

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Consolidate content versioning (#22413)

* Add migration

* Use the new delta field

* Add cast-json flag

* Fix typing

* Fetch existing deltas if version created during migration

* Add changeset

* Add version delta field into sdk schema

* Update migration timestamp

* Update versions.save() to return finalVersionDelta

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

* Sort on DB level

* Update migration date

* Disallow passing delta via create/update

* Update docs & specs

* Fix save response

* Remove unnecessary access check

Already checked by the subsequent itemsService.readOne call

* Update changeset

* Don't require update perms on versions for save

* Optimize validateCreateData

* update to new validateAccess

* Update docs/reference/system/versions.md

* Remove migration of delta

* Rename to legacy

* Add missed changes for Remove migration of delta in 2e2f50fa67

* Update docs/reference/system/versions.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update migration dates

* api change should be major for versioning

* Remove comment paths from activity reference

* Added comments reference

* Added directus_comments to table of system collections

* The linter demands newline

* Revert function renaming for patch semver

* Use transaction in down migration for comments (#23715)

* Remove outdated logic for versioning

* Fix migration

* Update api/src/database/migrations/20240924B-populate-versioning-deltas.ts

* add changeset

* reword changeset

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* Removed outdated logic for comments (#23748)

* Extract comments to a separate table (#22295)

* Add directus_comments migration

* Add comments controller and service

* Remove from activity

* Update system-data and types

* Refactor app with new endpoints

* Expose service

* Update app minimal permissions

* Add collection translation

* Define relations

* Allow comment creation only if there's item read access

* Patch for MSSQL double constraints issue

* Fix users service test

* Add sdk support

* Update specs

* Fix formatting

* Fix specs error

* Patch whoopsie

* Remove obsolete GraphQL mutations

* Update required fields

* Remove unused vars

* Allow edit and delete of legacy activity comments

* Remove legacy comments from SDK

* Add changeset

* Batch upwards migration

* Update SDK to use keysOrQuery

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

* Update implementation for keysOrQuery

* Remove singleton check

* Update SDK to use keysOrQuery 2

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

* Update keysOrQuery typedoc

* Fix import

* Update migration timestamp

* fixed import

* Update api/src/utils/get-service.ts

* utilize chunk processing in migration

* formatting

* only services extended from itemservice should be added

* remove redundant checks from comment header

* update comment service to v11 permission format

* specify missing required fields

* Mock comments in users test

* Simplify migration and update date

* WIP legacy access

* Optimise imports

* WIP app cleanup

* Update loadUserPreviews typing

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Read legacy comments

* Parse using comments service

* Perform migration directly

* Fix legacy app sort query which uses id

* Migrate legacy comments in mutations

* Reduce api semver

* Update app recommended permissions

* Recommend updating of comment only

* replace hardcoded type with existing one

* Allow users to update or delete their own comments

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

* Skip further access validation for non-existent collections

* Check if collection exists before the admin check

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

* Fix incorrect legacy check

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Fix merging of count when db returns count as string type

* Remove unused import

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Consolidate content versioning (#22413)

* Add migration

* Use the new delta field

* Add cast-json flag

* Fix typing

* Fetch existing deltas if version created during migration

* Add changeset

* Add version delta field into sdk schema

* Update migration timestamp

* Update versions.save() to return finalVersionDelta

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

* Sort on DB level

* Update migration date

* Disallow passing delta via create/update

* Update docs & specs

* Fix save response

* Remove unnecessary access check

Already checked by the subsequent itemsService.readOne call

* Update changeset

* Don't require update perms on versions for save

* Optimize validateCreateData

* update to new validateAccess

* Update docs/reference/system/versions.md

* Remove migration of delta

* Rename to legacy

* Add missed changes for Remove migration of delta in 2e2f50fa67

* Update docs/reference/system/versions.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update migration dates

* api change should be major for versioning

* Remove comment paths from activity reference

* Added comments reference

* Added directus_comments to table of system collections

* The linter demands newline

* Revert function renaming for patch semver

* Use transaction in down migration for comments (#23715)

* Remove outdated logic for comments

* remove duplicate app access permission

* remove unused import/params in gql

* remove remaining comment code in activity

* remove remaining activity logic in comment

* add changeset

* reword changeset

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* Update config-options.md

* add missing docs changeset for retentions

* ensure selected id is not ambiguous for joins

* Restrict comment create, update and delete to authenticated users (#23996)

* Extract comments to a separate table (#22295)

* Add directus_comments migration

* Add comments controller and service

* Remove from activity

* Update system-data and types

* Refactor app with new endpoints

* Expose service

* Update app minimal permissions

* Add collection translation

* Define relations

* Allow comment creation only if there's item read access

* Patch for MSSQL double constraints issue

* Fix users service test

* Add sdk support

* Update specs

* Fix formatting

* Fix specs error

* Patch whoopsie

* Remove obsolete GraphQL mutations

* Update required fields

* Remove unused vars

* Allow edit and delete of legacy activity comments

* Remove legacy comments from SDK

* Add changeset

* Batch upwards migration

* Update SDK to use keysOrQuery

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

* Update implementation for keysOrQuery

* Remove singleton check

* Update SDK to use keysOrQuery 2

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

* Update keysOrQuery typedoc

* Fix import

* Update migration timestamp

* fixed import

* Update api/src/utils/get-service.ts

* utilize chunk processing in migration

* formatting

* only services extended from itemservice should be added

* remove redundant checks from comment header

* update comment service to v11 permission format

* specify missing required fields

* Mock comments in users test

* Simplify migration and update date

* WIP legacy access

* Optimise imports

* WIP app cleanup

* Update loadUserPreviews typing

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Read legacy comments

* Parse using comments service

* Perform migration directly

* Fix legacy app sort query which uses id

* Migrate legacy comments in mutations

* Reduce api semver

* Update app recommended permissions

* Recommend updating of comment only

* replace hardcoded type with existing one

* Allow users to update or delete their own comments

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

* Skip further access validation for non-existent collections

* Check if collection exists before the admin check

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

* Fix incorrect legacy check

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Fix merging of count when db returns count as string type

* Remove unused import

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* Consolidate content versioning (#22413)

* Add migration

* Use the new delta field

* Add cast-json flag

* Fix typing

* Fetch existing deltas if version created during migration

* Add changeset

* Add version delta field into sdk schema

* Update migration timestamp

* Update versions.save() to return finalVersionDelta

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

* Sort on DB level

* Update migration date

* Disallow passing delta via create/update

* Update docs & specs

* Fix save response

* Remove unnecessary access check

Already checked by the subsequent itemsService.readOne call

* Update changeset

* Don't require update perms on versions for save

* Optimize validateCreateData

* update to new validateAccess

* Update docs/reference/system/versions.md

* Remove migration of delta

* Rename to legacy

* Add missed changes for Remove migration of delta in 2e2f50fa67

* Update docs/reference/system/versions.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Update migration dates

* api change should be major for versioning

* Remove comment paths from activity reference

* Added comments reference

* Added directus_comments to table of system collections

* The linter demands newline

* Revert function renaming for patch semver

* Use transaction in down migration for comments (#23715)

* Remove outdated logic for comments

* remove duplicate app access permission

* remove unused import/params in gql

* remove remaining comment code in activity

* remove remaining activity logic in comment

* add changeset

* reword changeset

* restrict comment CUD to authenticated users

* update docs

* add changeset

* skip mention processing if none are present

* update restriction wording in the docs

---------

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>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* remove foreign key constraint on comment `collection` column

* update migration comment wording

* Update api/src/database/migrations/20240924A-migrate-legacy-comments.ts

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

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-12-02 11:48:51 -05:00
Kevin Lewis
fa527f5eb0 Add variables to sidebar (#24110) 2024-11-27 19:22:01 +00:00
Kevin Lewis
ba1d03f9fd Added variables page to cloud (#24109) 2024-11-27 19:11:10 +00:00
Georg Pichler
7800b4afa0 Allow the login timeout for OpenID SSO login to be adjusted (#24003)
* Allow the lifetime of the `openid.<providerName>` cookie to be determined by a configuration setting.

* - Signed CLA
- Whitespace correction by prettier

* Create violet-drinks-jump.md

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-11-26 20:03:33 -05:00
Shai Etzion
2991169f82 Update config-options.md Redis config options (#23966)
* Update config-options.md Redis config options

* Fixed Redis typo

* formatted doc

* fixed typo
2024-11-25 19:44:42 -05:00
Nikolas Rimikis
e5d1a714b6 fix(docs): typos in relational.md (#24088)
Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
2024-11-25 17:56:35 -05:00
Paul J
3de40390fe Clarify SMTP config options in docs (#24019) (#24046)
* Clarify SMTP config options in docs (#24019)

- Add link to Nodemailer options docs
- Add clarification in options descriptions

* Add @trespaul to `contributors.yml`.

* Fix formatting.

* Add new terms to `dictionary.txt`.

- "Nodemailer"
- "STARTTLS"

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-11-21 16:43:17 -05:00
daedalus
e6e2b8c964 Fix enforcing chunkSize when TUS is not enabled and update the default TUS_CHUNK_SIZE to 8mb (#24002)
* do not enforce tus limits if it is not enabled

* add changeset

* reword changeset

* fix typings

* Update packages/storage-driver-supabase/src/index.ts

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

* reduce default tus chunk size to 8mb

* add warnings regarding driver restrictions

* rework multiple chunk size warning to a table

* reword cloudinary restriction

* move default chunk size to shared constants package

Co-Authored-By: ian <26413686+licitdev@users.noreply.github.com>

* update changeset with correct packages

* Update .changeset/cyan-sloths-appear.md

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

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: ian <26413686+licitdev@users.noreply.github.com>
2024-11-20 00:27:24 +08:00
Kevin Lewis
9071172b74 Update guest author page (#24059) 2024-11-18 12:08:36 -05:00
daedalus
72f12f3996 Add TUS support to the GCS storage driver (#23897)
* add tus support for gcs

* add changeset

* remove unnecessary return types

* resumable wip

* remove tus/utils

* add isPartialUpload for crc32c

* add chunksize restriciton

* highlight keywords in chunksize warning

* remove unnecessary metadata and rename crc32c to hash

* add note regarding recommended chunk size

* refactor to utilize constants

* do not silently delete content on error

* Update docs/self-hosted/config-options.md

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

* Update packages/storage-driver-gcs/src/index.ts

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

* fix formatting

---------

Co-authored-by: ian <licitdev@gmail.com>
2024-11-04 09:48:22 +01:00
Bartosz Pijet
e9c1cbd335 Fix typo in app-composables.md docs (#23946)
Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-10-31 13:52:30 +00:00
Pascal Jufer
4c250900df Add breaking changes docs for v11.1.2 (#23938)
Co-authored-by: Kevin Lewis <kvn@lws.io>
2024-10-29 17:34:32 +00:00