886 Commits

Author SHA1 Message Date
rijkvanzanten
7e9812d04a v9.11.1 2022-05-24 17:50:37 -04:00
Eron Donevan Powell
d46886d5ac Docs: re-edited user-directory + users-roles-permissions (#13424)
* re-edited user-directory and users-roles-permissions

* added Overview
2022-05-24 14:14:46 -04:00
Eron Donevan Powell
e843d1a775 Docs: Display Templates Page (#13494)
* created new display templates page

* first draft complete, should be fully ready to go live
2022-05-24 11:22:34 -04:00
Eron Donevan Powell
bf752856d0 how to work with nested data (#13489) 2022-05-23 14:17:51 -04:00
Eron Donevan Powell
8a63619362 clarified data, schema, and permissions caching (#13486) 2022-05-23 12:27:00 -04:00
Eron Donevan Powell
7af7bb1a8f no composite key support warning added (#13445)
* no composite key support warning added

* Update docs/configuration/data-model.md

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-05-20 10:51:32 -04:00
rijkvanzanten
f52da51925 v9.11.0 2022-05-19 13:09:50 -04:00
Jesper
b2d8b2319a GraphQL count aggregation for all fields and * (#11871)
* GraphQL count aggregation for all fields

Fixes #11792

* Rename countRows to countAll

* moved function to new apply-query folder

Co-authored-by: jaycammarano <jay.cammarano@gmail.com>
2022-05-18 15:34:12 +00:00
Dominic Marcelino
a64bfa3796 Update hooks.md (#13367) 2022-05-17 13:02:55 -04:00
ian
b7ece763d7 Fix docs homepage sidebar (#13270)
* Fix docs homepage sidebar

* Update progress indicator's color

* Apply style to homepage sidebar only

* Set different progress indicator color for light mode
2022-05-16 13:06:30 -04:00
Eron Donevan Powell
5af5c92c0e replaced video (#13333) 2022-05-16 12:35:13 -04:00
Samuele Zolfanelli
8d064fc646 Allow creating big integer auto-incremented primary keys in MySQL and PostgreSQL (#13301) 2022-05-16 11:12:17 -04:00
Eron Donevan Powell
4f8cac7f74 improved clarity of logical operators explanation (#13327) 2022-05-16 11:09:29 -04:00
Eron Donevan Powell
bc69297ac9 re-edited support doc (#13285) 2022-05-13 14:28:46 -04:00
Peera Jeawkok
e47502e11f Fix Invalid foreign key when applying schema snapshot (#12198)
* add logic to create parent collection before apply

* recursively create collection

* Recursively delete collection

* cleanup

* fix import

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* fix deconstruction of collections

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* fix deconstruction of collections

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Fix destructing

* Move type declaration to the top

As requested during code review https://github.com/directus/directus/pull/12198#discussion_r857330627

* remove unnecessary empty array check.

* remove redundant map functions

* replace lodash functions in favor of built-in ones

* tweaks

* organize imports

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Stephan Schmitz <eyecatchup@gmail.com>
2022-05-09 16:49:20 -04:00
rijkvanzanten
e3a7a7d887 v9.10.0 2022-05-03 13:05:54 -04:00
Josh Soref
0b01923b0d Spelling (#13072) 2022-05-02 13:16:03 -04:00
Dmytro Cheglakov
325575d061 collections broken link fix (#13073) 2022-05-02 10:20:40 -04:00
Azri Kahar
7f8eb2d926 fix naming & typo in CLI docs (#13037) 2022-04-28 05:51:23 +00:00
Aiden Foxx
a2d88149f3 Clarified auth docs (#13000)
* Clarified Auth docs

* Minor tweak

* Update docs/configuration/config-options.md

* Update docs/configuration/config-options.md

* Added oauth examples

* Added Apple config

* Rephrasing

* I can't spell

* Added notices

* Update docs/configuration/sso-configs.md

* Renamed SSO examples

* Minor tweak

* Added SSO examples link

* Update docs/configuration/config-options.md

* Update docs/configuration/config-options.md

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-04-27 10:06:38 -04:00
Rijk van Zanten
d7d47b4e14 Allow configuring the HSTS header (#13004) 2022-04-25 16:46:55 -04:00
Rijk van Zanten
aae90979fb Allow disabling GraphQL introspection (#13003) 2022-04-25 16:20:32 -04:00
Eron Donevan Powell
2d5a96d97d added tip to exlpain how to formate custom range (#12999) 2022-04-25 13:25:32 -04:00
Eron Donevan Powell
44646c401c Content (#12932)
* small tweaks on content page, pushing to origin

* collectionsfirst edit half done

* improved tip on create an item

* reworked intro sections of content docs

* added on import/export and layouts pages

* finished content.md first draft, added some structural details

* content-collections.md first draft complete

* renamed content-collections.md to 'Collection Page' and content-items.md to 'Item Page'

* content-items.md first draft finished

* content-layouts.md first draft complete

* import/export first draft *almost* done

* imports/export first draft done

* forgot to manually add import/export file to commit

* moved layouts into utilities

* import-export first draft done

* Initial proofread of all content docs

* addressed most comments from github review

* media added

* widows

* Update docs/app/content.md

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

* applied half of rijk's edit requests, waiting for replies to add the other half

* finished applying rijk's edit requests

* Fix active link style in docs sidebar nav

* Add cloud exclusive mention

* The last of it... Until Loris edits

* final proofread

Co-authored-by: Eron Powell <eronpowell@Erons-MBP-2.local>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-22 16:56:07 -04:00
rijkvanzanten
ed780aceba v9.9.1 2022-04-22 12:21:24 -04:00
Nitwel
7639023a4f Emoji Picker & Comment improvements (#11946)
* add simple emoji picker and improve comments

* add v-md option to open in new tab

* fix styling when editing comment

* clean up code

* use script setup

* use different emoji lib

* fix inserting emojis into text

* fix search styling

* always show cancel button

* comment style tweaks

* clean up emoji picker

* add placeholder to v-template-input

* cleanup comments some more

* clean up comments sooooome more

* fix notify message on update

* update comment markdown styling

* button and icon hover colors

* move styling to global file

* clean up code

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
2022-04-22 12:18:45 -04:00
Eron Donevan Powell
afe0f0e499 fixed tip issue (#12938) 2022-04-22 10:46:46 -04:00
Nicolas Ferrari
ad4537a221 Add alwaysdata to one-click installs (#12948) 2022-04-22 09:07:07 -04:00
Eron Donevan Powell
7481419fb1 Docs: Content (#12046)
* small tweaks on content page, pushing to origin

* collectionsfirst edit half done

* improved tip on create an item

* reworked intro sections of content docs

* added on import/export and layouts pages

* finished content.md first draft, added some structural details

* content-collections.md first draft complete

* renamed content-collections.md to 'Collection Page' and content-items.md to 'Item Page'

* content-items.md first draft finished

* content-layouts.md first draft complete

* import/export first draft *almost* done

* imports/export first draft done

* forgot to manually add import/export file to commit

* moved layouts into utilities

* import-export first draft done

* Initial proofread of all content docs

* addressed most comments from github review

* media added

* widows

* Update docs/app/content.md

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

* applied half of rijk's edit requests, waiting for replies to add the other half

* finished applying rijk's edit requests

* Fix active link style in docs sidebar nav

* Add cloud exclusive mention

* The last of it... Until Loris edits

Co-authored-by: Eron Powell <eronpowell@Erons-MBP-2.local>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-21 12:37:15 -04:00
Eron Donevan Powell
ae25bca518 Docs: Cloud - Lori's Edits (#12905)
* Text edits

Edited for grammar, style.

* text changes

Edits for grammar, style, consistency.

* text changes

Edited for grammar, style, consistency

* text edits

Edited for grammar, style and consistency

* a few more changes

punctuation

* text edits

Edited for grammar, style, consistency.

* fixed type-errors

* fixed type errors and widows

* fixed type errors

* fixed type errors

* fixed type errors

* Update docs/cloud/glossary.md

Co-authored-by: lmaupas <103216525+lmaupas@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-04-21 10:51:27 -04:00
rijkvanzanten
5cce44fa05 Remove deadlink 2022-04-18 19:12:07 -04:00
rijkvanzanten
fb252ca4ce v9.9.0 2022-04-15 14:26:54 -04: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
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
80e986aa8a Fix bullet spacing 2022-04-14 09:17:42 -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
Eron Donevan Powell
d2a311b20e Docs: Add Cloud Section (#11827)
* .gitignored package-lock.json that was created in the docs subfolder

* added cloud section structure

* set initial article outlines

* drafter accts-teams and shifted cloud docs in navbar

* added overview and projects draft

* added tiers and billing outline and basics

* added image to drafts and polished text. needs one more pass. added css for dngr on icons

* Added photos to overview

* minor tweak on images

* imrpoved copy and expanded CSS for inline icons

* expnaded CSS and, added images and finished copy on  acct-n-team

* more copy touchups

* Add divider between cloud and regular docs

* Fix capitalization of Github -> GitHub

* fixed overview images and tweaked copy

* recructured pages. Added writing tasks on appropriate pages

* added accts, options, and teams pages

* Overview intro (re)written)

* overview initial copy

* Overview first draft complete, links not added, media not added

* accounts initial draft complete, no media

* teams redrafted, projects and options partial refactoring

* projects redrafted

* finalized 5th page as glossay and reformatted

* refactored glossary structure

* glossary terms p1

* glossary copy 80% complete

* more glossary copy

* cloud glossary basic copy probably 100% done

* checked hyperlinks

* initial proofread on overview

* initial accounts proofread

* re-edited billing sections

* re-editec projects section and glossary

* re-edited teams

* small edits

* edited accounts, teams, projects

* re-edited glossary

* added screenshot-based media, still need graphic illustrations

* small, tiny edits

* fixed GitHub capitalization and other small type error

* applied ben's edit suggestions on overview, accounts, and 1/2 of projects

* applied the rest of Ben's edits

* added missing screenshots

* proof-read

* Fixed Team proejcts title

* tweaked copy after my ~10 questions to ben

* reworked 'projects > create a project' sections and 'glossary > data-processing' section

* final copy touchup, link check, still missing Rijk's review

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Eron Powell <eronpowell@Erons-MBP-2.local>
Co-authored-by: Eron Powell <eronpowell@Erons-MBP-2.hitronhub.home>
2022-04-13 14:15:00 -04:00
Lukas Breitstadt
09d9b4b323 Await when token is refreshing & reinstate msRefreshBeforeExpires flag (#12649) 2022-04-12 07:52:33 -04:00
rijkvanzanten
029a66ef31 Add note on SDK requestOptions usage
Fixes #12628
2022-04-11 12:31:34 -04:00
rijkvanzanten
7c36fa42a6 Add missing reference for user object
Fixes #12669
2022-04-11 09:36:52 -04: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
Nayan Patel
49d65124f5 Adds one click deploy with koyeb. (#12558) 2022-04-05 11:44:49 -04:00
Azri Kahar
d023b36838 Add import file method to SDK (#12575) 2022-04-05 10:39:29 -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
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
rijkvanzanten
2a6db01c42 v9.8.0 2022-04-01 14:41:08 -04:00
Rijk van Zanten
3307bed5fd Improve cache reliability in DDL operations (#12400)
* Add TTL to schema cache

* Clear caches on unexpected errors in DDL

* Consistent return value use

* Don't set a default value for schema ttl
2022-04-01 13:24:20 -04:00