José Varela
e765d50783
Fix singleton primary key on update ( #5096 )
...
Since primary key is dynamic, we should use it instead of expect it would be 'id'
2021-04-16 10:16:28 -04:00
Rijk van Zanten
1fb4db1fda
Add _regex validation operator ( #5089 )
...
Closes #2917
2021-04-15 17:25:51 -04:00
rijkvanzanten
0dfad1e96e
v9.0.0-rc.59
2021-04-15 12:09:58 -04:00
Tomáš Petržela
07b85b7eb7
Global cookie parser ( #5071 )
...
* removed local cookie parser
* add global cookie parser
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-04-15 14:55:07 +00:00
rijkvanzanten
25e7daf433
Parse fragments inside inlinefragments too
...
Ref #4283
2021-04-15 10:44:23 -04:00
rijkvanzanten
05841c8c3b
Remove filesize nullable constraint
...
Fixes #5075
2021-04-15 10:36:12 -04:00
rijkvanzanten
16b1a4e76e
v9.0.0-rc.58
2021-04-14 19:52:03 -04:00
Pavlo Savenko
b160ae733b
fix: use nullish coalescing operator for setting nullable and defaultValue properties in the getSchema function instead of the ||(or) logical operator which always causes assigning true to the nullable property and ignores 0 and false default values ( #5063 )
2021-04-14 17:18:39 -04:00
rijkvanzanten
447eea4b3b
Fix chaining filters w/ and/or in GQL
...
Fixes #5020
2021-04-14 12:16:48 -04:00
rijkvanzanten
40ecd1ec37
Fix fragments in nested relational sets
...
Fixes #4283
2021-04-14 12:12:32 -04:00
MiniDigger | Martin
6cf9008809
Send out error message for graphql execution errors ( #5023 )
2021-04-13 10:03:52 -04:00
cristobalbahe
b1f36b1939
Return instance of Date from payload.ts ( #4992 )
...
* Return instance of Date from payload.ts
* Revert formatter to date
* Use non-JS-Date object date scalar
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-12 17:59:37 -04:00
rijkvanzanten
9e90030d2a
Ignore duplicate permissions row for same collection
...
Fixes #4985
2021-04-12 17:42:12 -04:00
rijkvanzanten
0f5a98f4f2
Fix unique error extraction in MySQL
...
Fixes #4995
2021-04-12 17:28:41 -04:00
Pierre
816d963c81
Fix error message ( #4993 )
...
`url` is an object from the library `url`.
It's `importUrl` that we need.
2021-04-12 09:45:14 -04:00
rijkvanzanten
1bfa128308
v9.0.0-rc.57
2021-04-09 20:30:10 -04:00
rijkvanzanten
5d1db82554
Fix auto-inserted timestamp transformers
2021-04-09 19:59:01 -04:00
rijkvanzanten
c4e1e40279
Fix @directus/schema not reading Oracle overview correctly
...
Fixes #4735
2021-04-09 19:28:00 -04:00
rijkvanzanten
a75c1ae8f4
Return ISO8601 date strings as GraphQLStrings
...
Fixes #4938
2021-04-09 18:44:26 -04:00
Rijk van Zanten
c9d70de4c3
Rely on Knex for date parsing to vendor ( #4949 )
...
Fixes #3655
2021-04-09 18:36:58 -04:00
Nitwel
44091e6f41
Add option to auto refresh collections ( #4777 )
...
* add auto refresh
* add refresh_interval to DB
* remove refresh_interval template
* set refresh interval default to null
* Fix typo in filename
* Rename sidebar-auto-refresh to refresh-sidebar-detail
* Rename import
* Add badge on active refresh, change options
* Fix refresh not working on refresh
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-09 17:24:40 -04:00
rijkvanzanten
52ee17dc33
Fix dev scripts on root
2021-04-09 16:34:52 -04:00
Rijk van Zanten
1b1e500ee9
Make user email case insensitive ( #4941 )
2021-04-09 12:33:31 -04:00
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