9200 Commits

Author SHA1 Message Date
rijkvanzanten
0890bfc9a5 Update docs v9.14.2 2022-07-21 15:23:25 -04:00
rijkvanzanten
6d1e5b3432 v9.14.2 2022-07-21 15:17:56 -04:00
ian
9f9ef45846 Disable foreign check on SQLite when deleting fields (#14512)
* Disable foreign check on SQLite when deleting fields

* Add default on_delete constraint

* Add test

* Rename methods

* Fix test sequence
2022-07-21 14:44:05 -04:00
ian
8d9991abe3 Process relational collection's permissions in functions (#13870)
* Process relational collection's permissions in functions

* Fix deep usage of functions in GraphQL

* Add unit test for updated SQL query with permissions

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-21 14:42:22 -04:00
Brainslug
8bc098c337 Conditions not working (partially) (#14488)
* changed way of storing the formfield data in v-form

* hacky translation implementation

* updated translations without bombing the performance

* removed debug code and refactored initial implementation

* removed redundant useFormFields in users route

* making proper use of useFormField results to not break the grid layout

* removed limitation for conditions

* Fix selection of foreign keys for value field in time series panel

* Revert "removed redundant useFormFields in users route"

This reverts commit c6f4f23cf8.

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-21 14:39:43 -04:00
ian
40d71f309b Fix filter column aliasing (#14423)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-21 14:37:08 -04:00
Rijk van Zanten
600f55e4a2 Resolve lintw arnings (#14555) 2022-07-21 12:44:16 -04:00
Boris
572952b605 Fix the preview not being updated after editing the image (#14511)
* Fetch latest changes and make the refresh function async

* Make the image-editor refresh call cleaner

* add missing await
2022-07-21 11:58:49 -04:00
rijkvanzanten
141501ac66 Fix pk typing 2022-07-21 11:50:21 -04:00
rijkvanzanten
ab36a31e29 Remove warnings re revisions sidebar detail 2022-07-21 10:55:27 -04:00
Rijk van Zanten
73b30190cb New translations en-US.yaml (Russian) (#14552) 2022-07-21 14:36:40 +00:00
Rijk van Zanten
aa24522a3b New translations en-US.yaml (Italian) (#14551) 2022-07-21 12:43:58 +00:00
Ian Pirro
23912e5232 Fix: Error applying schemas with nested collection(s) (#13949)
* Fix nested collection creation when parent exists

* tests

* desc | comments

* typo

* minor tweak

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-07-21 15:29:12 +08:00
Rijk van Zanten
53168f75ad New translations en-US.yaml (Italian) (#14545) 2022-07-20 21:31:56 +00:00
Rijk van Zanten
b6a0f0b216 Fix map layout not rendering items on search (#14543)
Fixes #13941
2022-07-20 17:17:33 -04:00
Rijk van Zanten
353d01d620 Fix singleton navigation temporarily using wrong ID (#14542)
* Convert content/items.vue to script[setup]

* Don't rely on outdated primary key while loading in singleton navigation

Fixes #13856
2022-07-20 17:08:48 -04:00
Rijk van Zanten
5719d1dceb Select multiple dropdown preview threshold (#14541)
* Allow specify custom preview threshold for select-multiple-dropdown

* Move to advanced options

Co-authored-by: Tien Tran <tien@transfamily.info>
2022-07-20 16:54:03 -04:00
Danilo Polani
8b116f6deb Add "security" commands to api CLI (#9400)
* add command to generate app key

* add command to generate secret

* group security commands under the security group

* add new security commands to cli docs

* add disclaimer on deploy secret generation

* remove duplicate hubspot embed code

* remove .env overwrite feature to security commands

* update the cli docs for security commands

* return key generation directly in output

* restore package-lock.json

* Write secret directly

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-20 16:44:35 -04:00
Rijk van Zanten
931a7bde46 Add missing _between/_nbetween filter operators to GQL (#14540)
Fixes #13782
2022-07-20 16:42:59 -04:00
Rijk van Zanten
bccb4db791 Don't render explicit null values in md custom blocks (#14539)
Fixes #14383
2022-07-20 16:37:45 -04:00
Rijk van Zanten
232e8e13d5 Add max height to folder picker (#14538)
Fixes #14399
2022-07-20 16:33:14 -04:00
Rijk van Zanten
eba0a8dd97 Don't disable distinct count based on integer type (#14537)
Fixes #14420
2022-07-20 16:28:00 -04:00
Rijk van Zanten
c9a9fb7a8b Default auth provider to first configured one if default is disabled (#14536)
Fixes #14428
2022-07-20 16:25:29 -04:00
rijkvanzanten
5c85bfdfe7 Fix wrong check 2022-07-20 16:10:12 -04:00
Gerard Lamusse
7d71f1f693 Improve extension create onboarding (#14475)
* Improve extension create onboarding

* Remove proprietary message

* Undo dist change

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-20 16:06:48 -04:00
Jay Cammarano
820457690f Optimize media loading across app (#10592)
* v-image and "lazy load" working

* fixed vars

* all the other img uses

* No longer require access token in url for files

* Add lazy loading and size limits

* Rename map-component source prop

* Fix lint warning

* Update app/src/views/public/public-view.vue

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

* Fix lint

* Fix missing file type icon

* Fix null imageInfo error

* Use video.js for media playback

* Fix .js file display

* Update package-lock.json

* Update package-lock.json

* update package.json

* Update pnpm-lock.yaml

* Remove unrelated addition on VDatePicker

* Remove folder abstraction

* Use image data based aspect ratio on preview

* Base app rate throttle on API rate limit config

* Configure app rate limit throttle based on api config

* Convert v-image to script[setup]

* Convert v-media to script[setup]

* Cleanup v-media

* Remove unneeded addTokenToUrl usages

* Remove video.js

It doesn't do authorization headers for mp4/mp3, so it's pointless

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2022-07-20 15:52:38 -04:00
ian
9d738d12ce Fix incorrect cancel workflow version (#14533) 2022-07-20 13:05:43 -04:00
Rijk van Zanten
254ba38a5a Skip disabled field check when using set-field-value event (#14532)
Fixes #14531
2022-07-20 11:31:49 -04:00
Rijk van Zanten
e63747daf8 Fix M2A filter scope on select existing (#14530)
* Fix list animation in m2a

* Add missing collection scope to m2a selection filter

Fixes #13598
2022-07-20 11:27:01 -04:00
ian
bcb33a798b Cancel all previous workflows in the branch (#14525) 2022-07-20 10:42:14 -04:00
Rijk van Zanten
1013aa7838 New translations en-US.yaml (Arabic) (#14521) 2022-07-19 23:11:39 +00:00
José Varela
f7a8c36ee6 Do not try to convert Dates (considered an object) (#14520) 2022-07-19 17:54:14 -04:00
Clayton Gulick
ec77b0a203 Enable extensions cache (#14499)
* enable caching for extension assets with ASSETS_CACHE_TTL setting

* simplify implementation
2022-07-19 11:51:32 -04:00
Azri Kahar
f9826afd87 Fix apply snapshot for UUID primary keys (#14506)
* fix apply snapshot for char to uuid primary keys

* account for is_primary_key
2022-07-19 11:24:34 -04:00
Christopher Kapic
090671ea1e Update Knex version to fix CockroachDB relationships showing multiple times (#14509)
* update knex version

* Update all knex uses

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-19 10:44:14 -04:00
ian
3770661bde Run blackbox tests when updated (#14484)
* Run blackbox tests when updated

* Run tests when dependencies are updated
2022-07-18 11:55:33 -04:00
Rijk van Zanten
e6e3b597fe New translations en-US.yaml (Italian) (#14490) 2022-07-18 12:45:32 +00:00
Rijk van Zanten
31a217595c New translations en-US.yaml (Chinese Simplified) (#14471) 2022-07-16 05:22:15 +00:00
Rijk van Zanten
27cc3e1bec Move repo to pnpm based workflow (#14350)
* Use pnpm instead of npm

* Setup workspace

* Replace scripts / lerna root stuff

* Add todo file

* Update lock, start updating packages

* Update todo

* [WIP] Keep going on module resolution in pnpm

* Fix final missing deps/types for complete build

* [WIP] Replace npm commands with pnpm alternatives

* Update jest config for v28

* Fix missing package under schema

* Update workflow

* Run CI on fork

* Use local reference

* Remove version from local workflow

* Add build to prepare

* Add Node's max old space size flag to linter

* Idemdito for codeql

* Hyphens? Underscores?

* Bang

* Only build one thing at a time

* Underscores after all?

* Match 7gb of GH

* Set env on prepare

* Jest is driving me nuts

* Downgrade jest

* Add root jest

* We'll get there, eventually.

* 🥳

* Het houdt niet op, niet vanzelf

* attempt to fix e2e

* fix unit test & shared import

* add `debug: true` to CodeQL action

* Fix dev call in shared

* Add missing cross-env

* Add missing geo-json dependency for app

* add flag to prepare action to skip build

* remove debug flag from codeql action

* fix invalid env syntax

* add tslib to app dependencies for tests

* another attempt

* Added missing rimraf dependency for the api prebuild/cleanup scripts

* Added missing ts-node dependency for the api cli script

* update E2E tests readme to use pnpm

* Undo move of extensions sdk

* Fixes nested groups in accordions not rendering fields (#14369)

* initial fix for nested groups in accordions

* removed debug code

* Fix strict relative dates showing "incorrect" (#14390)

* Set rounding method of relative formatted date to floor when strict option is selected

* Add round fn as an option

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

* Don't use locales in generated camelCased values from env (#14401)

Ref https://github.com/directus/directus/discussions/14122

* Fix list panel descending sort (#14396)

* fix list panel descending sort

* Handle missing or explicit desc value

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

* Fix query primary field for system tables (#14402)

* New Crowdin updates (#14403)

* Update source file en-US.yaml

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

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

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (French, Canada)

* Fix/wysiwyg context menu (#14404)

* New translations en-US.yaml (Polish) (#14407)

* Encoded the url using encodeURIComponent, so that the url gets sanitzed and so, we did not get 404 error. (#14418)

* Encoded the url using encodeURIComponent, so that the url gets sanitized and we did not get 404 error.

* Added required changes as stated by the reviewer

* Used encodeURI instead of encodeURIComponent to encode the params only

* Solved linting error

* Solved linting errors

* checked with npm run lint, no linting errors found

* fix generateJoi error due to empty permissions when creating new role (#14416)

* fix empty permissions when creating new role

* basic test

* move logic up

* additional test

* Update api/tests/utils/filter-items.test.ts

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

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

* Recreate lockfile

* Fix build of extensions-sdk

* Add missing dependency

* Add some more missing deps

* Update blackbox to use pnpm

* Update workflow to use main

* Update pack to work with pnpm

* Simplify commands

* Remove todo file (completed)

* ADd missing types dep

* Use local test version

* Remove version from local reference

* Call super with context

* Add missing dep

* Simplify workflows

Ref https://github.com/directus/organization/issues/135

* Simplify some more

* Linter is on root

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Gerard Lamusse <gerardlamo@gmail.com>
Co-authored-by: José Varela <joselcvarela@gmail.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Zeel Pathak <60271095+zeel-pathak@users.noreply.github.com>
2022-07-15 17:41:49 -04:00
ian
c691c4c7b2 Switch blackbox tests workflow target to core repo (#14461) 2022-07-15 13:19:59 -04:00
José Varela
dc850c115e Use same types as count for countDistinct (#14460) 2022-07-15 13:13:45 -04:00
Rijk van Zanten
4b1854fe29 Update source file en-US.yaml (#14459) 2022-07-15 16:05:17 +00:00
Azri Kahar
9015667d02 Add raw editor toggle for using variables in flows operations (#14021)
* add raw editor for flows operation options

* add comment to explain reasoning for watcher

* add simple raw editor with syntax highlighting

* Add multiline to text fields & hide in json fields

* update input icon for toggle

* do not unset value for text fields

* fix mustache tag value checking

* enable raw editor for Insights

* remove lint warning

* Reduce size + inline icons

* add background-highlight when active toggle

* change multiline prop to type prop

* show toggle for all field types (including json)

* remove watcher to toggle rawEditor on load

* fix raw editor emit

* fix request operation headers field type json

* fix raw editor value passed to codemirror

* prevent tags from crashing

* do not unset values anymore when toggling raw

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-15 11:38:23 -04:00
ian
8d1966ab04 Blackbox testing (#13200)
* Add black box tests

* Revert docker compose file

* Update workflow

* Try use workflow from dev repo

* Increase seedDB() timeout

* Disable other checks for now

* Change DB sequence

* Update jest moduleNameMapper

* Update workflow's docker-compose.yml path

* Slice array first

* Remove differentiation of status code

* Delete field only after foreign key constraints are removed

* Add checks for different types of primary key

* Test global query filter for all field types

* Increase timeout for m2o seeding

* Add case insensitive string operators

* Update filter check to run on relational fields

* Enable time field checks

* Add seeded random and fix relational seeding

* Add casting for integer and bigInteger

* Minor fixes

* Reduce bigInt values

* Separate seeding of DB structure from values

* Add primaryKey seeding function

* Use automatic IDs except for string pk

* Try fix ci

* Update package-lock.json

* Update common.test for concealed user tokens

* Use dynamic field type for m2o.test relational fields

* Temporary disable missing nicontains for string type

* Add support for alias type filtering

* Fix relational filter operator checks

* Add initial o2m test

* Remove integer pk limit

* Add empty checks for string and uuid null

* Limit generated integer value to 4 bytes

* Patch timezone tests for MSSQL

* Remove sample query filter test

* Fix timezone test for sqlite

* Fix MSSQL uuids

* Fix MSSQL timestamp inaccuracy

* Cast datetime schema to milliseconds for comparison

* Fix MySQL / Maria timestamp inaccuracy

* Fix MySQL / Maria between operator inconsistency for float type

* Fix missing time datatype in Oracle

* Skip filter testing on Oracle

* Enable o2m filter tests for other collections

* Run tests only on SQLite for PRs unless the Full Tests label exists

* Try fix actions

* Refactor github actions

* Update tests flow setup to use getURL()

* Start postgres docker

* Reinstate package-lock

* Fix geometry test

* Remove .gitkeep files

* Add todo.md

* Rename black box to blackbox

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-15 15:25:32 +00:00
Rijk van Zanten
f3d3fdf463 New translations en-US.yaml (Polish) (#14455) 2022-07-15 14:09:30 +00:00
Rijk van Zanten
9421e05569 New translations en-US.yaml (Czech) (#14454) 2022-07-15 13:11:40 +00:00
Rijk van Zanten
c46eb51a2e New translations en-US.yaml (Czech) (#14452) 2022-07-15 12:11:17 +00:00
Rijk van Zanten
4d02133192 New translations en-US.yaml (Czech) (#14451) 2022-07-15 11:15:49 +00:00
Rijk van Zanten
15302af98f New translations en-US.yaml (Czech) (#14448) 2022-07-15 08:41:12 +00:00
Rijk van Zanten
557e84dea9 New translations en-US.yaml (Czech) (#14444) 2022-07-15 07:39:00 +00:00