Commit Graph

1683 Commits

Author SHA1 Message Date
ian
c90a6b6541 Fix large integer string used in filters (#8149)
* Fix large integer string used in filters

* Added number check to allow objects to be parsed

* Added missing typeof

* Changed to use Number.isSafeInteger

* clean

Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-09-20 11:56:41 -04:00
renovate[bot]
cca51e84aa Update dependency jest to v27.2.1 (#8168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 10:37:49 -04:00
renovate[bot]
d23fae5d5b Update dependency @types/async to v3.2.8 (#8131)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-18 11:45:58 -04:00
José Varela
d8e9224df6 Fix incorrect env max concurrent transforms (#8134) 2021-09-18 11:04:52 -04:00
Joel Bohorquez
4e042c6418 Add support for custom claims before issuing a JWT. (#7906)
* add event auth.jwt.before

* document event auth.jwt.before

* fix event auth.jwt.before

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-09-17 21:25:46 -04:00
Nicola Krumschmidt
890501fa66 Fix the port being duplicated in parsed URLs (#8117)
Fixes #8114
2021-09-17 09:57:45 -04:00
rijkvanzanten
61a368523b v9.0.0-rc.93 2021-09-16 18:09:55 -04:00
renovate[bot]
9ba43c19f8 Update dependency @types/lodash to v4.14.173 (#8063)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-15 20:54:53 -04:00
rijkvanzanten
4e624d5c7a Move default module listing to app 2021-09-15 16:07:43 -04:00
Rijk van Zanten
fb53ae6980 Don't flush schema cache on content update (#8056) 2021-09-15 15:46:12 -04:00
renovate[bot]
13b92f86f3 Update dependency @types/object-hash to v2.2.1 (#8046) 2021-09-15 14:08:13 -04:00
Rijk van Zanten
d750c7ebc4 Move module setup to Project Settings (#8012)
* Move module bar setup to project settings

* Add system modules interface to dnd configure module bar

* Cleanup order

* Crucially important typo

* Add ability to add custom links

* Show correct initial value marker
2021-09-14 18:07:46 -04:00
Nicola Krumschmidt
2f319d4f24 Fix start script (#8024) 2021-09-14 12:00:26 -04:00
rijkvanzanten
b03a898ca1 Fix cli start 2021-09-14 10:52:07 -04:00
renovate[bot]
f31f46d42d Update dependency @types/sharp to v0.29.2 (#8025)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-14 10:07:51 -04:00
rijkvanzanten
9b210ed597 Move startServer to server.ts 2021-09-13 17:48:36 -04:00
renovate[bot]
850620005f Pin dependency @types/deep-diff to 1.0.1 (#8011)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-13 17:22:54 -04:00
Rijk van Zanten
ce104b6a9c Add native schema migration capabilities (#7939)
* Add snapshot creation command

* Read and start diffing snapshot

* Add apply snapshot functionality

* Fix cli invocation

* Add log messages

* Fix duplicated if check

* Add (minimal) docs on schema migrations

* Fix missing import

* Update api/src/utils/apply-snapshot.ts

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>

* Appease to Nicola's programming professor

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
2021-09-13 17:15:04 -04:00
Nicola Krumschmidt
3e7d00982f Replace require.main check with start script (#8005) 2021-09-13 16:31:21 -04:00
Nicola Krumschmidt
b7779b7b48 Fix type issue in getCacheKey (#8008) 2021-09-13 16:09:17 -04:00
Azri Kahar
e29d803abe Align memcached configurations for multiple hosts (#7986)
* align memcached configurations for multiple hosts

* update reference
2021-09-13 12:48:26 -04:00
renovate[bot]
0fd26d9597 Update dependency @types/object-hash to v2.2.0 (#7997)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-13 12:34:34 -04:00
Nicola Krumschmidt
727947b72d Fix CLI not executing any command (#7992)
Fixes a regression introduced in #7675
2021-09-13 12:32:15 -04:00
renovate[bot]
a1eae036e9 Update jest monorepo to v27.2.0 (#7989)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-13 11:37:17 -04:00
renovate[bot]
8063dda2c7 Update dependency typescript to v4.4.3 (#7973)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-10 18:30:56 -04:00
Azri Kahar
0575cb4836 Add custom JWTs support for static token (#7830)
* add support for custom JWTs as static token

* check issuer during jwt.verify in authentication

* add issuer in JWTs for pwd resets & user invites
2021-09-09 14:47:28 -04:00
renovate[bot]
e2606afbad Update dependency @types/sharp to v0.29.1 (#7944)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-09 14:07:10 -04:00
Azri Kahar
3b16686180 add spatial_ref_sys as default for DB_EXCLUDE_TABLES (#7923) 2021-09-08 12:17:56 -04:00
renovate[bot]
91227b68a5 Update jest monorepo to v27.1.1 (#7912)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-08 12:03:37 -04:00
Nicola Krumschmidt
c89b694324 Fix the collections column in directus_webhooks being nullable (#7910) 2021-09-08 11:44:34 -04:00
Oreille
86a5a5087d Fix basemap tileSize condition (#7921)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-09-08 11:39:46 -04:00
Oreille
f28a052974 Add tileSize parameter to basemap options (#7918)
* Added tileSize parameter to basemap options

* Fix blurry icon in map interface.
2021-09-08 10:37:14 -04:00
Sam Milledge
7186c4e381 Allow custom CLI commands to be added by extensions (#7675)
* Fix typescript errors in shared package

* Hooks for adding custom CLI commands

* Add CLI hooks to documentation
2021-09-07 16:18:16 -04:00
renovate[bot]
641470bd54 Update dependency @types/sharp to v0.29.0 (#7896)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 16:15:46 -04:00
Sam Milledge
3b7be6282b Add ability to customise database errors (#7833)
* Add hook for database errors

* Handle multiple returned values

* Add db error hook dosc

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-07 16:00:26 -04:00
renovate[bot]
78fc1308a6 Update dependency @types/inquirer to v8 (#7868)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 15:55:36 -04:00
Oreille
2895d50d32 Use node promisify. (#7841) 2021-09-07 15:53:52 -04:00
Tony DevOps
eaa97a9272 Make Argon2.hash parameters configurable to allow for stronger user password hashes. (#7755)
* 1.  Create generatePasswordHash util function to standardize how user
        passwords are hashed throughout the API instead of directly calling
        argon2.hash directly;
    2.  Add configuration parameters to modify the behavior of the argon2.hash
        function used for generating user password hashes;
    3.  Add docs and placeholders in api/example.env for new parameters;
    4.  Update argon2 to latest release.

* Also update CLI init command to call generatePasswordHash vs. calling argon2.hash directly.

* docs: sdk auth.password.request url argument (#7757)

* Show a warning if PostGIS is missing (#7759)

* Show a warning if PostGIS is missing

* Remove sqlite-extensions flag

* Remove unused import

* Update WYSIWYG styling

* translations: fix user.status_invited (#7760)

* New Crowdin updates (#7739)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* Fix postgis check

* Fix branch emitter logic from grand-to-child (#7763)

* New Crowdin updates (#7762)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Slovenian)

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

* New translations en-US.yaml (French)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Hungarian)

* Fix tree-select not allowing groups to be opened in selection mode

* Optimize tree-select open state

* Warn the user when a collapsed group field had an error (#7738)

* warn the user when a collapsed group field had an error

* Replace icon

* Reduce icon size

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

* New translations en-US.yaml (Hungarian) (#7764)

* fix WYSIWYG field focus event (#7756)

* Update vue monorepo to v3.2.7 (#7766)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Fix hash link in docs module (#7768)

* Update dependency knex-schema-inspector to v1.6.0 (#7769)

* Use OpenMapTiles font instead of ArcGIS (#7780)

* tiny rewrite in docs/reference/filter-rules (#7771)

* Update dependency sass to v1.39.0 (#7770)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Expose logger through ExtensionContext (#7777)

Fixes #7737.

* Fixes bug when trying to edit geometry in code interface. (#7778)

* Update vue monorepo to v3.2.8 (#7785)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency npm to v7.22.0 (#7786)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Improve card selection styling (#7787)

* Add environment variable to force-exclude tables from Directus (#7789)

* New Crowdin updates (#7765)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Polish)

* v9.0.0-rc.92

* Update changelog.md

* 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>

* Fix WYSIWYG field not being cleared after "Save and Create New" (#7754)

* fix WYSIWYG field not being cleared

* return empty string when null for tinymce

* Update app/src/components/v-form/form-field.vue

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

* fix wrong icon (#7800)

* fix false is proper value (#7796)

* Fix incorrect database exclude tables environment variable in docs. (#7798)

* Datetime interface "Set to now" sets seconds to 0 (#7794)

When "Include seconds" is disabled.

Fixes #7779

* Use https for openmaptiles fonts. (#7801)

* fix type for deep query with underscore prefix (#7815)

* Map selection behaviour (#7811)

* Use https for openmaptiles fonts.

* Changed map selection behaviour: replace instead of adding them by default.

* Fix map interface controls not showing (#7812)

* Fix return error for GraphQL mutations (#7814)

* 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

* Update dependency pinia to v2.0.0-rc.7 (#7817)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update modules.md (#7795)

* make csv imports try to parse values to json (#7820)

* fix minor typo in api-hooks.md (#7821)

* Update dependency knex to v0.95.11 (#7819)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Rename hash utils file/function to be not password-specific, update all calls to argon2.hash to use the new function, update docs.

* 1.  Create generatePasswordHash util function to standardize how user
        passwords are hashed throughout the API instead of directly calling
        argon2.hash directly;
    2.  Add configuration parameters to modify the behavior of the argon2.hash
        function used for generating user password hashes;
    3.  Add docs and placeholders in api/example.env for new parameters;
    4.  Update argon2 to latest release.

* Also update CLI init command to call generatePasswordHash vs. calling argon2.hash directly.

* Rename hash utils file/function to be not password-specific, update all calls to argon2.hash to use the new function, update docs.

* Preserve old behavior of hash function in PayloadService, in case 'value' is not a String.

* Tweak docs

Co-authored-by: José Varela <joselcvarela@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Ben Haynes <ben@directus.io>
Co-authored-by: Nitwel <nitwel@arcor.de>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oreille <33065839+Oreilles@users.noreply.github.com>
Co-authored-by: mikhail sergienko <mikhail.sergienko@gmail.com>
Co-authored-by: Dieter Luypaert <dieterluypaert@gmail.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
Co-authored-by: Sam Milledge <sam@sammilledge.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Harun Kilic <harunkilic@live.dk>
2021-09-07 15:21:59 -04:00
mooori
88b81908a4 fix default of env var EMAIL_MAILGUN_HOST (#7847)
nodemailer uses `dns.resolve()` for dns resolution as described [here](https://nodemailer.com/smtp/). Hence, `host` should not include a scheme.
2021-09-07 15:04:21 -04:00
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