Commit Graph

9807 Commits

Author SHA1 Message Date
Andrii Trubai
ef12487f7f Fix an incorrect rendering of m2a items templates (#16478)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-01-24 12:20:00 +01:00
Jay Bharadia
b13efb61ef Fix field configuration view not updating when navigating between different fields in New Field drawer (#17254)
* Fix field configuration view not updating when navigating between different fields in New Field drawer

* Used Vue toRef instead of computed as per the feedback

* Make type reactive too

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-23 13:05:25 -05:00
Benoît Burgener
61cbb0b7f8 GraphQL return original error (#17168) (#17268) 2023-01-23 11:55:32 -05:00
Jay Bharadia
bb176c44fb Fix/issue 16692 and issue 16437 (#17186)
* Issue 16437 solved

* Cleanup optional check

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-19 11:34:27 -05:00
Azri Kahar
6c108a9582 update knex version (#17240) 2023-01-19 10:16:56 -05:00
Nitwel
276cc479ce Revert "Disable field selection for alias fields in the system-filter component when functions are used (#14314)" (#17182) 2023-01-19 08:18:35 -05:00
Nitwel
f36ebb1a0b Flows improvements (#16773) 2023-01-19 08:15:12 -05:00
Nitwel
7e43b08e53 Fix operations output being undefined (#17181)
* fix operation output being undefined

* run linter

* map arrays deep too

* run linter

* rename to mapValuesDeep
2023-01-18 15:00:35 -05:00
ian
025bb7c053 Fix insights filtering (#16139)
* Parse string filter as JSON

* Parse content as JSON when toggling raw editor

* Refactor missing Dashboard type

* Convert filter to gql format

* Disable alias field filter selection in insights

* Use parseJSON util

* Refactor to allow selectivity of relational field for GraphQL filters

* Emit variables

* Skip emitting invalid JSON

* Add unit tests
2023-01-18 14:31:59 -05:00
Jay Bharadia
d42de82bcd Fixes Issue #17072 Image is displayed to small in the Editing Image panel #17072 (#17216) 2023-01-18 14:16:40 +00:00
ian
af2afd0d4e Fix fetching from related collection in drawer item (#17210) 2023-01-18 15:21:41 +08:00
Nitwel
6c2df2dca3 passthrough all package.json data (#17179) 2023-01-17 14:30:17 +01:00
Brainslug
66f4e89978 added frontend sorting for flows (#17202) 2023-01-17 11:07:38 +01:00
Azri Kahar
07269b9b86 update locale name for zh-TW (#17199) 2023-01-17 16:25:37 +08:00
ian
25e3c16b3f Use countDistinct for item and total counts (#17184)
* Use countDistinct for item and total counts

* Propagate changes to export sidebar detail

* Try to trigger GH actions

* fix use-collection mock

* cover countDistinct in use-items test

* simplify primaryKeyField usage

* Revert typing

* Update mock values for differentiation

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-01-17 16:18:34 +08:00
John Flow
6793d9fd40 Added https:// (#17171) 2023-01-15 11:45:45 -05:00
ian
3bd2c1cfd3 Catch logout error (#17139) 2023-01-13 13:01:38 -05:00
José Varela
5e555f7756 Graphql: Prevent store response with errors in cache (#16926)
* Prevent cache response with errors

* Fix failing test

* mock env in notifications service test

* Use res.locals.cache = false instead

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-01-12 17:06:24 -05:00
Francisco Marques
0f9f0d8fc4 Fix url encoding query parameters and added tests (#17120)
* fix(utils): query parameters encoding for Url

* improvement(utils): added tests to Url

Also, made trailing slash behaviour consistent

* fix: updated nvmrc to the recommended node version
2023-01-12 12:31:51 -05:00
Brainslug
d312bd172d Fix GraphQL server health output (#17113)
* fix graphql server health

* Add tests

Co-authored-by: ian <licitdev@gmail.com>
2023-01-12 13:12:06 +01:00
rijkvanzanten
abde5adacd v9.22.4 2023-01-11 17:48:34 -05:00
rijkvanzanten
5e27e8c928 v9.22.4 2023-01-11 17:47:39 -05:00
rijkvanzanten
065c77dc1d v9.22.4 v9.22.4 2023-01-11 17:05:16 -05:00
Rijk van Zanten
99d0c17dcf Make sure azure tests use unique file paths (#17104) 2023-01-11 16:52:43 -05:00
Azri Kahar
d2a6621153 Add tests for Flows operations (#16580)
* Add tests for Flows operations

* fix notifications test env

* tweaks

* fix env mock
2023-01-11 16:12:16 -05:00
Roger Stringer
102b965abe offset should be 0 not 1 by default (#17101) 2023-01-11 20:57:18 +00:00
Nitwel
dc358ea5f6 Use updated constants from shared (#17098) 2023-01-11 21:35:18 +01:00
rijkvanzanten
9f708d67bc v9.22.3 v9.22.3 2023-01-11 12:16:11 -05:00
rijkvanzanten
fa8821309e Fix app docs build 2023-01-11 12:14:44 -05:00
rijkvanzanten
f76b29a00e v9.22.2 2023-01-11 11:29:14 -05:00
rijkvanzanten
b9a5005859 v9.22.2 v9.22.2 2023-01-11 11:27:56 -05:00
Rijk van Zanten
73783d002d New Crowdin updates (#16911)
* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Khmer)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Arabic)
2023-01-11 11:26:45 -05:00
rijkvanzanten
390b55354e Update in-app docs 2023-01-11 11:25:08 -05:00
Azri Kahar
4b89566496 Wrap mime-type display in span node (#17084) 2023-01-11 11:09:05 -05:00
Rijk van Zanten
874dda8078 Make forcePathStyle configurable (#17081)
* Make forcePathStyle configurable

Defaulting to true when an endpoint was provided caused issues.

* Fix test setup
2023-01-10 17:40:48 -05:00
Azri Kahar
bc41307f00 Fix page tracking debounced timeout (#16552)
* fix trackPage timeout resets

* tweak test
2023-01-10 16:56:52 -05:00
Azri Kahar
32603cbf2f use setCacheValue in get-permissions util (#17044) 2023-01-10 16:45:59 -05:00
Brainslug
c6b2d5c408 Updated readme installation instructions to use docker (#17019)
* Updated readme installation instructions to use docker

* Simplify readme

Co-authored-by: Eron Donevan Powell <62306630+erondpowell@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-10 16:24:30 -05:00
Brainslug
dda1afcf16 Collection export limit 0 leads to 500 error (#16722)
* prevent 500 error when limit=0

* short circuit parser instead

* removed unneeded comment

* setting a sensible minimum and step for export limit

* fixed notif message when exporting limit=-1

* re-added !exportSettings.limit fallback behavior

* guard against negative limit values lower than -1

* add unit test for sanitizeQuery

* remove unnecessary test cases

because offset and page are validated in validateQuery

* delegate validation to validateQuery instead

* use sanitizeQuery util for export

* Added check for integers

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

* validate instead of sanitize

* removed obsolete test

* added integer checks for limit, offset, page and sensible minimums

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-01-10 09:35:31 +01:00
Azri Kahar
986984e113 Simplify calendar layout's first day options (#16617)
* Simplify calendar layout's first day options

* use type that is more technically accurate
2023-01-09 17:19:49 -05:00
Rijk van Zanten
c249d58a8c Revert "Speed-up api dev scripts by using swc (#16609)" (#17064)
This reverts commit e9a2ce5a9e.
2023-01-09 16:57:03 -05:00
Azri Kahar
7616b25988 Pass emitEvents to query methods in item-read & item-delete operations (#16579)
* fix item-read's readByQuery emitEvents

* fix item-delete's deleteByQuery emitEvents

* tests
2023-01-09 15:50:55 -05:00
Pascal Jufer
e9a2ce5a9e Speed-up api dev scripts by using swc (#16609) 2023-01-09 15:47:41 -05:00
Pascal Jufer
c16be6f644 Type fixes in app (part 1) (#16545)
* Fix paths of imports

* Process not-found.vue as ts

To prevent the following error from 'vue-tsc':
  error TS6504: File '/Users/pascal/Development/directus/app/src/modules/insights/routes/not-found.vue.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?

Note: We could also enable 'allowJS' but since this is the only js file
this seems to be a more fitting fix

* Drop hljs language definition for GraphQL (now in core)

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-09 18:29:03 +00:00
Azri Kahar
bc82c7bb8c Throttle idle event listeners (#16555)
* throttle idle event listeners

* export timeout duration to use it in test directly
2023-01-09 12:13:49 -05:00
Andrii Trubai
216930ee92 Render-template layout fix (#16476) 2023-01-09 11:58:32 -05:00
Nitwel
3a52d9e150 Ignore extension folders on lint (#17013)
* ignore extension folders on lint

* Update .eslintignore

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

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-01-09 09:49:10 -05:00
ian
1d6e77d5ab Fix last admin check for alterations type inputs (#16595)
* Fix last admin check for alterations type inputs

* Add unit tests

* fix mocks causing side-effects

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-01-09 20:33:13 +08:00
ian
bcbbd81257 Cast numeric filter values as number for _eq and _neq operators (#16657)
* Cast numeric filter values as number for _eq and _neq operators

* Add check for empty string

* Add check for booleans
2023-01-06 16:06:39 -05:00
ian
f0e8f0bef0 Remove TZ conversion for timestamps in MySQL (#16679) 2023-01-06 16:06:09 -05:00