Commit Graph

267 Commits

Author SHA1 Message Date
Rijk van Zanten
c9b81e51a4 Update and move 'simple' dependencies (#25580)
* Update and move 'simple' dependencies

* Add changeset
2025-08-01 14:36:51 -04:00
ian
7b2b7442ee Update copyright year to 2025 (#24311) 2025-01-02 15:37:30 +01:00
Brainslug
55d47b6443 release 11.1.2 (#23936) 2024-10-29 15:21:07 +00:00
ian
189fcb24f7 Reduce dependencies on activity and revisions tables (#23612)
* 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)

---------

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>
2024-10-16 09:33:11 -04:00
dependabot[bot]
7cdff9ec60 Bump openapi3-ts from 4.3.3 to 4.4.0 (#23589)
Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.3.3 to 4.4.0.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

---
updated-dependencies:
- dependency-name: openapi3-ts
  dependency-type: direct:production
  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-09-06 10:42:18 +02:00
Rijk van Zanten
1b1ab7713e v11.1.0 2024-09-03 17:50:36 -04:00
Maxime Britto
8af05f6d48 Fix for "OpenAPI spec has a duplicate operationId" (#23450)
* Fix for "OpenAPI spec has a duplicate operationId" https://github.com/directus/directus/issues/23429
The operationId 'updateExtensions' was used twice which is not allowed in the open api spec

* Update contributors.yml
2024-08-22 10:58:10 -04:00
Rijk van Zanten
aa425a19da v11.0.0 2024-08-06 15:50:40 -04:00
Rijk van Zanten
e5ba369c24 v10.13.2 2024-08-06 14:26:11 -04:00
dependabot[bot]
5a0f488432 Bump openapi3-ts from 4.3.2 to 4.3.3 (#23090)
Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

---
updated-dependencies:
- dependency-name: openapi3-ts
  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-07-24 10:41:43 +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
Brainslug
e469b49583 release 10.12 (#22652) 2024-06-04 17:34:36 +02:00
dependabot[bot]
9e4fbe0c67 Bump openapi3-ts from 4.3.1 to 4.3.2 (#22610)
Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

---
updated-dependencies:
- dependency-name: openapi3-ts
  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-05-30 10:49:44 +02:00
dependabot[bot]
3b020db83d --- (#22540)
updated-dependencies:
- dependency-name: npm-watch
  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-05-22 10:01:29 +02:00
Rijk van Zanten
0d6c6b90b0 v10.11.0 2024-05-07 18:01:38 -04:00
Pascal Jufer
160b982928 Patch Tuesday 🐸 (#22063)
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
2024-04-30 10:49:20 +02:00
dependabot[bot]
549bfb641e Bump openapi3-ts from 4.2.2 to 4.3.1 (#22217)
Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.2.2 to 4.3.1.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

---
updated-dependencies:
- dependency-name: openapi3-ts
  dependency-type: direct:production
  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-04-17 08:10:44 +02:00
dependabot[bot]
3852555d4f Bump swagger-ui-watcher from 2.1.13 to 2.1.14 (#22056)
Bumps [swagger-ui-watcher](https://github.com/moon0326/swagger-ui-watcher) from 2.1.13 to 2.1.14.
- [Release notes](https://github.com/moon0326/swagger-ui-watcher/releases)
- [Commits](https://github.com/moon0326/swagger-ui-watcher/commits)

---
updated-dependencies:
- dependency-name: swagger-ui-watcher
  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-04-03 08:15:11 +02:00
Pascal Jufer
081cd5a35f Update copyright year in remaining licenses (#22030) 2024-03-31 19:58:03 -04:00
Rijk van Zanten
af2a79fbf3 v10.10.4 2024-03-12 13:30:31 -04:00
Pascal Jufer
74604767da Correct the type of filter query parameter in OAS (#21802)
* Correct the type of filter query parameter in OAS

* Add changeset

---------

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
2024-03-12 17:21:01 +00:00
Rijk van Zanten
9d88df621f v10.10.0 2024-03-05 16:45:58 -05:00
Brainslug
77d73398f1 Session Based Authentication (#21239)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-04 01:59:45 +01:00
dependabot[bot]
db3e3f7761 Bump openapi3-ts from 4.2.1 to 4.2.2 (#21575)
Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

---
updated-dependencies:
- dependency-name: openapi3-ts
  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-02-27 00:52:06 +00:00
Rijk van Zanten
1136c20628 Support video files in public background (#21291)
* Return type information about public background

* Render public backgrounds as video as per type

* Don't authenticate the files service

* Add changeset

* Fix css layering

* Update types

* Update assets.ts

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

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2024-02-09 14:09:45 +01:00
Rijk van Zanten
d3874a8f19 v10.9.0 2024-02-06 14:29:32 -05:00
Pascal Jufer
a6e2712e09 Use official abbreviation of Exif (#21030) 2024-01-10 14:42:40 +01:00
ian
66411ad383 Rename legacy role's ip_whitelist to ip_access (#20970) 2024-01-05 11:46:13 +01:00
dependabot[bot]
a5233570b8 Bump openapi3-ts from 4.2.0 to 4.2.1 (#20885)
Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

---
updated-dependencies:
- dependency-name: openapi3-ts
  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>
2023-12-27 12:12:43 +01:00
Rijk van Zanten
c45cd69dd7 v10.8.3 2023-12-21 14:19:08 -05:00
dependabot[bot]
a310ac1acf Bump openapi3-ts from 4.1.2 to 4.2.0 (#20828)
* Bump openapi3-ts from 4.1.2 to 4.2.0

Bumps [openapi3-ts](https://github.com/metadevpro/openapi3-ts) from 4.1.2 to 4.2.0.
- [Release notes](https://github.com/metadevpro/openapi3-ts/releases)
- [Changelog](https://github.com/metadevpro/openapi3-ts/blob/master/Changelog.md)
- [Commits](https://github.com/metadevpro/openapi3-ts/commits)

---
updated-dependencies:
- dependency-name: openapi3-ts
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-21 00:31:13 +00:00
Pascal Jufer
d30bb69490 Clean-up deps (#20581) 2023-11-30 00:46:09 +01:00
Rijk van Zanten
afc4b23fc7 v10.8.2 2023-11-22 15:23:38 -05:00
Pascal Jufer
ba7fac402e Update Prettier v3.1.0 (#20481) 2023-11-20 16:23:22 +01:00
Azri Kahar
985cef5eb5 Fix typo for user last_access field in OAS (#20465) 2023-11-17 18:49:36 +01:00
Pascal Jufer
be4410f948 v10.8.1 (#20463) 2023-11-17 17:38:16 +01:00
Pascal Jufer
c6f47f90b2 More accurate OAS based on authenticated user (#20462) 2023-11-17 17:24:18 +01:00
Rijk van Zanten
7f5d690c4e v10.8.0 2023-11-16 16:59:46 -05:00
Brainslug
a96909079b Updated extension endpoints OAS definitions (#20374)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-10 18:11:46 +00:00
Rijk van Zanten
3c12967405 10.7.1 2023-10-27 11:46:15 -04:00
Azri Kahar
d9736d001c Add Content Versioning Specs (#20150)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-24 12:41:17 +00:00
rijkvanzanten
3ec4009bb8 v10.6.0 2023-08-25 11:42:24 -04: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
rijkvanzanten
ca73cc976e v10.2.0 2023-05-26 13:17:06 -04:00
Pascal Jufer
4683227272 Update openapi3-ts to v4 (#18722)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-05-25 17:36:32 +02:00
Pascal Jufer
7ecda9b2fa Clean-up package.json files (#18663)
* Remove publishConfig from all packages

* Remove invalid version field

* Move @directus/composables to devDependencies in app

* Resort all package.json files

* Align meta fields

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-19 17:54:10 -04:00
rijkvanzanten
703c5d9c69 v10.1.0 2023-05-11 17:22:00 -04:00
Jan Arends
8b8858da9a Support multipart/form-data to apply schema diffs (#18321)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-05-02 10:24:46 +00:00
Rijk van Zanten
2bc226d16f Change license to BSL-1.1 (#18330)
* Change license to BSL1.1

* Mark major version

* Fix formatting

* Remove duplicate heading

* Update formatting

* Copy paste error

* Update license

* Update license

* Format covenants

* Update readme.md

* Update licenses for packages

* Update readme.md

* Update contributors.yml

OG... but to be clear, rijkvanzanten is the one who really built all of this ❤️

* Tweak license in openapi

* Update packages/specs/src/openapi.yaml

* Add MIT license headers

* Use v10 in examples

* Update additional examples

* Update generate-extensions-entrypoint.test.ts

* Update tests to use latest v9 and v10 versions

* use lowercase for naming consistency

* change casing for api license

* Update migrations doc

* Update dictionary

* Consistent ordering of license field in app/package.json

* Use major version in specs again (but as string)

So it's valid for all v10 versions

* Consolidate readme's

---------

Co-authored-by: Ben Haynes <ben@directus.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-04-26 14:10:42 -04:00
rijkvanzanten
381f1c9d8e v9.26.0 2023-04-24 16:40:53 -04:00