145 Commits

Author SHA1 Message Date
Andrey Hohutkin
fb39ebecc4
Cleaning 2019-10-29 09:42:49 +02:00
Andrey Hohutkin
42d4543802
Using returning promise instead of callbacks 2019-10-29 09:41:23 +02:00
Andrey Hohutkin
c51c6b06c5
Lifecycle pre callbacks can be cancelled
In case that any Lifecycle pre callback returns Promise.reject it will be caught by Admin UI showing error banner.
It allows custom validations with Lifecycle callbacks as well
Admin UI will show saving process without it in case of error inside Lifecycle callback just writing error message in log.
2019-10-28 16:51:42 +02:00
Alexandre Bodin
02f98bc887 Fix groups creation/update not working when null group bofre in the loop 2019-10-18 11:20:51 +02:00
Jelmer Visser
5ee6332167 Escape MongoDB password (#4231)
* Encode MongoDB password if using srv url

* Always encode MongoDB password
2019-10-14 11:48:42 +02:00
soupette
66104d9e11 Fix conflicts 2019-10-01 17:56:52 +02:00
Jelmer Visser
3111ee4942 Fix for null values with manyToMany and manyWay 2019-09-26 16:07:53 +02:00
Alexandre Bodin
4206419405 Convert mongo search results to plain js objects 2019-09-18 14:30:12 +02:00
Alexandre BODIN
7a94d9dad9
Merge branch 'master' into chore/routing-x-forwarded 2019-09-18 13:27:39 +02:00
Alexandre Bodin
293dbb89d9 Populate groups 1st level relations 2019-09-17 11:32:57 +02:00
Alexandre Bodin
e20d781383 Merge branch 'master' into chore/routing-x-forwarded 2019-09-12 09:59:11 +02:00
Ralph
1bae7943fa
Connect to mongo db 4.0.x using mongoose 5.7.0
Added support for connection setting useUnifiedTopology so it can be positioned via the database.json file in strapi project. By default it is positioned to false.
If this is not set and you are connecting to a mongo db v4.0.x using the beta-16.1 and higher version of the strapi-hook-mongoose you will get the following warning message when starting the strapi server:
DeprecationWarning: current Server Discovery and Monitoring engine is
deprecated, and will be removed in a future version. To use the new Server
Discover and Monitoring engine, pass option { useUnifiedTopology: true } to
the MongoClient constructor.
2019-09-11 15:37:42 +02:00
Alexandre Bodin
25bf0e4ca8 Use kind when provided on morph relation 2019-09-10 11:05:57 +02:00
Alexandre Bodin
705b8a5f76 Mongo delete return plain js object 2019-09-06 14:33:24 +02:00
Alexandre Bodin
774f95a5a7 Refactor mongoose deepfiltering to populate infos correctly 2019-08-20 12:07:45 +02:00
Alexandre Bodin
a62a09e67e Change mongo connection error message 2019-08-19 17:32:33 +02:00
Alexandre Bodin
80989ee8ec Make hook loading async 2019-08-19 09:37:37 +02:00
Alexandre Bodin
e1a319a25e Mongoose unique index error logs and other index error logs 2019-08-12 10:15:22 +02:00
Alexandre BODIN
f84962597e
Merge branch 'develop' into group/tests 2019-08-09 15:45:05 +02:00
Alexandre Bodin
d6f14550d2 Fix content-manager stuff for mongoose 2019-08-09 13:48:31 +02:00
Alexandre Bodin
34a5424a8a Fixes to mongoose groups 2019-08-09 11:45:31 +02:00
Alexandre Bodin
4dcb694a57 Support Long in mongoose 2019-08-08 14:35:33 +02:00
Alexandre Bodin
4ad7f5bd89 Support biginteger < 2^53 2019-08-08 14:30:45 +02:00
Alexandre Bodin
60d04d26eb Init group tests and fix some groups issues 2019-08-08 14:30:43 +02:00
Alexandre Bodin
57120c9a02 Add tests and fix support for bigintegers so it is always a string when it comes out of the database 2019-08-08 14:30:40 +02:00
Alexandre Bodin
515d756626 Fix mongo toObject on null objectes 2019-08-01 15:59:21 +02:00
Alexandre Bodin
09761294e9 Fix mongo support 2019-08-01 14:40:02 +02:00
Alexandre Bodin
8e8433662b rename wysiwyg type to richtext for future plans 2019-07-29 18:05:18 +02:00
Alexandre Bodin
f484b4d66e Make groups non repeatable by default 2019-07-29 08:15:18 +02:00
Alexandre Bodin
f757d4d952 Support relations inside of group creation 2019-07-29 08:15:18 +02:00
Alexandre Bodin
1dea89ca8f Support type wysiwyg instead of appearance param 2019-07-23 13:36:06 +02:00
Alexandre Bodin
82fc041acd Fix typo 2019-07-22 18:17:22 +02:00
Alexandre Bodin
db0656e6a3 Fix missing dates in mongoose allAttributes 2019-07-22 18:16:16 +02:00
Alexandre Bodin
7e11acac32 Fix bugs mongo 2019-07-18 15:49:24 +02:00
Alexandre Bodin
74402021b7 group is not required by default 2019-07-17 13:41:02 +02:00
Alexandre Bodin
c020f0a6cd mongoose working version 2019-07-17 00:03:38 +02:00
Alexandre Bodin
2befa1cf48 Use primaryKey on delete queries 2019-07-16 23:27:34 +02:00
Alexandre Bodin
8332ed0526 Add deleteMany to mongoose 2019-07-16 23:13:05 +02:00
Alexandre Bodin
09dcea27f1 refactor mongoose queries to match api 2019-07-16 21:24:09 +02:00
Alexandre Bodin
cd19e04d6d Init queryManager 2019-07-16 17:23:24 +02:00
Alexandre Bodin
78380aa220 Implement create and updates for groups in a CT 2019-07-12 17:54:42 +02:00
Alexandre Bodin
1b130f7a7b Init group inserts 2019-07-11 13:52:21 +02:00
Alexandre Bodin
5eba276f0c Merge branch 'master' into feature/groups 2019-07-11 10:14:50 +02:00
Louis Augry
08e2f47800
Merge branch 'master' into fix-documentation-typo 2019-07-10 15:11:52 +02:00
Alexandre Bodin
343648988c Add manyWay support to mongoose hook 2019-07-09 09:18:06 +02:00
Alexandre Bodin
30e8a673f4 Merge branch 'master' into feature/groups 2019-07-09 09:17:31 +02:00
Louis Augry
a3fe9d5a38 Fix documention typo 2019-07-08 15:10:17 +02:00
Alexandre BODIN
250cfac82d
Merge branch 'master' into chore/strapi-new-improvments 2019-07-05 18:41:36 +02:00
Javier Castro
83d0bc0978 feat: add _null operator 2019-07-05 10:45:14 -03:00
Alexandre Bodin
5f29e81556 Group schema + auto populate for mongoose 2019-07-04 15:27:27 +02:00