Commit Graph

8554 Commits

Author SHA1 Message Date
Lukas Breitstadt
09d9b4b323 Await when token is refreshing & reinstate msRefreshBeforeExpires flag (#12649) 2022-04-12 07:52:33 -04:00
Azri Kahar
7b0de4eb9b Fix primitive values for JSON code input (#12703) 2022-04-12 07:50:56 -04:00
Azri Kahar
48ae9f870f Reset existing image error after replacing it (#12697) 2022-04-12 07:33:43 -04:00
Rijk van Zanten
41f59f9b7e New translations en-US.yaml (Spanish) (#12701) 2022-04-12 09:17:33 +00:00
Rijk van Zanten
75e0fe643f New translations en-US.yaml (Spanish) (#12700) 2022-04-12 08:47:00 +00:00
Rijk van Zanten
bdb35d13a4 New translations en-US.yaml (Spanish) (#12698) 2022-04-12 08:11:53 +00:00
Rijk van Zanten
4c4d5e96e1 New translations en-US.yaml (Spanish) (#12696) 2022-04-12 07:25:14 +00:00
Rijk van Zanten
3d11cd05c8 New translations en-US.yaml (Portuguese, Brazilian) (#12695) 2022-04-12 03:53:01 +00:00
Rijk van Zanten
c1ac67a7b6 New translations en-US.yaml (Portuguese, Brazilian) (#12694) 2022-04-12 03:23:52 +00:00
Rijk van Zanten
279d773ee2 New translations en-US.yaml (Malay) (#12693) 2022-04-12 02:30:38 +00:00
Rijk van Zanten
9c3ac3eb62 Don't crash on non-image files in image interface (#12692)
Fixes #10475
2022-04-11 19:49:04 -04:00
Nitwel
cf56ff0e0a Fix not being able to close groups (#11437)
* fix not being able to close groups

* search top most level checkboxes

* Fix casing of file name

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-11 19:15:12 -04:00
Rijk van Zanten
38c24e5a58 Fix inline overflow of formatted value display in cards layout (#12690)
Fixes #11270
2022-04-11 18:27:39 -04:00
Rijk van Zanten
f89aa95140 Re-style file detail preview + replace interaction (#12689)
* Return BigIntegers as Strings in GraphQL

Fixes #12051

* Redesign fallback image style

* Re-add replace button in new position
2022-04-11 18:24:12 -04:00
Rijk van Zanten
f92fb0762f Return BigIntegers as Strings in GraphQL (#12688)
Fixes #12051
2022-04-11 16:57:21 -04:00
Azri Kahar
8a3ca353b6 Fix expressions/functions as default values for datetime field (#12052)
* prevent formatting invalid date/time

* fix placeholder

* indicate default value as placeholder when valid

* assume default value as a valid function

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-04-11 20:36:56 +00:00
Rijk van Zanten
7bbad9a444 Add support for translatable bookmark names (#12687)
* Add support for translatable bookmark names

* Remove unused imports

* Remove even more unused imports
2022-04-11 20:28:49 +00:00
Rijk van Zanten
49f97dfdd4 Only add update_me permissions for logged in users (#12685)
Fixes #12256
2022-04-11 15:39:21 -04:00
rijkvanzanten
56963faca9 Default users last_access to readonly
Ref #12655
2022-04-11 15:19:18 -04:00
Rijk van Zanten
a117e5b65f Add count fn support to gql (#12684) 2022-04-11 14:58:32 -04:00
rijkvanzanten
029a66ef31 Add note on SDK requestOptions usage
Fixes #12628
2022-04-11 12:31:34 -04:00
Azri Kahar
095e7665d4 add citext as a supported local type (#12670) 2022-04-11 12:24:03 -04:00
Rijk van Zanten
e3f3d7e3b2 Throw payload error when using file upload without providing a file (#12682)
* Throw error on file upload if the number of uploaded files is 0

Fixes #12678

* Add unit test

* Mock env

* Fix mocks
2022-04-11 12:04:45 -04:00
Rijk van Zanten
054df5af97 New translations en-US.yaml (Italian) (#12681) 2022-04-11 14:47:47 +00:00
ian
28fe1b243f Cast to number for joi between (#12666)
* Cast to number for joi between

* Fix between range as inclusive

* Update unit test
2022-04-11 09:50:07 -04:00
rijkvanzanten
7c36fa42a6 Add missing reference for user object
Fixes #12669
2022-04-11 09:36:52 -04:00
Rijk van Zanten
985605b356 New translations en-US.yaml (Hungarian) (#12668) 2022-04-10 11:12:30 +00:00
Rijk van Zanten
bc6be570a7 New translations en-US.yaml (Hungarian) (#12667) 2022-04-10 10:31:28 +00:00
Azri Kahar
835d7e425d add missing query parameters in SDK (#12632)
* add missing query parameters in SDK

* add @directus/shared as dependency

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-08 11:43:17 -04:00
Rijk van Zanten
ce5c8214a3 New translations en-US.yaml (Polish) (#12645) 2022-04-08 15:07:54 +00:00
Rijk van Zanten
f20e4077be New Crowdin updates (#12642)
* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Ukrainian)
2022-04-08 14:06:31 +00:00
Rijk van Zanten
02a01fa0c9 Align section label between layouts (#12641)
Fixes #12627
2022-04-08 10:02:24 -04:00
Azri Kahar
e0ce9e38f2 fix M2M and M2A drawer item validation (#12629) 2022-04-08 09:49:24 -04:00
Azri Kahar
f854109e23 Fix M2A editing of new but unsaved items (#12630)
* Fix M2A editing of new but unsaved items

* fix key
2022-04-08 09:23:25 -04:00
Rijk van Zanten
069e5eae16 New translations en-US.yaml (Ukrainian) (#12624) 2022-04-07 20:21:41 +00:00
Rijk van Zanten
7411b29efc New translations en-US.yaml (Polish) (#12621) 2022-04-07 14:56:06 +00:00
Rijk van Zanten
24cb714344 New translations en-US.yaml (Polish) (#12619) 2022-04-07 13:42:38 +00:00
Azri Kahar
fab5543e33 Add first day of the week option to calendar (#12613) 2022-04-07 09:38:39 -04:00
ian
18d872a003 Merge permission's validation only when not empty (#12615) 2022-04-07 09:11:32 -04:00
Azri Kahar
948e25d496 Check create & update permissions for M2O field (#12611)
* check create & update perms for m2o field

* remove unused imports
2022-04-07 08:57:02 -04:00
Rijk van Zanten
6f3c3d1fab New translations en-US.yaml (Chinese Simplified) (#12614) 2022-04-07 09:28:18 +00:00
ian
68066eccb7 Remove UTC conversion from date, time and datetime fields (#10956)
* Remove UTC conversion from date, time and datetime fields

* Fix mysql / maria timestamps when not in UTC timezone

* Add sequential tests with node timezone change

* Increase connection attempt check

* Add error catching in tests flow setup

* Check for server connectivity

* Fix promises

* Fix timestamp inconsistencies

* Revert to previously used parseISO

* Ensure database and directus connection

* Add another timezone to test positive and negative GMT

* Set local server hostname to localhost

* Add tests for SQLite

* Use notNullable primary key

* Revert connection testing sleep duration

* Fix nested transactions on SQLite

* Increase MSSQL request timeout

* Add type override flag for SQLite

* Remove commented code

* Add type override flags for Oracle

* Updated test file path

* Increase test servers launch timeout

* Increase test servers launch timeout

* Update format of tests

* Fix typo

* Increase test timeout for CockroachDB

* Add type overrides when creating fields through collections service

* Remove time field type conversion for Oracle

* Update collections list in test

* Remove check for time field in Oracle

* Add missing continue...

* Remove database override

* Add note for SQLite

* Rename flags and extract shared util

* Abstract remaining DB specific checks

* Revert flags renaming except renaming of test files

* Use date helper to add field flag

* Move field date typecasting upstream

* Use timestamp helper for date-created and date-updated

* Fix tests

* Remove unused vars

* Add tests for date-created

* Increase connection attempt count

* Fix test for mariadb

* Increase allowable difference to account for delays

* Add tests for date-updated

* Fix tests again for mariadb

* Add date helpers post merge

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-06 16:15:22 -04:00
Rijk van Zanten
f8fceb98e9 New translations en-US.yaml (Polish) (#12610) 2022-04-06 19:08:28 +00:00
Rijk van Zanten
f9457f5bdf Upgrade sharp (#12609)
Fixes #12440
2022-04-06 12:11:17 -04:00
Timm Wimmers
da133f093b docker - disable npm update warnings (#12547)
Co-authored-by: Timm Wimmers <wimmers@poprocket.com>
2022-04-06 11:38:48 -04:00
Azri Kahar
25d398159c fix field names in groups for validation errors (#12553) 2022-04-06 11:31:37 -04:00
ian
307cef8f5e Add permissions check for relational field only if child has filter (#12549)
* Add permissions check for relational field only if child has filter

* Allow id field for actions such as update and delete

* Use primary key instead of id

* Add test
2022-04-06 11:30:50 -04:00
ian
63f5b037d6 Fix export sidebar without read permission for primary key (#12608)
* Fix app crash onload without read permission for primary key

* Fix equality check when limit matches itemCount
2022-04-06 11:16:56 -04:00
ian
c6736c4f19 Fix access to count(*) aggregation (#12607) 2022-04-06 11:14:51 -04:00
Azri Kahar
2f0921ffa9 Prevent empty string as id in SDK (#12595)
* Prevent empty string as id in SDK

* test
2022-04-06 10:42:29 -04:00