Commit Graph

3181 Commits

Author SHA1 Message Date
dependabot[bot]
f43e56ada7 Bump pino-pretty from 11.2.1 to 11.2.2 (#23572)
Bumps [pino-pretty](https://github.com/pinojs/pino-pretty) from 11.2.1 to 11.2.2.
- [Release notes](https://github.com/pinojs/pino-pretty/releases)
- [Commits](https://github.com/pinojs/pino-pretty/compare/v11.2.1...v11.2.2)

---
updated-dependencies:
- dependency-name: pino-pretty
  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-05 12:12:02 +02:00
dependabot[bot]
b576664acf Bump pino from 9.2.0 to 9.4.0 (#23558)
Bumps [pino](https://github.com/pinojs/pino) from 9.2.0 to 9.4.0.
- [Release notes](https://github.com/pinojs/pino/releases)
- [Commits](https://github.com/pinojs/pino/compare/v9.2.0...v9.4.0)

---
updated-dependencies:
- dependency-name: pino
  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:56:37 +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
keesvanbemmel
dc9497f810 Adds ignore rules to Schema Apply CLI (#23465)
* Adds ignore rules to Schema Apply CLI

* Added myself to contributors list

* Prettier fixes and one code fix

* Adds change set

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-09-04 09:39:16 +02:00
Rijk van Zanten
1b1ab7713e v11.1.0 2024-09-03 17:50:36 -04:00
Hannes Küttner
c88df15c19 Fix sorting for nested queries with permissions / filters (#23518)
* Always include inner query sort fields in group by expression of inner query

* Add changeset

* Move DB vendor specific code into helper

* Include MariaDB in comments

* Prefix unused vars with underscore

---------

Co-authored-by: ian <licitdev@gmail.com>
2024-09-04 00:28:19 +08:00
Jan Arends
22f7d1080f Fix error on nullable update within Oracle DB (#23436)
* more differentiation between creation and update and some comments

* added db helper for nullable update

* integrated db helper

* comments

* changeset

* update comment, autoformat

* make new fields nullable by default

we dont transmit unchanged values in the advanced creation form which means
`is_nullable` will be undefined because thats the default
before this pr it worked because we fell back due to `... ?? true`

---------

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
2024-09-03 13:53:37 +02:00
dependabot[bot]
cf64ec954a Bump @aws-sdk/client-ses from 3.636.0 to 3.637.0 (#23548)
Bumps [@aws-sdk/client-ses](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ses) from 3.636.0 to 3.637.0.
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ses/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.637.0/clients/client-ses)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-ses"
  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-03 09:08:14 +02:00
Bernat Vadell
702842711f reload npm extensions when watch is enabled (#23100)
* reload npm extensions when watch is enabled

* accept eula

* fix contributors.yml format

* Add changeset

* watch all posible extensions managed

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-09-02 19:04:18 -04:00
dependabot[bot]
a4cfbe0d51 Bump oracledb from 6.5.1 to 6.6.0 (#23482)
Bumps [oracledb](https://github.com/oracle/node-oracledb) from 6.5.1 to 6.6.0.
- [Release notes](https://github.com/oracle/node-oracledb/releases)
- [Changelog](https://github.com/oracle/node-oracledb/blob/main/CHANGELOG.md)
- [Commits](https://github.com/oracle/node-oracledb/compare/v6.5.1...v6.6.0)

---
updated-dependencies:
- dependency-name: oracledb
  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-08-31 16:49:27 +02:00
Rijk van Zanten
769fa22797 Merge commit from fork
* Exclude all auth from response caching

* Add changeset
2024-08-30 11:06:00 -04:00
Brainslug
8cbf943b65 Merge commit from fork
* updated default blocklist to include other loopback devices

* changeset

* improved fix

* Update api/src/request/is-denied-ip.ts

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

---------

Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
2024-08-30 10:52:36 -04:00
José Varela
8f11d1005d API: Preprocess assigns wrong query bindings when there is more than one duplicated value (#23453)
* Fix aggregate group when have more than one duplicated value

* Add new test

* Add more comments

* Fix import order

* Add changeset

* Optimise with map

* Move `!`

* Add back comment

---------

Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
Co-authored-by: ian <licitdev@gmail.com>
2024-08-29 22:12:33 +08: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
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
daedalus
da1a3aecd0 Fix address undefined for graphql and websocket logs (#23488)
* fix address undefined before server is listening

* add changeset

* remove protocol prefix for ws logs
2024-08-26 14:59:36 -04:00
Gerard Lamusse
5395e3c7e5 Separate schema needed for operations from schema used to generate api spec (#23460)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-23 07:58:24 +00:00
dependabot[bot]
fd02875727 Bump @types/node from 18.19.43 to 18.19.45 (#23458)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.43 to 18.19.45.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  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-23 08:54:43 +02:00
dependabot[bot]
79816ed537 Bump @aws-sdk/client-ses from 3.614.0 to 3.636.0 (#23443)
Bumps [@aws-sdk/client-ses](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ses) from 3.614.0 to 3.636.0.
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ses/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.636.0/clients/client-ses)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-ses"
  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-08-22 11:58:42 +02:00
José Varela
c6304b81dd API: Fix filter email.send to be used in Flows (#23446)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-22 11:56:30 +02:00
dependabot[bot]
e1e472e892 Bump tsx from 4.16.5 to 4.17.0 (#23433)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.16.5 to 4.17.0.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.16.5...v4.17.0)

---
updated-dependencies:
- dependency-name: tsx
  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-08-21 08:39:56 +02:00
dependabot[bot]
1d31a2b2cb Bump mysql2 from 3.10.0 to 3.11.0 (#23421)
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.10.0...v3.11.0)

---
updated-dependencies:
- dependency-name: mysql2
  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-08-20 09:02:06 +02:00
Pascal Jufer
e759f4b5da Ensure DB queries in notifications service run in same transaction (#23405) 2024-08-19 10:01:38 +00: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
dependabot[bot]
b38556889b Bump sharp from 0.33.4 to 0.33.5 (#23400)
Bumps [sharp](https://github.com/lovell/sharp) from 0.33.4 to 0.33.5.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.33.4...v0.33.5)

---
updated-dependencies:
- dependency-name: sharp
  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-19 09:53:55 +02: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
SP12893678
3a0d628b52 Fix icon field limit character size (#22411) (#23391)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-18 15:36:26 +02:00
Jan Arends
83303b16e3 Enabled gen_random_uuid() to be used as default field value (#23359)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-18 13:21:51 +02:00
Pascal Jufer
603778a227 Tiny refactor of parse-filter-key.ts (#23397) 2024-08-18 11:35:46 +02:00
dependabot[bot]
1ccae7efd5 Bump qs from 6.12.3 to 6.13.0 (#23372)
Bumps [qs](https://github.com/ljharb/qs) from 6.12.3 to 6.13.0.
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.12.3...v6.13.0)

---
updated-dependencies:
- dependency-name: qs
  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-08-16 09:31:38 +02: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
45e915aa5f v11.0.2 2024-08-14 11:47:31 -04:00
Hannes Küttner
6793d79b3c Fix system filter permission checking in validateItemAccess (#23357) 2024-08-14 15:21:48 +00:00
Azri Kahar
a41ee74a2a Fix CSV import for files containing Byte Order Mark (BOM) (#23332)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-14 12:53:59 +00:00
Hannes Küttner
dc03c76557 Fix filtering of M2A allowed collections in AST construction (#23340) 2024-08-14 14:29:02 +02:00
Hannes Küttner
92640bd6a7 Fix caching for dynamic variables (#23321)
* Don't cache dynamic values in permissions, but only the actual DB result

* Cache filter context based on the requested fields and the dynamic variable value in the "normal" cache

* Remove caching from `fetchAllowedCollections`

* Remove caching from `fetchAllowedFieldMap`

* Remove caching from `fetchAllowedFields`

* Remove caching from `fetchInconsistentFieldMap`

* Add `bypassMinimalAppPermissions` to `fetchRawPermissions` cache key

* Reduce keys in `fetchRawPermissions` accountability option

* Add changeset

* Add fields to filter context cache key again

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2024-08-14 08:24:40 -04:00
Hannes Küttner
51ecd31312 Fix the order of preset application and payload validation (#23346)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-14 14:11:51 +02:00
Azri Kahar
7d8fdce267 Fix file export is ready notification for user without create permission to directus_notifications (#23336)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-08-14 10:24:32 +00:00
Hannes Küttner
434b8e822c Adjust permissions migration to work with more MySQL flavors (#23327) 2024-08-14 11:32:03 +02:00
Azri Kahar
0fa0f48efe Fix typo for Invalid aggregate query parameter warning log (#23334) 2024-08-14 07:59:07 +02:00
Hannes Küttner
7ddf5fd927 Fix sort field defaulting for related o2m collections (#23267)
* Default to the correct sort field for nested o2m items

* Add changeset

* Add test

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-08-12 15:05:46 -04:00
Hannes Küttner
578bd7a164 Fixed the permission application for relational _some and _none filters (#23272)
* Inject the correct cases into _some and _none filters

* Make sure that all arguments are passed to the relational count helper through types

* Unrelated

* `getCases` applies its own collection filtering

* Add changeset
2024-08-13 01:54:25 +08:00
Hannes Küttner
ce626ab7ec Fix deep groupBy behavior for O2M relations (#23279)
* Add additional group field for o2m

* Add changeset

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2024-08-12 11:47:11 -04:00
ian
939423f257 Change get-address test port (#23302)
* Change get-address test port

* Get random port instead

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

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2024-08-12 10:11:36 -04:00
dependabot[bot]
0aae60bd84 Bump tar from 7.4.2 to 7.4.3 (#23290)
Bumps [tar](https://github.com/isaacs/node-tar) from 7.4.2 to 7.4.3.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.4.2...v7.4.3)

---
updated-dependencies:
- dependency-name: tar
  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-12 11:37:02 +02:00
Hannes Küttner
e602450d2b Fix singleton permissions structure (#23269)
* Fix singleton update permission fields & presets

* Add changeset

* Fix typo

* Make code slightly prettier
2024-08-09 13:39:37 -04:00
Crow
8426111498 Persist default value and nullable in field schema update (#23151)
* make variable more descriptive

* persist default value and nullable in field schema update

* add changeset

* add self to contributors

* extracted expressions out of the selection

* a bit more refactoring

* fix

* set nullable as default

* tiny refactoring

* handle null as default value correctly

---------

Co-authored-by: Jan Arends <jan.arends@mailbox.org>
2024-08-09 13:16:03 +02:00
dependabot[bot]
40e012518b Bump inquirer from 9.3.5 to 9.3.6 (#23261)
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.3.5 to 9.3.6.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.3.5...inquirer@9.3.6)

---
updated-dependencies:
- dependency-name: inquirer
  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-09 11:49:06 +02:00
daedalus
fe8d9fb1c2 Fix DB_CLIENT expected before project initialized (#23256) 2024-08-09 09:45:43 +02:00
Rijk van Zanten
034341c5b1 v11.0.1 2024-08-08 13:10:25 -04:00