Commit Graph

1846 Commits

Author SHA1 Message Date
rijkvanzanten
ba72d2cfd0 v9.0.1 2021-11-11 16:45:31 -05:00
d1rOn
f10d01d7f1 [API] m2a filtering fix (#9666)
* [API] m2a filtering fix

MySQL does not support CAST to VARCHAR type.

* Use CHAR(255) instead of CHAR

Co-authored-by: Oreille <33065839+Oreilles@users.noreply.github.com>
2021-11-11 15:39:05 -05:00
Rijk van Zanten
3cd1224795 Fix nested union query filter (#9726)
Fixes #9578
2021-11-11 13:22:11 -05:00
Aiden Foxx
175dc20a1d Use access_token with openid-client to fix facebook (#9598) 2021-11-10 10:46:44 -05:00
Aiden Foxx
13e7f5b2a4 Fixed Oracle special geometry migration (#9635)
* Fixed oracle special geometry migration

* Fixed knex column name
2021-11-10 09:54:03 -05:00
José Varela
ca19cb1a99 emit auth.jwt on refresh (#9661) 2021-11-09 14:01:38 -05:00
gkielwasser
053d2a6a37 Expose server instance in action hook 'server.start' (#9616)
* Expose server instance in action hook 'server.start'

* Expose server in start/stop

* Update documentation
2021-11-09 16:28:24 +00:00
renovate[bot]
ad3a503f25 Update NPM dependencies (non-major) (#9585)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-09 11:18:41 -05:00
Oreille
b82b68eacc Fix mysql wkt conversion (#9621) 2021-11-09 11:07:19 -05:00
Azri Kahar
e127230670 don't cache root index.html (#9629) 2021-11-09 10:19:17 -05:00
Nitwel
c962144cef Fix relation not having collection and field values (#9652) 2021-11-09 09:55:45 -05:00
José Varela
67b51b7d44 Add support for AWS SES (#9625) 2021-11-08 17:35:05 -05:00
Ben Haynes
057af2313c selector for override (#9562) 2021-11-06 21:04:21 -04:00
Adrian Dimitrov
b8fabe46f2 Fix missing and wrong translations (#9537) 2021-11-05 12:30:59 -04:00
rijkvanzanten
c95add08ef v9.0.0 2021-11-04 22:03:10 -04:00
Oreille
5f43b20ebf Update geometric types and patch new field flow. (#9397)
* Update geometric types and patch new field flow.

* Add migration

* Fixed migrations

* Also fixed migrations

* Update migration ID

* Cleanup type selector a bit

* Add missing fallback interface/display for new types

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-04 21:47:54 -04:00
Oreille
ef3da32ab3 Properly handle M2A fields in fieldStore and useFieldTree (#9432)
* Properly handle M2A fields in fieldStore and useFieldTree

* Fix addNode

* Rewrote use-field-tree

* Remember visited paths

* Fix error whith undefined relation.meta
2021-11-04 20:35:05 -04:00
Rijk van Zanten
b2f3091826 Prevent negative hashes from being generated (#9501)
Fixes #9499
2021-11-04 20:21:39 -04:00
Rijk van Zanten
4b2b74840e Don't show all migrations logged on init (#9496) 2021-11-04 23:05:11 +00:00
Rijk van Zanten
dbe29554e7 Move union query application to applyQuery, fix where clause (#9494)
* Move union query application to applyQuery, fix where clause

Fixes #9228

* Handle case where union IDs length = 0

* Return modified db query

* Apply union last
2021-11-04 22:55:10 +00:00
Rijk van Zanten
2e0ad10ad1 Remove collection listing option from role settings (#9490)
* Fixes #8920

* Revert changes in seeds / migrations

* Add new migration to drop column

Co-authored-by: Yannick Mol <yannick@molmediasolutions.nl>
2021-11-04 21:55:34 +00:00
Farid Saud
493a35da90 Use hash instead of random for default index name (#9448)
* [Fix]: Use hash instead of random for default index name

* Move hash function to separate util file

* Reduce max size of index name to 60 from 64

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-04 21:37:03 +00:00
rijkvanzanten
37cf80e0fe v9.0.0-rc.101 2021-11-03 19:29:41 -04:00
Nicola Krumschmidt
69d893123e Add exports fields to all packages (#9443) 2021-11-03 18:59:45 -04:00
Rijk van Zanten
c5bb836689 Tweak project-settings page (#9440) 2021-11-03 18:07:17 -04:00
Nicola Krumschmidt
03cf03b1bf Clean up API exports (#9418)
* Move API entrypoint to typescipt

* Remove explicit cli exort from API

The "./*" export should export all subpaths, so explicitly exporting the cli shouldn't be necessary.

* Remove dedicated start script from API

This script isn't even included in the final npm package and it's only used by the test Dockerfile.
2021-11-03 17:34:48 -04:00
Nicola Krumschmidt
3d0e086c55 Rework hook registration (#8027)
* Rework hook registration

* Remove event and action fields from hook payloads

* Move "error" action to "request.error" filter

* Emit meta and context objects in filters and actions

* Run filters sequentially

* Update hook templates

* Fix CLI hook test

* Also emit `<collection>.items.crud` when emitting `items.crud`.

* Update hook docs

Co-authored-by: Oreilles <oreilles.github@nitoref.io>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-03 17:18:56 -04:00
Rijk van Zanten
65291b95c4 Allow dynamic user variables to be used with filter rules (cont.) (#9376)
* Move permissions extraction to accountability

* Fix permissions retrieval for public user

* Fetch user / role context in permissions middleware

* Remove unnecessary parseFilter

* Rename schemaCache to systemCache

* Add permissions caching

* Add system cache invalidation on permission changes

* Improve caching perf by reducing scope

* Add note to docs

* Clarify compatibility with conditional fields/filters

* Fix lint warning

* Allow nested vars in system-filter-input

* Add custom getter function that resolves arrays

* Add is-dynamic-variable util

* Export new util

* Cleanup parse filter

* Fix build

* Move debounce up to use-items

* Remove unused prop

* 🧹

* Fix input pattern usage w/ vars

* Remove debounce from search-input, increase throttle
2021-11-03 16:56:16 -04:00
Jay Cammarano
99f0c6c65f Fixed SET NULL on directus_files for MSSQL (#9425)
* fixed migration on mssql

* removed useless migration
2021-11-03 17:14:45 +00:00
Aiden Foxx
2f33f71a6a Added user rebinding on reconnect in LDAP (#9339)
* Added reconnect handling code for LDAP

* Update api/src/auth/drivers/ldap.ts

* Improved error handling

* Updated re-bind so we can await it when required

* Added bind check before operations to ensure client has user

* Cleaned up reconnect handling in LDAP

* Minor cleanup

* Minor cleanup
2021-11-03 11:12:50 -04:00
Azri Kahar
763398256a Set user token as unique (#9381) 2021-11-02 23:44:27 -04:00
renovate[bot]
530c6bf904 Update dependency @types/ldapjs to v2.2.2 (#9377)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-02 20:10:15 -04:00
renovate[bot]
d7e5657434 Update dependency openid-client to v5 (#9202)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-02 15:50:07 -04:00
Aiden Foxx
1379e8b5c9 Added openid fallback to user token info if profile URL not defined (#9368) 2021-11-02 14:09:05 -04:00
Nitwel
6ea29d8673 Fix date on sqlite (#7774)
* fix date on sqlite

* remove unused imports

* rename KnexSpatial to KnexDate

Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-11-02 14:51:17 +00:00
Paul Boudewijn
d4095bc2aa Fix nullable boolean (#8497)
* nullable boolean can now be set to null again after it weas true or false

* Implementation changed to Composition API

* Implementation changed to Composition API

* fixed formatting issues

* fixed formatting issues

* fixed formatting issues

* fixed formatting issues

* run linters on branch

* run linters on branch

* run linters on branch

* run linters on branch

* fixed formatting issues

* changes to checkbox interface reverted

* changes to checkbox interface reverted

* Update boolean.vue
2021-11-02 10:39:39 -04:00
renovate[bot]
7fbd135c0b Update dependency @types/sharp to v0.29.3 (#9352)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-02 10:32:07 -04:00
Hugues BUREAU
98112a866a fix(graphql): remove __typename from selection nodes when present (#9318)
* fix(graphql): remove __typename from selection nodes when present

* fix: cast selectionNode to FieldNode in filter callback
2021-11-01 18:52:17 -04:00
Oreille
cb22ddfa7c Added supported function to geometryHelper, added geometrySupport to serverinfo (#9290)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 17:31:34 -04:00
Nitwel
894b4975f2 Fix issues with fields config (#9324)
* Fix issues with fields config

* Fix /fields endpoint return type for alias fields

* Fix display selection in relational interfaces
2021-11-01 20:55:45 +00:00
Jay Cammarano
ad959e4472 Add SET NULL to directus_files.uploaded_by constraint (#9305)
* add set null to directus_files constraint

* SET NULL on created_by and modified_by

* "user_created" and "user_updated" => SET NULL

* SET NULL on collections optional system fields

* fixed dropColumn()

* Add line breaks, cause little OCD

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 14:58:52 -04:00
Theraloss
91aaad61cf prefix aggregation field with table name (#9314)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 14:20:26 -04:00
Aiden Foxx
179f06126e Added state param to oauth to make Okta happy (#9289)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 14:04:32 -04:00
Dorian Zedler
106d207238 Feat/custom ldap mail attribute (#9307)
* Allow custom email field for LDAP

* Update docs

* Break out into variable and don't cast to String
2021-11-01 15:57:57 +00:00
Aiden Foxx
4ef7203b88 Removed undefined type from LDAP userAccountControl (#9309) 2021-11-01 11:35:23 -04:00
rijkvanzanten
7e1034d9d4 v9.0.0-rc.100 2021-10-29 14:40:05 -04:00
Rijk van Zanten
0912657271 Add CLI to exports (#9241) 2021-10-29 14:19:15 -04:00
Oreille
8df071a3a2 Fix generated columns being required. (#9200)
* Fix generated columns being required. Also prevent schema changes on generated columns.

* Fix type errors

* Disable `unique` and `nullable` instead of not showing them.

* Fix other type error

* Nullable check small refactor

* Fixed MSSQL query

* Fixed oracle query
2021-10-29 12:24:21 -04:00
renovate[bot]
bb9b8f5d36 Pin dependency @types/ldapjs to 2.2.1 (#9238)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 16:11:05 +00:00
Aiden Foxx
b7ee318e43 LDAP auth provider (#9074)
* Added LDAP implementation

* Cleanup and added refresh checking

* Added provider check to ldap

* Added LDAP docs

* Always update LDAP user role on authentication

* Fetched package-json from github

* Fixed lint error

* Update api/src/auth/drivers/ldap.ts

* Update api/src/auth/drivers/ldap.ts

* Added missing locale key

* Update docs/guides/api-config.md

* Update docs/configuration/config-options.md

* Update api/src/auth/drivers/ldap.ts

* Added back LDAP example

* Update config-options.md

* getUserID function sjhouldn't care about password

* Added LOCKOUT to INVALID_ACCOUNT_FLAGS

* Update styling approach for v-select

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-29 11:58:10 -04:00