Commit Graph

1735 Commits

Author SHA1 Message Date
Nicola Krumschmidt
1389586593 Disable Cron hooks when only the CLI is running (#8490)
Depends on #8478
Fixes #8457
2021-10-01 18:23:49 -04:00
renovate[bot]
cb3c8492d2 Update dependency @types/node-cron to v2.0.5 (#8496)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-01 18:23:18 -04:00
renovate[bot]
b8d4a24958 Update dependency axios to v0.22.0 (#8483)
* Update dependency axios to v0.22.0

* Fix shared type

* Use any type in axios

* Adjust for axios type breaking change

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-01 12:41:18 -04:00
Nicola Krumschmidt
c816b3be92 Move extension management into a class (#8478) 2021-10-01 11:13:11 -04:00
Jay Cammarano
2be2c36dc2 Unit tests for get-extensions.ts (#8470)
* root removed

* get extensions passing, 95% coverage

* removed root

* fixed root on listExtensionsChildren
2021-10-01 11:01:33 -04:00
renovate[bot]
93553aebe5 Update dependency tedious to v13 (#8414)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 12:31:25 -04:00
renovate[bot]
3f56a6d5f5 Update jest monorepo to v27.2.4 (#8426)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 15:57:30 +00:00
rijkvanzanten
42f72acb60 Fix aggregation 2021-09-29 11:46:55 -04:00
José Varela
15859e5316 Fix sanitize aggregate on parse objects (#8423) 2021-09-29 11:32:06 -04:00
José Varela
1ff3adbb46 Convert to object default json value (#8041)
* convert to object default json value

* return same value if falsy or parse fail
2021-09-28 19:16:30 -04:00
Rijk van Zanten
ec32c9e0fe Fix group migration on MySQL (#8404)
* Remove groupsInUse check

* Fix group migration on MySQL

Fixes #8369
2021-09-28 22:46:26 +00:00
ian
1b92d711d4 Refactor action value from authenticate to login in directus_activity (#8397)
* Refactor action value from authenticate to login in directus_activity

* Fix incorrect where clause in migration

* Add missing authenticate uses

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-28 20:59:27 +00:00
Rijk van Zanten
1ffd1c7bc3 Fix email migration for MS SQL (#8399)
Fixes #8396
2021-09-28 16:23:50 -04:00
Rijk van Zanten
01c65f5fe7 Add defaults for null fields in permissions (#8391)
Fixes #8253
2021-09-28 11:27:27 -04:00
Aiden Foxx
f475c877ec Send correct payload to auth provider for oauth (#8389) 2021-09-28 14:21:03 +00:00
Azri Kahar
18b20e7d54 fix "add conditions to fields" migration (#8375) 2021-09-28 10:04:35 -04:00
renovate[bot]
18846527c8 Update jest monorepo to v27.2.3 (#8380)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 09:51:51 -04:00
Nicola Krumschmidt
7eb2b53927 Remove duplicate directus_migrations collection (#8383)
The collection is already defined on line 29.
2021-09-28 09:48:27 -04:00
renovate[bot]
99c55e58b0 Update dependency @types/inquirer to v8.1.3 (#8371)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 09:34:53 -04:00
rijkvanzanten
afe7b15990 v9.0.0-rc.95 2021-09-27 18:58:22 -04:00
renovate[bot]
480a81fbd1 Update dependency @types/lodash to v4.14.175 (#8361)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-27 22:30:26 +00:00
Nitwel
cf05527f0e Add dedicated "files" interface (#8110)
* add download button for m2m

* create files interface

* Add migration to use new files interface

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-27 22:27:03 +00:00
rijkvanzanten
c2c9ad4116 Add missing data field in sessions 2021-09-27 17:34:38 -04:00
Aiden Foxx
084c6117b7 Modular authentication (#6942)
* Moved refactoring from LDAP branch

* Moved Auth into packages

* Updated frontend to support custom auth providers and make implementation more flexible

* Fixed exception handling and numerous bugs. Also added provider support to graphql

* Updated frontend to be able to set provider and identifier

* Fixed issue with setting the auth provider in app

* Updated package-lock.json

* Updated package-lock.json

* Cleanup, adding type handling and disabled changing provider

* Added title formatting to SSO links

* Fixed incorrect type export

* Fixed incorrect rc

* Update api/src/services/authentication.ts

* Updated sub-dependencies to rc87

* Fixed linting errors

* Prefer sending provider name as config var

* Pass clone of user info to auth provider instead of reference

* Moved auth from packages into core

* Removed generic login handler

* Fixed graphql complaint

* Moved exception back to api and cleaned up URLs

* Minor tweak

* Pulled across improvements from openid branch

* Fixed fix that wasn't a fix

* Update auth.ts

* Update auth.ts

* Update authentication.ts

* Update login-form.vue

* Regression fixes and cleanup

* Minor flow improvements

* Flipped if and fixed linting warning

* Un-expanded object that didn't need to be expanded!

* Trimmed auth interface for consistency when verifying passwords

* Removed auth-manager, changed login endpoint, broke out SSO links, removed username support, disabled updating external_identifier, generate provider options as part of field generation

* Cleaned up some code comments

* Use named exports in local driver

* Use async defaults for auth abstract class

* Use JSON for auth_data field

* Move session data blob to directus_sessions

* Remove unused export, rename auth->authDriver

* Opinionated changes

* Move login route registration to driver file

* Revert app changes in favor of PR #8277

* Send session token to auth provider and opinionated changes

* Added missing translation

* Fixed empty elements for users without email

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

* Move pw verify to local driver, remove CRUD

* Opinions > logical reasoning

* Use session data, cleanup login method on auth serv

* Remove useless null

* Fixed breaking changes from refactor, and fixed build

* Fixed lint warning

* Ignore typescript nonsense

* Update api/src/services/authentication.ts

* Fix provider name passthrough

Co-authored-by: Aiden Foxx <aiden.foxx@sbab.se>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-09-27 17:18:20 -04:00
Rijk van Zanten
356b96e3e2 Migrate down chronologically instead of by version (#8357)
Fixes #8254
2021-09-27 16:45:50 -04:00
Rijk van Zanten
ac0bade2b4 Don't track primary keys of relations/fields (#8355)
Fixes #8161
2021-09-27 15:45:28 -04:00
Rijk van Zanten
292c66c4b2 Don't error on missing meta key for collection (#8352) 2021-09-27 15:26:47 -04:00
Rijk van Zanten
2fe8626b54 Add missing system data points (#8351) 2021-09-27 15:18:59 -04:00
Jay Cammarano
a7b0cbe69b GitHub workflow to run tests on pushes to main and PRs (#8247)
* testing workflow

* name changed

* generateHash working

* changed pendingMock() to 0 because ticks > 5000

* removed empty tests

* removed empty tests

* Update packages/sdk/tests/utils.ts

Co-authored-by: José Varela <joselcvarela@gmail.com>

* updated workflow to add build

* added npm run build

* fixed get-filter-operators

* added env to workflow

* potential fix to index.test.ts

* added env variables for index.test.ts

* added caching and node-version matrix

* added all supported node versions

* only supported node versions

* updated to only support 16

* removed duplicate workflow caching

Co-authored-by: José Varela <joselcvarela@gmail.com>
2021-09-27 15:10:29 -04:00
Rijk van Zanten
f5f68417cf Use field key instead of ID for group value (#8349)
* Add migration to replace group ID with group name

* Replace group IDs with field names

* Tweak group interfaces

* Ignore schema export
2021-09-27 15:06:19 -04:00
renovate[bot]
c3253edced Update dependency knex-schema-inspector to v1.6.2 (#8345)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-27 13:19:52 -04:00
Azri Kahar
220398f177 prevent ambiguous role selection in middleware (#8334) 2021-09-27 10:29:13 -04:00
Azri Kahar
915ff76ffc Fix multiple issues in Data Model view (#8333)
* disable the labels for disabled display templates

* fix color placeholder & field name

* fix singleton field label translation

* fix collections note placeholder translation
2021-09-27 10:10:39 -04:00
renovate[bot]
3a4e826224 Update dependency @types/lodash to v4.14.174 (#8308) 2021-09-25 11:24:58 -04:00
renovate[bot]
2aae01a22c Update jest monorepo to v27.2.2 (#8316) 2021-09-25 11:24:19 -04:00
Azri Kahar
83d2b661c8 Allow environment syntax prefix per item within an array (#8257)
* Updating environment syntax prefix to identify prefix per item

* Updating environment syntax prefix documentation to show how to add prefix to array value

* Add additional example

Co-authored-by: Juan Carlos Blanco Delgado <juancarlosjr97@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-23 16:15:18 -04:00
Nitwel
f1e325ed10 Fix oas parameters (#8272) 2021-09-23 13:50:12 -04:00
Aiden Foxx
c6eda9fe69 Fixed error when setting Oracle column to not null (#8111)
* Fixed error when setting Oracle column to not null

* Normalized migrations for all vendors

* Downgraded knex version

* Updated knex again

* Update 20210907A-webhooks-collections-not-null.ts

* Update 20210920A-webhooks-url-not-null.ts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-09-22 16:02:24 -04:00
rijkvanzanten
7e41860cbf v9.0.0-rc.94 2021-09-22 15:53:24 -04:00
rijkvanzanten
81fb593672 Remove unused import 2021-09-22 15:06:45 -04:00
ian
dc363dd16f Add divider for modules section (#8240) 2021-09-22 12:12:21 -04:00
Rijk van Zanten
0ad60399eb Replace prettier with simple trim (#8241)
Fixes #8162
2021-09-22 12:09:59 -04:00
renovate[bot]
78f0915099 Update dependency pino to v6.13.3 (#8238)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-22 10:33:00 -04:00
renovate[bot]
e465d3a10b Update dependency knex-schema-inspector to v1.6.1 (#8221)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 18:02:04 -04:00
renovate[bot]
2963c71be7 Update dependency @types/inquirer to v8.1.2 (#8219)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 19:33:29 +00:00
renovate[bot]
4615936454 Update dependency @types/fs-extra to v9.0.13 (#8218)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 19:21:01 +00:00
Azri Kahar
5cef0f1608 Clear collection cache & schema cache on update (#8184)
* clear collection cache on update

* add optional MutationOptions for updateMany
2021-09-21 11:21:44 -04:00
renovate[bot]
c3348dfe37 Update dependency pino-http to v5.8.0 (#8205)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 15:11:15 +00:00
ian
d472e2c2b6 Fixed errors thrown in CRON hook not caught (#8193) 2021-09-21 10:40:25 -04:00
renovate[bot]
b9815ee1e4 Update dependency @types/jest to v27.0.2 (#8183)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 11:46:44 +08:00