Commit Graph

8523 Commits

Author SHA1 Message Date
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
Azri Kahar
4f7abf0733 Default filter operator to eq for field with choices (#12598)
* Default filter to 'eq' for field with choices

* fix function name type
2022-04-06 10:31:59 -04:00
Azri Kahar
f7e651cbe3 Set includeProjectDefault default value to false (#12601) 2022-04-06 10:07:56 -04:00
Azri Kahar
accb5a20e3 Add autofocus prop to input translated string (#12596) 2022-04-06 09:26:10 -04:00
Azri Kahar
17edc01f6f Prevent boolean as string when switching filter (#12597) 2022-04-06 09:25:00 -04:00
AntoineBarroux
b4538ca7a3 adding possibility to update another field value from a custom interface (#11620)
*  adding possibility to update another field value from a custom interface

* Rename fieldName->fieldKey for consistency

Co-authored-by: Antoine Barroux <antoine.barroux@liksi.fr>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-06 09:20:11 -04:00
Rijk van Zanten
c2cd010eec New Crowdin updates (#12594)
* New translations en-US.yaml (Polish)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (French, Canada)
2022-04-05 21:32:30 +00:00
Markus
d814502355 Fix repeater interface (#12592)
Adding items was not possible if value was no array
2022-04-05 17:27:29 -04:00
Nayan Patel
49d65124f5 Adds one click deploy with koyeb. (#12558) 2022-04-05 11:44:49 -04:00
Jay Cammarano
70f36ac3d3 When no header icon is chosen use the panel types's icon for the default header icon rather than hardcoding "insert_chart" (#12541)
* panelTypeInfo.icon default for header

* migration: +nullable, -defaultTo('insert_chart')

* Rename migration file, use helper to fix oracle etc

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-05 15:29:11 +00:00
Aiden Foxx
26f626d552 Flatmap the oauth profile so we can use sub-values (#12457) 2022-04-05 11:14:49 -04:00
Gerard Lamusse
14f7a232aa Disable fields that are groups to be selected in field list (#12539)
* By default disable fields that are groups to be selected in field list, since they anyways can't be filtered on.

* Don't include functions for group fields.
Refactor FieldInfo to extend already defined FieldNode type

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-05 11:11:54 -04:00
Azri Kahar
93a0369b99 Fix snapshot output (#12579) 2022-04-05 10:51:23 -04:00
Rijk van Zanten
1937231c8f New translations en-US.yaml (Portuguese, Brazilian) (#12586) 2022-04-05 14:43:14 +00:00
Azri Kahar
d023b36838 Add import file method to SDK (#12575) 2022-04-05 10:39:29 -04:00
Rijk van Zanten
8ee9194dea Update bug_report.yml 2022-04-05 09:54:03 -04:00
Rijk van Zanten
6392f9428c Update bug_report.yml 2022-04-05 09:53:42 -04:00
Rijk van Zanten
fff3201c4a Update bug_report.yml 2022-04-05 09:53:12 -04:00
Azri Kahar
d6644eb738 fix batch editing for fields in groups (#12582) 2022-04-05 09:50:49 -04:00
Azri Kahar
67c37ae11c Add count function in docs (#12576)
* Add `count` function in docs

* Rename relational to array functions

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-05 09:43:51 -04:00
Wryn (yage) Wagner
0930c2df97 Safe Metadata Upload (#12511)
* [Related to #11292] Safe Metadata Upload
- Created FILE_METADATA_ALLOWLIST
- Added test library for `FilesService`

* Rename ALLOWLIST->ALLOW_LIST to be consistent with other env vars

* Make sure it still works for files without Exif

* Prevent breaking changes in metadata formatting

* Allow * for all

* Fix md sup

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-04 20:43:56 -04:00
Rijk van Zanten
9d9bcf9309 New translations en-US.yaml (French) (#12571) 2022-04-04 20:00:36 +00:00
Rijk van Zanten
e3c2eca04b New translations en-US.yaml (German) (#12570) 2022-04-04 18:58:19 +00:00
Rijk van Zanten
429a7a6a5e New translations en-US.yaml (German) (#12569) 2022-04-04 18:27:25 +00:00
Eron Donevan Powell
3d9e325048 Docs: Data Sharing (#11579)
* .gitignored package-lock.json that was created in the docs subfolder

* Initial Data Shares Draft

* Finished copy of first, unedited draft

* added static images

* more copy polish and videos

* polished, awaiting comments

* added Ben's awesome edits

* added new media content and copy tweaks

* fixed broken link

* Update docs/app/data-sharing.md

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

* Update docs/app/data-sharing.md

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

* Update docs/app/data-sharing.md

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

* Update docs/app/data-sharing.md

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

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-04 10:30:47 -04:00
Azri Kahar
d0b0818cca Return 401 status code for expired tokens (#12281)
* Refresh token when it's expired & retry request

* move refresh token interceptor in autoRefresh flag

* add TOKEN_EXPIRED exception

* update interceptor condition & fix autoRefreshJob

* update docs

* revert auth drivers changes

* remove unused imports

* undo sdk auth refresh changes
2022-04-04 09:23:28 -04:00
Aiden Foxx
4cb8e8f0ca Always try to rebind on healthcheck error (#12532)
* Always attempt rebind on LDAP healthcheck error

* Fix linting error

* Update api/src/auth/drivers/ldap.ts
2022-04-04 09:17:06 -04:00
Azri Kahar
703fb8426f Fix app lint warnings (#12552) 2022-04-04 03:53:02 +00:00
Rijk van Zanten
33c379a912 New translations en-US.yaml (Ukrainian) (#12546) 2022-04-02 19:20:55 +00:00
Rijk van Zanten
2f7dbbd1c0 New translations en-US.yaml (Ukrainian) (#12545) 2022-04-02 18:50:27 +00:00
Rijk van Zanten
e3bcfa33e0 New translations en-US.yaml (Ukrainian) (#12544) 2022-04-02 18:05:05 +00:00
Rijk van Zanten
765d2e0ba4 New Crowdin updates (#12537)
* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Polish)
2022-04-02 13:05:17 +00:00