Commit Graph

201 Commits

Author SHA1 Message Date
ian
376adba912 Update tests/loadtests/src/index.ts 2025-08-06 22:19:15 +08:00
Nitwel
25e4d0de72 move over load tests 2025-08-06 15:05:24 +02:00
Rijk van Zanten
21f85040ea Run formatter (#25604) 2025-08-05 14:52:35 -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
Nitwel
856b95083b Fix cache skipping for getSchema (#25204)
* fix cache skipping for getSchema

* add last bypass

* fmt

* Refactor to bypassCache param in readAll

* consider collection param

* fmt

* Add blackbox test

---------

Co-authored-by: ian <licitdev@gmail.com>
2025-05-23 09:20:06 +08:00
ian
097a3d6395 Fix seeding on blackbox tests for existing db (#25129)
* Fix seeding on blackbox tests for existing db

* add rimraf

* Run formatter

* Add changeset

* Try trigger workflow

---------

Co-authored-by: Nitwel <mail@nitwel.de>
2025-05-14 16:00:57 +08:00
ian
7f69b51184 Update axios to 1.8.4 (#25110)
* Update axios to 1.8.4

* Add changeset
2025-04-23 11:21:32 -04:00
daedalus
afb0c24923 Ensure one_deselect_action updates bypass QUERY_LIMIT_DEFAULT restrictions (#25087)
* do not restrict `one_deselect_action` changes by `QUERY_LIMIT_DEFAULT`

* add changeset

* add bb test

* fix bb tests

* Fetch deep -1

* Same for GQL

* Try debug m2o

* Try increase to 10k

* second pass at fixing bb tests

* 3rd pass on attempt bb test fix

* check if any bb tests error due to `QUERY_LIMIT_DEFAULT`

* add missing comma in sequential tests

* bypass oracle in bb tests due to column limit

* final bb test pass

* simplify bb test

* Improve item name

---------

Co-authored-by: ian <licitdev@gmail.com>
2025-04-22 20:09:06 +08:00
daedalus
c02570c065 Fix auto PK injection not accounting for has_auto_increment being creating a PK (#25084)
* account for `has_auto_increment` for pk injection

* update blackbox tests to cover  when has_auto_increment true
2025-04-17 11:03:17 +08:00
daedalus
c0c12bf26e Ensure primary key field is auto-injected when absent from the fields array (#25077)
* auto add PK if not present in fields array

* add changeset

* Update api/src/services/collections.ts

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

* Add bb test

* Update test result

* Update test descriptions

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

* Add empty array test

* Add should not auto create check

* Update .changeset/famous-turtles-bow.md

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

* Update test result

---------

Co-authored-by: ian <licitdev@gmail.com>
2025-04-16 11:40:49 -04:00
ian
67c7fa137e Update blackbox tests to MSSQL 2022 (#25065)
* Update blackbox tests to MSSQL 2022

* Add changeset

* Update .github/workflows/blackbox.yml

Co-authored-by: Wryn (yage) Wagner <wryn@directus.io>

---------

Co-authored-by: Wryn (yage) Wagner <wryn@directus.io>
2025-04-15 00:25:17 +08:00
daedalus
2e525aeb1c Fix uncaught error in the health check process during storage cleanup (#24970)
* do not throw unhandled rejection in health when disk.delete fails

* dont wait for cleanup

* add changeset

* reword changeset

* improve blackbox tests to accept warn for status result

* Update .changeset/slimy-paths-peel.md

* log errors for metric failures
2025-04-09 21:39:20 +08:00
Brainslug
9b495e769f DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake (#24850)
* remove async from afterCreate

* Create silent-feet-burn.md

* removed unused imports

* make blackbox and cli afterCreate synchronous

* fix mysql query results

* drop support for mysql 5.7

* Added changeset

* removed obsolete applyMultiRelationalSort

* Update .changeset/green-places-throw.md

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

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
2025-04-04 11:11:49 -04:00
Hannes Küttner
ef9e78b5e7 Fix broken query binding de-duplication (#24604)
* Circumvent group by issues in Postgres entirely

* chore: cleanup

* chore: add reference to MySQL docs

* Add changeset

* feat: prettify

* fix: use column positions instead of aliases

* rename capability to more appropriate name

* Additional integration test for case when queries  (#24640)

* added seed

* rename

* start of test

* add permissions

* add permission to policy in seed

* activate test

* finalize test

* refactoring

* Revert "refactoring"

This reverts commit 7c3e60c8ced1a15d1f5982c621eec7977b1e5ec2.

* clean up

* removed unneeded type

* added one expectation

* Touchups

* Remove unneeded seedDBValues

* Use collection var

* Optimize import

* enabled expect again

* fix

---------

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

* Enabled deduplication of parameters again for certain DBs (#24770)

* enabled deduplication approach again

* rename and fix

* more correct capabilities

* rename

* remove redundant capability

* refactoring

* fix typo in file name

* formatting

* add test item to check if permission works

* Error handling in bb test utility  (#24776)

* testing error handling

* add error handling

* enable all tests

* direct response code check

* one last test

---------

Co-authored-by: Jan Arends <jan.arends@mailbox.org>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2025-03-07 16:30:34 -05: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
renovate[bot]
7f37e59e52 Update dependency vite-tsconfig-paths to v5 (#24708)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 11:37:29 +01:00
Brainslug
73bcffc22e Dependabot: Update Vitest 🧹 (#24643) 2025-02-19 16:36:19 +00:00
ian
52476cef94 Trigger blackbox tests with label (#24517)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-02-04 11:36:52 +01:00
ian
9b36374b36 Patch blackbox tests for v11 (#24281)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-01-20 11:56:51 +00:00
renovate[bot]
4909885b8e chore(deps): update dependency uuid to v11 (#24379)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2025-01-09 19:39:04 +01:00
renovate[bot]
5c028a4c34 chore(deps): update dependency autocannon to v8 (#24378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 18:16:49 +00: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]
390f35ca8f chore(deps): update dependency typescript to v5.7.3 (#24376)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 17:43:14 +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]
f208fb2f3a Update dependency eslint to v9 (#23813)
* Update dependency eslint to v9

* Migrate to flat config

* Fix resulting lint issues

* Organize imports, clean-up

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-10-08 18:07:20 +00:00
renovate[bot]
690b228f28 Update vitest monorepo to v2 (major) (#23809)
* Update vitest monorepo to v2

* Fix buffer mocking

* Forks is now the default

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-10-08 11:22:07 +00:00
Pascal Jufer
e8d96d4706 Update TypeScript to 5.6.2 (#23741) 2024-09-26 10:00:39 +02:00
dependabot[bot]
f493cbf199 Bump axios from 1.7.3 to 1.7.7 (#23655)
Bumps [axios](https://github.com/axios/axios) from 1.7.3 to 1.7.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.7.3...v1.7.7)

---
updated-dependencies:
- dependency-name: axios
  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-09-13 10:10:07 +02:00
dependabot[bot]
ee7cf0b7aa Bump argon2 from 0.40.3 to 0.41.1 (#23559)
Bumps [argon2](https://github.com/ranisalt/node-argon2) from 0.40.3 to 0.41.1.
- [Release notes](https://github.com/ranisalt/node-argon2/releases)
- [Commits](https://github.com/ranisalt/node-argon2/commits/v0.41.1)

---
updated-dependencies:
- dependency-name: argon2
  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-04 09:55:07 +02:00
dependabot[bot]
931acedeed Bump listr2 from 8.2.3 to 8.2.4 (#23546)
Bumps [listr2](https://github.com/listr2/listr2) from 8.2.3 to 8.2.4.
- [Release notes](https://github.com/listr2/listr2/releases)
- [Changelog](https://github.com/listr2/listr2/blob/master/release.config.cjs)
- [Commits](https://github.com/listr2/listr2/compare/listr2@8.2.3...listr2@8.2.4)

---
updated-dependencies:
- dependency-name: listr2
  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-03 07:17:59 +00:00
dependabot[bot]
a1a958dc80 Bump @types/ws from 8.5.11 to 8.5.12 (#23365)
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.11 to 8.5.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  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-15 11:26:37 +02:00
Rijk van Zanten
9faac0164e Merge branch 'main' into v11-rc 2024-08-05 16:21:55 -04:00
dependabot[bot]
3db63e3c30 Bump axios from 1.7.2 to 1.7.3 (#23171)
Bumps [axios](https://github.com/axios/axios) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.7.2...v1.7.3)

---
updated-dependencies:
- dependency-name: axios
  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-05 19:48:00 +02:00
dependabot[bot]
91e4d60cb1 Bump @types/ws from 8.5.10 to 8.5.11 (#23069)
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.10 to 8.5.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  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-07-22 10:31:08 +02:00
Brainslug
8a1b2489ce Merge branch 'main' into chore-v11-merge-main 2024-07-10 13:52:02 +02:00
ian
a3faf6e4c3 Patch websocket test with updated behaviour for handshake auth mode (#22950) 2024-07-09 12:28:06 +02: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
dependabot[bot]
b2bd6b74f3 Bump ws from 8.17.1 to 8.18.0 (#22931)
Bumps [ws](https://github.com/websockets/ws) from 8.17.1 to 8.18.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.17.1...8.18.0)

---
updated-dependencies:
- dependency-name: ws
  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-07-05 09:20:42 +02:00
dependabot[bot]
c609538076 Bump globby from 14.0.1 to 14.0.2 (#22920)
Bumps [globby](https://github.com/sindresorhus/globby) from 14.0.1 to 14.0.2.
- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](https://github.com/sindresorhus/globby/compare/v14.0.1...v14.0.2)

---
updated-dependencies:
- dependency-name: globby
  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-07-04 08:18:28 +02:00
dependabot[bot]
9594d04fe3 Bump ws from 8.17.0 to 8.17.1 (#22829)
Bumps [ws](https://github.com/websockets/ws) from 8.17.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.17.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  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-06-24 12:27:40 +02:00
dependabot[bot]
0aafbe10de Bump listr2 from 8.2.1 to 8.2.3 (#22831)
Bumps [listr2](https://github.com/listr2/listr2) from 8.2.1 to 8.2.3.
- [Release notes](https://github.com/listr2/listr2/releases)
- [Changelog](https://github.com/listr2/listr2/blob/master/release.config.cjs)
- [Commits](https://github.com/listr2/listr2/compare/listr2@8.2.1...listr2@8.2.3)

---
updated-dependencies:
- dependency-name: listr2
  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-06-24 12:25:04 +02:00
Brainslug
7caf13503f Merge branch 'main' into v11-rc 2024-06-20 17:00:08 +02:00
Pascal Jufer
53b3c1fa00 Fix remaining blackbox test issues (#22759)
* Fix remaining blackbox test issues

* Temporary activation of blackbox tests (sqlite)

* Enable hanging-process reporter for now

* Revert "Enable hanging-process reporter for now"

This reverts commit ce490ba229.

* Fix hanging by cleaning up sequential list

Also prevent this issue in future by logging invalid files in list

* Switch remaining tests to `getPort`

To get random, available ports

* Revert "Temporary activation of blackbox tests (sqlite)"

This reverts commit a8687a095a.
2024-06-18 17:37:20 +08:00
Pascal Jufer
6bd3deec50 Replace mysql client with mysql2 (#22534)
* Replace `mysql` client with `mysql2`

* Temporary activation of blackbox tests

* Update client for blackbox tests

* Update vitest in blackbox tests

* Define default charset/collcation & use Maria LTS

* Align root compose file

* Update mysql2 to 3.10.0

* Add changeset

* Add notice to changeset

* Revert "Temporary activation of blackbox tests"

This reverts commit fe49a0d3a9.

* Add/move notice to breaking changes

* Update docs/releases/breaking-changes.md

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-06-14 15:21:25 -04:00
Pascal Jufer
cd67543f05 Run fields CRUD blackbox test sequentially (#22750) 2024-06-13 15:41:36 +00:00
dependabot[bot]
8bf9805645 Bump argon2 from 0.40.1 to 0.40.3 (#22660)
Bumps [argon2](https://github.com/ranisalt/node-argon2) from 0.40.1 to 0.40.3.
- [Release notes](https://github.com/ranisalt/node-argon2/releases)
- [Commits](https://github.com/ranisalt/node-argon2/commits)

---
updated-dependencies:
- dependency-name: argon2
  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-06-05 02:52:19 +02:00
dependabot[bot]
2bcd7b0b0d Bump axios from 1.6.8 to 1.7.2 (#22580)
Bumps [axios](https://github.com/axios/axios) from 1.6.8 to 1.7.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.8...v1.7.2)

---
updated-dependencies:
- dependency-name: axios
  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-05-27 11:27:37 +02:00
Pascal Jufer
13da3cbcaa Adjust SAML blackbox test (#22531) 2024-05-21 13:58:49 +02:00
Pascal Jufer
8706b9daba Adjust "refresh" blackbox test (#22529) 2024-05-21 10:39:33 +00:00