Commit Graph

1644 Commits

Author SHA1 Message Date
renovate[bot]
2d7b20fb75 Update dependency pino to v6.13.2 (#7860)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 11:50:21 -04:00
renovate[bot]
8676c8c18a Update dependency @types/keyv to v3.1.3 (#7882)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 11:19:08 -04:00
Azri Kahar
ff9c78b137 Fix display labels translations (#7858)
* translate choice text in display labels

* fix translation keys for directus_activity fields

* add activity fields translations
2021-09-07 10:50:23 -04:00
Azri Kahar
ef53869afb make csv imports try to parse values to json (#7820) 2021-09-03 17:25:33 -04:00
José Varela
a98ca0c184 Apply "in" to query even if array is empty (#7816)
* fetch only avatar id for current user

* apply "in" to query even if array is empty
if the "in" array is empty we need to add it to query anyways,
otherwise all records will be attached causing out of memory on
subsequent calls
2021-09-03 12:12:19 -04:00
José Varela
85b6d5c366 Fix return error for GraphQL mutations (#7814) 2021-09-03 12:09:19 -04:00
Sam Milledge
62af357b53 Update logging in CLI commands (#7676)
* Replace console logs with logger in CLI commands

* Fix double sparkles in migration command

* Apply suggestions from code review

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* Use stdout for init command output

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-09-03 02:06:05 +00:00
rijkvanzanten
a6e88183e9 v9.0.0-rc.92 2021-09-02 21:53:23 -04:00
Rijk van Zanten
2abb1674ed Add environment variable to force-exclude tables from Directus (#7789) 2021-09-02 20:39:11 -04:00
Dieter Luypaert
da6f492a44 Expose logger through ExtensionContext (#7777)
Fixes #7737.
2021-09-02 13:46:51 -04:00
renovate[bot]
5757d96912 Update dependency knex-schema-inspector to v1.6.0 (#7769) 2021-09-01 21:22:27 -04:00
rijkvanzanten
77c90363b1 Fix postgis check 2021-09-01 17:25:46 -04:00
Rijk van Zanten
88e0e9e269 Show a warning if PostGIS is missing (#7759)
* Show a warning if PostGIS is missing

* Remove sqlite-extensions flag

* Remove unused import
2021-09-01 15:34:33 -04:00
renovate[bot]
39c617c863 Update dependency @types/sharp to v0.28.6 (#7742)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-01 09:55:43 -04:00
renovate[bot]
f1fa6e44e1 Update dependency knex-schema-inspector to v1.5.15 (#7718)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-31 17:47:50 -04:00
Nitwel
d9d8edc217 Remove permission.limit (#7711)
* remove permission.limit

* set limit to amount of primaryKeys
2021-08-31 11:56:17 -04:00
renovate[bot]
4bde1d7455 Update dependency knex-schema-inspector to v1.5.14 (#7708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-30 20:39:24 -04:00
Nicola Krumschmidt
2a82927423 Add support for typescript extensions to extension-sdk (#6881)
* Add support for scaffolding typescript extensions to extensions-sdk

* Add support for building typescript extensions to extensions-sdk

* Fix type issues in extension templates

* Expose types of extensions-sdk

* Add language option to create-directus-extension
2021-08-30 10:57:43 -04:00
Nicola Krumschmidt
6286edf6a9 Remove /custom subpath for endpoints and add a way to customize the endpoint subpath (#7695)
* Remove /custom subpath for endpoints

* Add a way to customize the endpoint subpath
2021-08-30 10:09:12 -04:00
renovate[bot]
e3ae897df9 update jest monorepo to v27.1.0 (#7656)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-27 11:42:34 -04:00
Nicola Krumschmidt
d64ca14348 Explicitly set catch parameters to any type (#7654)
This fixes not being able to build the repo due to type issues
introduced by the Typescript 4.4 option "useUnknownInCatchVariables",
which is enabled by default in strict mode.
2021-08-27 10:33:30 -04:00
renovate[bot]
071e313bce update dependency typescript to v4.4.2 (#7638)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-26 21:53:07 +00:00
Nicola Krumschmidt
7dfc5dc6af Use root-relative base url for app and extensions (#6923)
* Add Url util class

* Use relative base url for app and extensions

Also use utils/url when working with PUBLIC_URL in other places.
2021-08-26 17:11:21 -04:00
Azri Kahar
50fdea1709 fix(api): merge original user object into payload from auth hook (#7568)
* merge user object into payload from auth hook

* fix incorrect param names in reduce function

* change updatedUser to updatedOptions
2021-08-25 11:46:42 -04:00
Zeb Pykosz
aaeb2d6750 log localhost url so it's clickable in terminals (#7604)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-25 15:13:52 +00:00
Azri Kahar
2d3f1c4aa3 fix asset transformation withEnlargement type (#7553) 2021-08-24 14:49:11 -04:00
renovate[bot]
9110cc765b pin dependency @types/supertest to 2.0.11 (#7582)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-24 14:15:35 -04:00
Rijk van Zanten
de8c2f5c67 Fix uploaded_by not always setting user (#7581)
Fixes #7498
2021-08-24 14:12:35 -04:00
rijkvanzanten
4353225d4d Add supertest to api deps 2021-08-24 14:03:32 -04:00
Oreille
5b6354d6be Add postgres constructor to getGeometryHelper (#7561) 2021-08-24 08:56:53 -04:00
Jay Cammarano
ba8e30ab2e added translation vars to fields (#7554) 2021-08-23 21:19:51 +00:00
rijkvanzanten
8f943a34f9 v9.0.0-rc.91 2021-08-23 16:08:06 -04:00
Rijk van Zanten
36dd31ab60 Improve stability of tree-view select interface (#7552)
* Update example env

* Allow nested lists in value preview

* Show nested selection on group selected
2021-08-23 16:02:46 -04:00
renovate[bot]
62b9edc281 update dependency tedious to v12 (#7548)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 10:51:25 -04:00
renovate[bot]
19ed19be72 update dependency ts-jest to v27.0.5 (#7453)
* update dependency ts-jest to v27.0.5

* update dependency @types/jest to v27

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 10:43:44 -04:00
renovate[bot]
44a9ac013a update dependency @types/js-yaml to v4.0.3 (#7529)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-22 16:07:11 -04:00
renovate[bot]
f0e429387c update dependency pino-http to v5.7.0 (#7536)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-21 15:06:56 -04:00
renovate[bot]
d6f8c57eeb update dependency pino to v6.13.1 (#7534)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-21 15:06:40 -04:00
renovate[bot]
89ce56ba46 update dependency @types/jsonwebtoken to v8.5.5 (#7510)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-20 14:20:26 +00:00
rijkvanzanten
256139ffd2 Fix double drop relation 2021-08-19 17:11:49 -04:00
Rijk van Zanten
c1c05d4c4f Allow fetching singleton content through pk route (#7509)
Fixes #7351
2021-08-19 22:19:46 +02:00
Oreille
49e4a9b0de Don't allow empty filter for non-string types. Add null filter. (#7501) 2021-08-19 10:02:54 -04:00
rijkvanzanten
3ec8d6443d Re-enable the default retrystrategy 2021-08-17 17:45:13 -04:00
Nitwel
07f4acdaca Add edge case using mysql for tinyint as boolean (#7460)
* revert #7287

* add edge case for mysql to tinyint/boolean

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-17 12:56:41 -04:00
renovate[bot]
d2888474d5 update dependency sharp to ^0.29.0 (#7461)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-17 15:18:03 +00:00
rijkvanzanten
cf69cc814a Don't read icc information
Save some space, we don't need the color profile information
2021-08-17 10:51:01 -04:00
renovate[bot]
f91d8254c9 update dependency @types/mime-types to v2.1.1 (#7440)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-17 09:37:20 -04:00
Sam Milledge
19424feefa Fixes for GraphQL variables in HTTP GET requests (#7416)
* Fix missing GraphQL variables in HTTP GET requests

* Fix GraphQL query request caching

 - Fix incorrect response when the query contains variables
 - Added tests for cache keys and cache middleware

* Update api/src/utils/get-cache-key.test.ts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-16 23:16:41 +00:00
rijkvanzanten
1b950b07de Still join them on create tho 2021-08-13 12:09:05 -04:00
rijkvanzanten
8d5ce4e91d Don't double split csv values 2021-08-13 12:03:58 -04:00