Commit Graph

1178 Commits

Author SHA1 Message Date
Rijk van Zanten
c2e4100e55 Add root_redirect option (#4937)
* feat: don't expose admin url (optional)

* Rename REDIRECT_TO_ADMIN -> ROOT_REDIRECT, add docs

Co-authored-by: Michael Mullins <mullinsmikey@users.noreply.github.com>
2021-04-09 11:34:50 -04:00
rijkvanzanten
f8f843e5be v9.0.0-rc.56 2021-04-08 17:41:53 -04:00
rijkvanzanten
706b07bb02 Run invite in transaction, rollback on error
Fixes #4569
2021-04-08 17:33:04 -04:00
Pyll Gomez
48b287a5b8 Sso login issue 4570 (#4675)
* Rotate JPG image on upload #4206

* fixes #3949 width/height generated for gif and tif

* API hooks for event added for auth.login #4079

* updated doc for api hooks for new auth.login event

* Style tweaks

* Update docs

* Tweak docs some more

* Spelling error

* Allow non-required flags and pass to hook

* SDK - Persistent login refresh fixes #4113

* Fixed #4145 SDK, Token Expired error

* Spell check

* Docs Spell check

* Docs Spell check

* Docs Spell check

* update docs for sdk-js

* To delete all expired session from db on login

* corrected the condition for the delete

* changed the from Date.now to new date .

* Move it inline

* Fixes SSO redirect with Json error

* Remove dependency on qs

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 17:18:00 -04:00
rijkvanzanten
f6e0b2cc81 Clear archive_field / sort_field of directus_collections on field delete
Fixes #3737
2021-04-08 17:11:16 -04:00
rijkvanzanten
5b14a8e715 Fix typo in oas spec output
Fixes #4867
2021-04-08 17:01:14 -04:00
Joonas Palosuo
9c621c6e20 feat: add delete event emitting to fields service (#4840)
* feat: add delete event emitting to fields service

* Inline event scope

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:39:31 -04:00
Jakob
183af8dd64 Fix extension path wildcard (#4906) 2021-04-08 09:13:34 -04:00
rijkvanzanten
86d232c03c Fix deep args + union resolvers 2021-04-07 14:06:23 -04:00
rijkvanzanten
73f7ac8f3f v9.0.0-rc.55 2021-04-07 13:00:16 -04:00
rijkvanzanten
cdbd6e820b Tweak static handler path for extensions 2021-04-07 12:54:23 -04:00
Dustin
632895eb68 Storage: S3 ACL & Content Type (#4694)
* add S3 env config for ACL. pass along file type for S3 upload

* add STORAGE_<LOCATION>_ACL to S3 docs
2021-04-07 12:15:47 -04:00
Rijk van Zanten
d49898d54d fix/4873 (#4885)
* Fix permissions check for /system endpoint

* Filter out empty / corrupted fields/collections rows in get-schema

Fixes #4873
2021-04-07 11:39:54 -04:00
Jakob
239e12959d Fix Graphql filter selection (#4882)
- fix fall through in switch statement
- remove duplicate case
2021-04-07 11:25:47 -04:00
rijkvanzanten
08958fec23 v9.0.0-rc.54 2021-04-06 18:45:32 -04:00
Rijk van Zanten
dd551f3571 Add non-items system Resolvers (#4863)
* Add auth resolvers

* Add password request/reset

* Add up until file import

* Make revisions read only

* Add server resolvers

* Add utils

* Add schema resolvers for schema manipulation
2021-04-06 18:04:35 -04:00
rijkvanzanten
eb79c00756 Don't delete columns for alias fields
Fixes #4802
2021-04-05 17:01:19 -04:00
rijkvanzanten
9859212253 Fix o2m fields missing by default 2021-04-05 16:39:30 -04:00
Fatih Kaya
da4b66aca8 fix: exclude aliases from the payload. fixes #4810 (#4822)
* fix: exclude aliases from the payload

* Use alias from columns

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-05 16:20:18 -04:00
Nitwel
3da416b6ff validate password on setup (#4844) 2021-04-05 10:26:41 -04:00
Anton Strandman
2cfc2cb48e Freeze internal dependencies to current version (#4770) 2021-03-31 09:29:43 -04:00
WoLfulus
3c1204b928 SDK 2.0 (#4510)
* add new sdk

* update version

* fixes and sdk documentation

* typing updates, documentation

* added missing endpoints

* targeting minified version for unpkg

* removed unused types file

* fixed non minified versions

* fix sdk exports

* fix the fix

* Remove old sdk

* Remove old sdk docs

* Install types for Jest, add npm test

* Rely on npm exclusively

* Remove examples folder

* Move typescript down

* Update sdk.md

* added auto refresh and requested changes

added more http test calls
fixed typing issue in customized types

* remove unused endpoint

* updated docs

* added singletons, fixed typing issues, added password handlers

* rename graphql function and fixed system endpoint

* Remove unused imports, fix build

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
2021-03-30 18:23:23 -04:00
rijkvanzanten
2d316a4a71 Fix type overrides of GQL service getSchema 2021-03-30 18:23:00 -04:00
Rijk van Zanten
f90c31b798 GraphQL 2.0 (#4625)
* Start on GraphQL "2.0", add methodnotallowed exceptoin

* Fix relative file pointer in peer dep

* [WIP] Add pre-filtered schema to SchemaOverview

* Use root schema as is, add reduce-schema util

* Use reduceSchema in the wild

* Base schema on local reduced schema

* Remove todo

* Use graphql-compose to build out schema

* Start restructuring resolvers

* Add create mutation

* Return boolean true for empty create mutation selections

* Add update mutation

* Add delete mutation

* Add system/items scoping

* Fix merge conflicts for real now

* Use system services, rename ids->keys

* Start on docs on mutations

* Updates to match main

* Add fetch-by-id

* Add one/many resolvers for mutations

* Check system collection rows for singleton

* Fix resolver extraction for single read

* Share delete return type

* Add comments

* Use collection root name for readable type

* Add specs endpoint for GraphQL SDL

* Update docs

* Add note on SDL spec

* Fix delete single example

* Remove package-lock

* Fix collection read scoping in non-read
2021-03-30 17:06:35 -04:00
rijkvanzanten
fb91fd57e0 v9.0.0-rc.53 2021-03-30 13:17:52 -04:00
rijkvanzanten
03c1a5b5ce Remove forced sort on payloads 2021-03-30 13:15:47 -04:00
rijkvanzanten
0ff8d62e9c Remove package-lock files from sub-packages
Fixes cross-package versioning problems
2021-03-29 15:41:24 -04:00
rijkvanzanten
9b6869e068 v9.0.0-rc.52 2021-03-29 14:53:22 -04:00
rijkvanzanten
e0fd5b2a89 Update knex-schema-inspector
Fixes #4708
2021-03-29 14:38:52 -04:00
Rijk van Zanten
b562ceeb0c Add Tree-View Interface (#4602)
* Fix local type extraction

* Render basic tree in tree-view

* Render drawer-item in tree-view-group

* Retrieve nested draggable changes

* Default sort query to configured sortField

* Store nested group / sort to API

* Allow updating item values

* Figure out a dropzone approach on preview

* Finish editable tree view

* Set sort value based on sort field in relation

* Add create-new / add-existing

* Respect previously made nested edits

* Add description in setup

* Fix fetching level of o2m sort field

* Remove min height on empty root

* Remove unused types

* Add notice for invalid relationship type

* Allow recursive o2m in setup

* Styling tweak

* Revert changes in v-list

* Revert changes in groupable
2021-03-26 17:12:55 -04:00
rijkvanzanten
2d59412209 Update knex 2021-03-25 15:30:05 -04:00
Rijk van Zanten
c310afa846 Rely on npm Workspaces for module resolving (#4656)
* Move devDeps to API

* Move app to npm workspaces

* Tweaks / add lockfiles

* Add locks, fix devdeps across packages

* Move eslint config rootlevel

* Use eslint fix for vue files instead of vue-cli-service

* Add global prettier format option

* Create lockfiles for all packages

* Replace husky with simple-git-hooks
2021-03-24 16:01:49 -04:00
alejandro-tss
fba39e0c3a Fixed ambiguous column when field name exists in some join table (#4649) 2021-03-24 10:16:14 -04:00
Adrian Dimitrov
a18f9d68d5 Add cli passwd command (#4398)
* User passwd cli command

* Add command to list
2021-03-23 10:39:11 -04:00
rijkvanzanten
10050b32ba Lock directus internal versions
Fixes #4598
2021-03-22 20:19:52 -04:00
rijkvanzanten
3eaa375952 Provide getSchema function in hook/endpoint registration function
Fixes #4621
2021-03-22 20:13:49 -04:00
Pyll Gomez
71c8c4cc2c Assets quality parameter #4557 (#4620)
* Rotate JPG image on upload #4206

* fixes #3949 width/height generated for gif and tif

* API hooks for event added for auth.login #4079

* updated doc for api hooks for new auth.login event

* Style tweaks

* Update docs

* Tweak docs some more

* Spelling error

* Allow non-required flags and pass to hook

* SDK - Persistent login refresh fixes #4113

* Fixed #4145 SDK, Token Expired error

* Spell check

* Docs Spell check

* Docs Spell check

* Docs Spell check

* update docs for sdk-js

* To delete all expired session from db on login

* corrected the condition for the delete

* changed the from Date.now to new date .

* Move it inline

* fixes issue 4557 for asset quality for thumbnail

* asset documentation is updated

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-22 20:08:44 -04:00
rijkvanzanten
45a9f2a06c Don't add alias fields to table when creating nested in /collections
Fixes https://github.com/directus-community/migration-tool/issues/4
2021-03-21 10:27:05 -04:00
Martijn Boland
aca08e24c7 Always remove the primary key field from the update payload (#4576)
* Always remove the primary key field from the update payload to prevent issues with databases that don't allow certain primary key columns (e.g. mssql identity columns)

* Opinionated cleanup

Co-authored-by: Martijn Boland <martijn@taiga.nl>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-17 22:14:08 -04:00
rijkvanzanten
2a71f0c0dd Pass current knex trx instance to hook resolver functions
Closes #4558
2021-03-17 22:07:58 -04:00
rijkvanzanten
914a02c6c2 Return HEAD requests with correct headers on /assets
Fixes #4578
2021-03-17 21:51:10 -04:00
Ben Haynes
d65469c974 Update CLI database support labels 2021-03-17 12:08:38 -04:00
rijkvanzanten
aa15da7c65 v9.0.0-rc.51 2021-03-16 15:56:56 -04:00
rijkvanzanten
37b2ec8a27 Cast port to number on cli init
Fixes #4536
2021-03-15 11:20:50 -04:00
Nicola Krumschmidt
068fcb3afa Remove dotenv preloading from api dev script (#4540)
Now that there is a native way to specify the config path by using the
CONFIG_PATH env var, this is not needed anymore and even prevents that
env var from working correctly because the preloaded dotenv overwrites
the specified config file.
2021-03-15 10:15:41 -04:00
rijkvanzanten
42507ae52f v9.0.0-rc.50 2021-03-12 18:32:20 -05:00
Pyll Gomez
4dd69ee5b1 To clear to Expired Sessions#4414 (#4504)
* Rotate JPG image on upload #4206

* fixes #3949 width/height generated for gif and tif

* API hooks for event added for auth.login #4079

* updated doc for api hooks for new auth.login event

* Style tweaks

* Update docs

* Tweak docs some more

* Spelling error

* Allow non-required flags and pass to hook

* SDK - Persistent login refresh fixes #4113

* Fixed #4145 SDK, Token Expired error

* Spell check

* Docs Spell check

* Docs Spell check

* Docs Spell check

* update docs for sdk-js

* To delete all expired session from db on login

* corrected the condition for the delete

* changed the from Date.now to new date .

* Move it inline

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-12 18:11:44 -05:00
Rijk van Zanten
2cdf18545e Remove support for CSV in PK param (#4514)
* Remove csv in pk param

Closes #3933

* Remove last uses of csv in route pk params in app
2021-03-12 18:06:35 -05:00
rijkvanzanten
eb941046a0 Use TEXT for webhooks collections CSV
Fixes #4506
2021-03-12 17:42:04 -05:00
rijkvanzanten
909d184778 Respect permissions in item count
Fixes #4422
2021-03-12 14:53:41 -05:00