Commit Graph

8615 Commits

Author SHA1 Message Date
Azri Kahar
460f0ba003 Fix alias (#12826)
* fix alias

* minor clean up

* fix graphql nested junction aliases
2022-04-19 10:19:49 -04:00
rijkvanzanten
5cce44fa05 Remove deadlink 2022-04-18 19:12:07 -04:00
Rijk van Zanten
0a315dcf74 Fix related primary key lookup in list-m2m (#12840)
* Fix related primary key lookup in list-m2m

Fixes #12836

* Apply the same fix for m2a
2022-04-18 19:11:30 -04:00
Rijk van Zanten
986bd51759 Don't save directus_revisions row for empty delta (#12839)
Fixes #12838
2022-04-18 22:54:19 +00:00
Rijk van Zanten
7dd8e8a6a9 Support jsonb in count() (#12835)
* Support jsonb in count()

Fixes #12779

* Flip check

The expected path is json rather than jsonb, so it feels like the safer default
2022-04-18 15:16:57 -04:00
Rijk van Zanten
3410771bce Fix width detection when using mixed hidden fields (#12834)
* Use correct previous visible field when calculating width

Fixes #12815

* Fix order of system filter
2022-04-18 14:31:19 -04:00
Rijk van Zanten
982a7836f2 Scope not null in subquery (#12833)
Fixes #12803
2022-04-18 13:21:29 -04:00
Nitwel
303e192a05 fix update fetchedItems on every param change (#12832) 2022-04-18 17:08:06 +00:00
Rijk van Zanten
f4238232b2 New translations en-US.yaml (Danish) (#12829) 2022-04-18 16:18:09 +00:00
Rijk van Zanten
c67c1f7301 New translations en-US.yaml (Danish) (#12828) 2022-04-18 15:52:01 +00:00
Rijk van Zanten
ac2f117cdd New translations en-US.yaml (Danish) (#12827) 2022-04-18 15:18:43 +00:00
Rijk van Zanten
74fbba5c3b Fix casting of duplication fields (#12824)
Fixes #12555
2022-04-18 10:39:41 -04:00
Azri Kahar
6298b9e995 Prevent stale filter value when switching maps (#12797) 2022-04-18 10:23:23 -04:00
Nitwel
bbd5676b7c Show pagination on readonly (#12800)
* show pagination on readonly

* allow to preview disabled items
2022-04-18 10:18:30 -04:00
Nitwel
3db1fff840 fix uploading new files not working (#12821) 2022-04-18 10:16:49 -04:00
rijkvanzanten
14d8338403 Fix linter warning 2022-04-18 10:16:23 -04:00
Rijk van Zanten
518d14607d Tweak default sizing of roles, enable resize (#12822)
* Tweak default sizing of roles, enable resize

Implements #12816

* Use v-text-overflow for role name

* Use text overflow for description as well
2022-04-18 10:13:54 -04:00
Nitwel
e57718dde5 fix itemId being null (#12799) 2022-04-18 15:38:55 +02:00
Rijk van Zanten
69d40af5b3 New translations en-US.yaml (Polish) (#12811) 2022-04-17 13:54:21 +00:00
Rijk van Zanten
ae83412bb6 New translations en-US.yaml (Polish) (#12807) 2022-04-17 09:41:56 +00:00
Rijk van Zanten
a9558147ea New translations en-US.yaml (Polish) (#12806) 2022-04-17 09:16:47 +00:00
Rijk van Zanten
47f510545d New translations en-US.yaml (Bulgarian) (#12798) 2022-04-16 08:49:33 +00:00
Rijk van Zanten
d8b81f07c7 Throw 400 on file upload with missing filename (#12785)
Fixes #8101
2022-04-15 17:36:42 -04:00
rijkvanzanten
c0c32a9e99 v9.9.0 2022-04-15 14:38:25 -04:00
rijkvanzanten
fb252ca4ce v9.9.0 v9.9.0 2022-04-15 14:26:54 -04:00
Rijk van Zanten
32102d5a5c New Crowdin updates (#12781)
* New translations en-US.yaml (Spanish, Chile)

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

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Bulgarian)

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

* New translations en-US.yaml (Italian)
2022-04-15 17:41:48 +00:00
Azri Kahar
953eb99eb3 Fix schema apply for changes in field meta options & display_options (#12712)
* Fix schema apply for changes in field meta options

* take display_options into account

* check changes in meta in general
2022-04-15 13:27:47 -04:00
Jay Cammarano
763a993bca Insights translations (#12780)
* insights translations

* piechart translations

* meter trans

* kanban trans
2022-04-15 13:27:13 -04:00
Rijk van Zanten
52f61ad60f New translations en-US.yaml (Bulgarian) (#12777) 2022-04-15 12:35:23 +00:00
Rijk van Zanten
dc9f1988e0 New translations en-US.yaml (Chinese Simplified) (#12775) 2022-04-15 03:24:07 +00:00
Rijk van Zanten
91d8f2687f New translations en-US.yaml (Norwegian) (#12773) 2022-04-14 21:55:05 +00:00
Nitwel
3e1fce8968 Relational Interfaces Rework 🐰🕳️ (#12082)
* add basic util function for later use

* sketch up useRelationMultiple implementation

* update relation util and start reworking relational interfaces

* support filter in m2o

* start working on useRelationMultiple

* continue working on relational foundation

* finish basic use-relation-multiple composable

* get o2m pretty close to being finished

* finish up list-o2m

* replace old interfaces

* copy existing interface

* rewrite vue file

* highlight deleted items

* use Search instead of Get

* support selection on m2m

* finish up m2m

* replace old files

* update files interface

* fix permission checks

* fix styling

* add sketches to explain relations

* rewrite m2a interface

* add usage hint to use-relation-multiple

* update file interface to use new composable

* update file-image interface

* fix image not being shown

* revert names

* fix selection of existing items

* fix loading selected items

* in between commit

* update translations interface

* try using composable recursive

* try linear approach on value modeling

* finish rewriting list-o2m-tree-view interface

* revert api changes

* fix sorting for list-o2m-tree-view

* fix selected items in created array

* Add direct download option to files interface

* Fix linter warnings

* Weird that it's being difficult, but ok

* Cast existingItemCount to number at all times

* fix page gets set below 1

* align pagination to the right

* highlight deselecting row

* show min 1 skeleton loader

* only filter selected when item exists

* fix working on new items

* Fix linter warning

* fix deselecting selected items

* show different icon depending if icon is local

* add changes from #12611

* Add _some vs _none support to o2m

* finish filtering out selected items

* Use get instead of search request

* fix save and stay

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

* fix adding items to m2o

* Fix linter warning

* Handle no-type better

* Clean up axios usage

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-04-14 22:57:17 +02:00
rijkvanzanten
1b9f7bf3bc Fix save button on collection detail 2022-04-14 15:43:08 -04:00
keesvanbemmel
d11c59462f Adds x-directus-cache response header with HIT value (#12732)
* Adds x-directus-cache response header with HIT value

* Added ENV var for cache header and MISS, UNCACHEABLE

* Rename CACHE_HEADER_KEY -> CACHE_STATUS_HEADER

Tad opinionated, but I feel like it describes the functionality slightly better

* Return miss consistently

Uncacheable doesn't quite describe what's happening. The user actively requests the cache to be skipped, which should result in an expected miss. The value isn't un-cacheable, the cache is skipped on purpose

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-14 13:42:10 -04:00
Aiden Foxx
fd668647c1 Added default role support to LDAP and allow optional role syncing (#12767)
* Added default role support to LDAP and allow optional role syncing

* Add minimal docs

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-14 11:27:17 -04:00
Rijk van Zanten
8cb1a9bb90 New translations en-US.yaml (Chinese Simplified) (#12764) 2022-04-14 14:27:13 +00:00
Rijk van Zanten
53dfbafa31 New translations en-US.yaml (Chinese Simplified) (#12761) 2022-04-14 13:52:25 +00:00
Rijk van Zanten
80e986aa8a Fix bullet spacing 2022-04-14 09:17:42 -04:00
Rijk van Zanten
e8917e0d1e New translations en-US.yaml (Chinese Simplified) (#12757) 2022-04-14 12:40:14 +00:00
Rijk van Zanten
78dc639260 New translations en-US.yaml (Chinese Simplified) (#12756) 2022-04-14 11:57:44 +00:00
Rijk van Zanten
99e512c95f New translations en-US.yaml (Chinese Simplified) (#12755) 2022-04-14 11:01:24 +00:00
Rijk van Zanten
c177d846cc New translations en-US.yaml (Chinese Simplified) (#12747) 2022-04-14 05:09:52 +00:00
Rijk van Zanten
39fbd62c5d New translations en-US.yaml (Chinese Simplified) (#12746) 2022-04-14 04:37:21 +00:00
Azri Kahar
0dfbc65bad Add copy button to role ID in role permissions page's sidebar detail (#12706)
* refactor to useClipboard composable

* add copy button to role permissions page
2022-04-13 17:56:29 -04:00
Nick Olszanski
360d5b64f5 add Last-Modified header to /assets/* responses (#12231)
* add `Last-Modified` header to `/assets/*` responses

only affects assets with a valid `modified_on` DB field

* update docs about `Last-Modified`

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-13 16:46:34 -04:00
Azri Kahar
513cb7b824 Fix schema apply of UUIDs from SQLite onto other databases (#12723)
* Fix schema apply for UUIDs from SQLite

* simplify the merge a little bit
2022-04-13 15:32:02 -04:00
Rijk van Zanten
6a8ecebda0 Fix icon alignment in db-only tables (#12744) 2022-04-13 15:24:21 -04:00
Rijk van Zanten
c5f2fe54be Hide DB only tables from default nav (#12743)
Implements #12740
2022-04-13 15:15:19 -04:00
Rijk van Zanten
ea3555bd88 Render full field path in system fields interface (#12742)
Fixes #12735
2022-04-13 14:48:53 -04:00
ian
d8cf2bb234 Split filter key to get m2a nested collection name (#12739)
* Split filter key to get m2a nested collection name

* Add the collection field to the required permissions

* Adding required permissions to relational table

* Tidy up code
2022-04-13 14:37:17 -04:00