HichamELBSI
1a42da3007
Merge branch 'master' into features/sso
2021-02-17 11:43:34 +01:00
jonmol
7a6432da73
added a way to have a less expensive search ( #9316 )
...
* added a way to have a less expensive search
* renamed skipSearch to searchable
* forgot to remove one skipSearch
* skip non searchable fields on mongoose query
* cleaned up the if statement
* reverted change to strapi-plugin-upload/models
Co-authored-by: Luis del Rio <ldelriof@gmail.com>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2021-02-16 17:37:30 +01:00
Quentin Dauprat
de33136264
feat(users-permissions): Add Auth0 provider ( #8362 )
...
* feat(users-permissions): Add Auth0 provider
Signed-off-by: Heziode <heziode@protonmail.com>
* fix(users-permissions): update path to providers settings
Update path due to change in U&P path in v3.1.5
Signed-off-by: Heziode <heziode@protonmail.com>
2021-01-25 09:09:45 +01:00
Kim, Harim
ac3d10006c
Add session option to Strapi query for Mongo Multi-Document transaction ( #6447 )
...
* add session option to mongo queries for transaction
Signed-off-by: harimkims <harimkims@gmail.com>
* seperate session parameter in buildQuery functions
Signed-off-by: harimkims <harimkims@gmail.com>
* clarify comment about mongoose create requirement
Signed-off-by: harimkims <harimkims@gmail.com>
Co-authored-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-13 10:37:23 +01:00
Jean-Sébastien Herbaux
a77928d8ed
Fix deep query sort when using pagination operators (start, limit) ( #9046 )
2021-01-06 14:25:26 +01:00
Alexandre Bodin
2a6e1e0b84
Add tests to data-loaders
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2021-01-04 15:55:07 +01:00
Pierre Noël
f8f7a4a89f
fix mongo preview when array is missing ( #8887 )
2020-12-14 12:01:27 +01:00
Alexandre Bodin
e630cee0c9
Small refactoring to make the code easier to read
2020-12-10 11:17:41 +01:00
Convly
a415638848
mongoose:buildQuery : add the sort operator after the query matches, handle id=>_id, optimize the reorder by ids
2020-12-10 10:02:29 +01:00
Convly
0096024de6
Fix deep filtering / sort on mongodb
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-12-08 16:56:21 +01:00
Convly
92451db825
Add deep sort to mongoose, fix sort order on both connectors, cleanup
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-12-08 16:56:21 +01:00
Alexandre Bodin
07e7cfc0bd
Make lint stricter and fix the errors
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00
Convly
07c38420d4
Fix buildQuery for polymorphic relations
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-10-19 15:42:32 +02:00
Convly
e1e2dd3419
Remove unnecessary custom option from query
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-10-19 15:39:56 +02:00
Convly
03f5342123
Fix deepFiltering with draft & publish
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-10-19 15:39:56 +02:00
Jean-Sébastien Herbaux
b2b4515d9b
Fix D&P population ( #8249 )
...
* Fix D&P population (gql, rest)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix units tests
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix mongoose filtering on non draft & publish model
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-08 20:54:48 +02:00
Jean-Sébastien Herbaux
c4716d5668
[D&P] Return published content by default from get apis ( #7657 )
...
* Add _publicationState request param / Returns live by default for CT that have D&P activated
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:46 +02:00
Alexandre Bodin
38d67fc873
Fix mongo issues
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 16:07:11 +02:00
Alexandre Bodin
966d9c554f
Move hasDeepFilters to utils
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:36:26 +02:00
Alexandre Bodin
6776a3ce46
Add mongo support
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:36:24 +02:00
Pierre Noël
970a470034
add tests + make role decription optional + refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:34 +02:00
Pierre Noël
10092f5a57
refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-01 11:59:33 +02:00
Pierre Noël
950a21469f
add filtering to search route
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-06-30 15:50:52 +02:00
Alexandre Bodin
2886bb7acb
Add manyWay lookup match expr and fix conversion of id and _id type for mongoose match
2020-01-07 12:51:21 +01:00
Alexandre Bodin
66b2d4f5c3
Init
2019-10-23 17:02:23 +02:00