Commit Graph

1878 Commits

Author SHA1 Message Date
Oreille
8ed517708e Fix SQLite date functions (#10270) 2021-12-03 14:57:42 +00:00
keesvanbemmel
6617b08f88 Added "null/admin" accountability and emitEvents opts (#10268) 2021-12-03 14:55:48 +00:00
Rijk van Zanten
a77f08b3d3 Add table prefix to groupBy query (#10250)
Fixes #10092
2021-12-03 00:28:25 +00:00
Rijk van Zanten
198e585054 Fix handling of nested arrays in snapshot diffing (#10246)
* Fix handling of nested arrays in snapshot diffing

Fixes #10167

* Remove unused import
2021-12-02 17:53:17 -05:00
Łukasz Szcześniak
e17048e653 Remove runMigrations from database install (#9911) (#10003)
* Remove `runMigrations` from `database install` (#9911)

* Fix typo (#9911)

* Remove unnecessary import (#9911)
2021-12-02 16:05:54 -05:00
José Varela
7966b4ea9d Fix empty current permissions (#10236) 2021-12-02 19:49:11 +00:00
Rijk van Zanten
3fe67d8c62 Force CDNs to ignore module bundle output in cache (#10227) 2021-12-02 11:07:26 -05:00
Oreille
525e2548b4 Fix compatibility with Postgres <= 10 (#10139)
* Use indnatts instead of indnkeyatts in postgres dialect

* Update knex-schema-inspector

* Add PG10 for debugging

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 20:36:46 +00:00
ian
5bd41bcabb Shift hook emits to field service (#9351)
* Shift hook emits to field service

* Update field hooks to use filter and action

* Allow updating filter payload in hook

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 20:14:37 +00:00
Oreille
bc864d1f51 Improve helpers structure (#10052)
* Improve helpers structure

* Added DatabaseHelper base class

* Refactor index.ts
2021-12-01 15:08:24 -05:00
Alejandro Castaño González
022b867a23 Add status field in the directus_notifications collection (#10064)
* Add status field

* Update notification type
2021-12-01 14:19:48 -05:00
Azri Kahar
2c8055c718 Add limit to graphql aggegrated queries (#10077) 2021-12-01 14:16:37 -05:00
Oreille
d1b35774ac Fix SQL Server text casting (#10084) 2021-12-01 14:16:02 -05:00
Oreille
94985d547a Fix MySQL tinyint(1) not being treated as boolean (#10083) 2021-12-01 14:01:48 -05:00
Oreille
0425809db1 Fix string filter unexpectedly being casted to number (#10138)
* Fix string unexpectedly being casted to numbers

* Parse filter with multiple keys into `_and` block.

* Fixed filter structure in tests
2021-12-01 13:55:54 -05:00
Azri Kahar
8dec148ca2 refresh edited insights panel on change (#10180)
* refresh edited insights panel on change

* move api simpleHash to shared utils getSimpleHash

* Simply reactivity fix for time-series

* Remove unused import

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 17:26:55 +00:00
ian
32e0396b3e Improve mentions keyboard accessibility (#10173)
* Improve keyboard accessibility

* Add check for up down keys

* Add newline check for triggering

* Allow keyboard insertion of users

* Clear positional node errors on safari

* Add a little sanity check to please automated code checkers

* Use active instead of dashed

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 11:14:09 -05:00
rijkvanzanten
9bf033c18d v9.1.2 2021-11-25 12:36:24 -05:00
rijkvanzanten
5d3a630fe6 v9.1.1 2021-11-24 21:09:22 -05:00
Rijk van Zanten
68f8a13235 Fix dependency listing (#10038) 2021-11-24 21:08:15 -05:00
rijkvanzanten
7a1c534b36 v9.1.0 2021-11-24 17:56:26 -05:00
Alisher Nazarhanov
05e69ecabd Fix hidden folders/collections (#9207) (#10005)
Show parent folders/collections if user has at least one permission to child collection (#9207)
2021-11-24 22:24:52 +00:00
Azri Kahar
19906d0501 Fix deep groupBy (#9996)
* fix deep _groupBy not turning to _group

* add groupBy to roles user count

* Revert "add groupBy to roles user count"

This reverts commit 16340eef5a.
2021-11-24 17:14:29 -05:00
Jay Cammarano
25375cc481 Add notifications system and support user mentions in comments (#9861)
* v-menu de/activated onKeyDown. No List yet.

* v-list

* add user suggestion

* uuids replaced

* user-popover working

* avatars flex row with usernames in suggestions

* added space to end of uuid insert

* autofocus + move caret to end of last insert

* removed unnecessary setTimeout()

* fixed filter 500 with ids

* better fix

* New translations en-US.yaml (French) (#9907)

* New translations en-US.yaml (French) (#9912)

* New translations en-US.yaml (French) (#9916)

* New translations en-US.yaml (Russian) (#9918)

* New translations en-US.yaml (Swedish) (#9920)

* Email updates (#9921)

* add from name for emails

* updatd email template style

* reset password email copy

* updated logo to newest version

* update invite email copy

* decouple field template logic

* push up styling

* Start on new v-template-input

* Add notifications API endpoints

Squashed commit of the following:

commit 9d86721ef795d03bc55693c0f99bde8e269d60e9
Merge: b4458c19f 34131d06e
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Mon Nov 22 09:27:43 2021 -0500

    Merge branch 'mentions' into mentions-api

commit b4458c19f7c54f18fa415fc04c63642c2f5a17b0
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 18:34:04 2021 -0500

    Remove unused import

commit e6a9d36bbfdf95cb18d29336da61ecb14b677934
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 18:28:31 2021 -0500

    Extract user mentions from comments

commit b3e571a2daa287e1740a050096913662a57e9861
Merge: c93b833d2 af2a6dd7f
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 17:39:52 2021 -0500

    Merge branch 'mentions' into mentions-api

commit c93b833d2b848e306c434b370d4e4e11967e85d0
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 17:35:45 2021 -0500

    Send emails w/ parsed MD

commit 64bbd6596f20a07028d2387d60e33dfe4f91c032
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 16:18:16 2021 -0500

    Add notifications endpoint + permissions

commit fba55c02dc9c303a38b1b958350684cccd3dd82c
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 15:33:28 2021 -0500

    Add system data for notifications

* push

* Make v-template-input work

* Add the two-way binding

* submit button posting, not clearing text area

* comment text area clearing on submit

* Replace insertion correctly

* Added scope support to LDAP group and user search (#9529)

* Added scope support LDAP group and user search

* Fixed linter screwing up my markdown

* Update docs/configuration/config-options.md

* Always return correct DN for user with sub scope

* Fix indeterminate meta and schema property in advanded field creation (#9924)

* Fix impossibility to save M2M (alterations not triggered) (#9992)

* Fix alterations refactor

* fix roles aggregate query (#9994)

* Update iis.md (#9998)

added the IIS URL Rewrite module as a requirement

* New translations en-US.yaml (English, United Kingdom) (#10001)

* Fix LDAP race condition (#9993)

* Fix input ui

* Revert changes to v-field-template

* Update mentions permissions

* Fix linter warnings

* Optimize sending flow

* Revert "Rename activity->notifications module (#9446)"

This reverts commit 428e5d4ea9.

* Add notifications drawer

* Update migrations

* Improve constraints

* Add email notifications toggle on users

* Add docs, fix graphql support

* Move caret-pos to devdeps

* Remove unused new triggerKeyPressed system

* Remove unused use-caret composable

Co-authored-by: Nitwel <nitwel@arcor.de>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
Co-authored-by: Aiden Foxx <aiden.foxx@sbab.se>
Co-authored-by: Oreille <33065839+Oreilles@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Paul Boudewijn <paul@helderinternet.nl>
2021-11-24 16:11:26 -05:00
Oreille
2f0e305796 Refactor parseFilter to only flatten filter entries that need it (#9804)
* Refactor parseFilter to only flatten filter entries that need it

* Fixed typescript check

* Use custom get function instead of lodash's.

* Improved get function readability

* Allow null result from shared parseFilter

* Add missing defaultValue in get function

* Change parseFilter argument type from Record<string, any> to Filter | null

Co-authored-by: ian <licitdev@gmail.com>
2021-11-23 12:35:12 -05:00
Aiden Foxx
bd551ea9e4 Fix LDAP race condition (#9993) 2021-11-23 09:37:55 -05:00
Aiden Foxx
8b9671baaa Added scope support to LDAP group and user search (#9529)
* Added scope support LDAP group and user search

* Fixed linter screwing up my markdown

* Update docs/configuration/config-options.md

* Always return correct DN for user with sub scope
2021-11-22 15:05:01 -05:00
Alexander
ad54b96184 Fix unexpected types (#9599)
* fix/9576

* fix: mysql tinyint booleans

* fix: failed tests

* fix: linter error

* Add unsigned types for mysql

Co-authored-by: Oreille <33065839+Oreilles@users.noreply.github.com>
2021-11-22 14:20:52 -05:00
Aiden Foxx
beed15c199 Fix issue with OAuth setting incorrect initial session data (#9964)
* Fix issue with OAuth setting incorrect initial session data

* Fix issue with OpenID setting incorrect initial session data
2021-11-22 10:44:04 -05:00
renovate[bot]
241dc13c65 Update NPM dependencies (non-major) (#9968)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-22 10:05:40 -05:00
Aiden Foxx
c842b77352 Throw if OpenID provider doesn't support code flow (#9862) 2021-11-20 12:53:22 -05:00
Ben Haynes
a920041c5b Email updates (#9921)
* add from name for emails

* updatd email template style

* reset password email copy

* updated logo to newest version

* update invite email copy
2021-11-18 17:18:48 -05:00
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