Since we might need information from database, we must provide the
current transaction, instead of the connection.
Otherwise, databases like SQLite which only accepts a single connection
will throw an error of knex timeout.
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Add accountability column
* Add field info for accountability
* Add accountability to collection type
* Fetch accountability info from collection meta
* Add field name translation for accountability field
* Hide revisions drawer detail if revisions aren't available
* Only save activity where accountability flag matches
* Disable revisions for directus_presets
Fixes#3767
* Tweak field option naming
* 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#4653
* added docs and cleaned up the hooks payload
* use req.accountability
* added req.params.provider to payload
* provide scope for login
* docs updated for oauth hook
* Update api/src/controllers/auth.ts
* updated provider to redirect and docs
* added payload
* Make schema available in redirect hook
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* 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>
* 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>
* 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>