194 Commits

Author SHA1 Message Date
Alexandre Bodin
d31f5b92bb Use yarn if installed on strapi new. 2019-05-17 16:31:48 +02:00
Alexandre Bodin
ce1a327ef2 Merge branch 'master' into tech/build-process 2019-05-03 11:37:01 +02:00
Jim LAURIE
ca46db9b31 Fix #3192 filter on timestamp attributes 2019-04-30 18:33:14 +02:00
Alexandre Bodin
319c63028e Cast arrays and build mongo where match with a $and 2019-04-25 18:18:54 +02:00
Alexandre Bodin
4ceae56afd Cast non nil values and not only truthy ones 2019-04-23 13:18:09 +02:00
Alexandre Bodin
0ba139307c Handle many to many correctly 2019-04-19 17:32:43 +02:00
Alexandre Bodin
50b371b853 Merge branch 'beta' into tech/core-api 2019-04-19 08:26:13 +02:00
Alexandre Bodin
0d72faaddc Merge branch 'master' into beta 2019-04-18 18:47:48 +02:00
Alexandre Bodin
e2869f0b7e Set the fetch limit to 100 by default and add a default param 2019-04-16 17:25:27 +02:00
Alexandre Bodin
9e9ff9907d Refactor strapi load 2019-04-16 08:50:22 +02:00
soupette
a2192c1dec Fix conflicts 2019-04-09 16:01:01 +02:00
soupette
e56e46e030 Split admin and users.
Co-authored-by: lauriejim
2019-04-09 12:09:03 +02:00
Alexandre Bodin
9bc56a3535 Apply review changes 2019-03-29 16:53:25 +01:00
Alexandre Bodin
e435201de4 Move basic type cast to the root buildQuery in strapi-utils 2019-03-28 17:12:43 +01:00
Alexandre Bodin
3098309369 Use mongoose.find on simple queries for a perf boost 2019-03-26 14:57:02 +01:00
Alexandre Bodin
a6ffb9237e Cleanup unused code 2019-03-22 19:25:29 +01:00
Alexandre Bodin
f8e8928d8a Handle orWhere in mongo and format value / cast 2019-03-22 18:08:11 +01:00
Alexandre Bodin
6fcb38780d Init code cleanup and auto loading of morph realtions in populated path 2019-03-22 17:15:51 +01:00
Alexandre Bodin
d2db6b633f Mongo + graphql v1 2019-03-21 09:07:36 +01:00
Kamal Bennani
490a226d9e Add the possibility to define post processors functions & add a new method 'where' in the query class 2019-03-21 09:07:02 +01:00
Kamal Bennani
396f3c8ac0 Don't apply the limit when using loaders 2019-03-21 09:07:02 +01:00
Kamal Bennani
c16729084e Add a thru method to the query to intercept it 2019-03-21 09:07:02 +01:00
Kamal Bennani
bd1930a75c Create a generic Builder and Query APIs 2019-03-21 09:06:06 +01:00
Sajjad Shirazy
a9606b6eae Supporintg IN and NOT IN as a filter type 2019-02-03 15:08:36 +03:30
Aurélien Georget
ce242dfd89 Fixes #2672 2019-01-24 11:56:21 +01:00
Aurélien Georget
53b195c917 Avoid useless population 2018-12-06 19:12:31 +01:00
Aurélien Georget
e1ce257d2f Revert codebase and apply limit, skip, start and sort parameters 2018-12-06 18:11:53 +01:00
Aurélien Georget
b0aaae9f12 Resolve conflicts 2018-11-27 18:48:37 +01:00
Jim LAURIE
6558b38814 Fix delete all 2018-11-27 14:45:01 +01:00
Aurelsicoko
21d21dfc8f Handle single fetch & allow override of default auto-population 2018-11-22 18:32:33 +01:00
Kamal Bennani
511ca55461
fix 1st level deep filter 2018-11-19 00:10:48 +01:00
Kamal Bennani
0ed9b7643a
Merge where and relation payload 2018-10-28 23:42:22 +01:00
Kamal Bennani
7801aac50f
Turn arrow functions to object functions to get to 'this' 2018-10-28 23:42:22 +01:00
Kamal Bennani
bbfb2418a5
Move functions that deals with stages to the mongoose relation file 2018-10-28 23:42:21 +01:00
Kamal Bennani
9862705f8f
fix rebase issue 2018-10-28 23:42:21 +01:00
Kamal Bennani
2d1cf3591e
Split convertParams to multiple stage steps 2018-10-28 23:42:20 +01:00
Kamal Bennani
d018e29a42
Use the correct hook folder path 2018-10-28 23:42:20 +01:00
Kamal Bennani
4c3d5da8ee
Cast candidate ObjectID to Mongoose ObjectID 2018-10-28 23:42:19 +01:00
Kamal Bennani
5506aef710
feat(filters): add logic to parse relations filter if exist 2018-10-28 23:42:18 +01:00
Kamal Bennani
de878dac4d
Add a utility function to get the table name for a many-to-many relation 2018-10-28 23:42:17 +01:00
Alberto Maturano
154fc28a57 Normalize to standar file permissions
As a result of taking a look on PR #1967 I realized there is 819
executable files in this repository. It is obvious this is an error.
2018-09-24 12:33:09 -05:00
Alberto Maturano
0e164d6da8 Don't parse npm scripts for dynamic config
Fix the fix merged with #1575

The original patch was done over a block of code moved on #1667
resulting in re-introducing code that now is not invoqued and continue
with the bug reported on #916.

This patch take the original changes and put them in the current correct
place.
2018-09-21 16:27:35 -05:00
Anthony Guimard
73fb19ca0f Update isNumeric function with Object type check.
Fix false positive of isNumeric function in order to allow
where query on nested object in graphql.
2018-09-15 23:16:20 -04:00
Jonathan Lovera
83549e4ffd
Allow global policies to be organised in folders
Hi, 

I'm been using Strapi for a project I'm doing and you guys have done a great work! I love the idea.

This is a small Pull Request, however, I find it very useful if you would like to have your global policies organized by folders. Just in case you have more than 10 of them.

If you try at the moment to create a policy inside a folder, it will throw 
```
Cannot read property 'handler' of undefined
```

This will fix it and it will allow you to have folders on your `config/policies` folder.
2018-08-17 14:27:59 +10:00
Alberto Maturano
186eb4de47 Parse environment variables on build configuration
Move existing code to a shared library and invoke it on the build
process to parse environment variables on configuration files.

Looking for a consistent behavior.

close #1590
2018-08-06 12:38:20 -05:00
Jim LAURIE
db8a47a016 Merge branch 'master' of github.com:strapi/strapi into rename-hook-middleware 2018-07-17 08:53:36 +02:00
David Thomas
c785248b2c Fix removal of the filter keyword for field type comparison 2018-07-13 19:25:40 -04:00
David Thomas
422530ceed Update fieldType comparison operator to strict 2018-07-13 18:00:47 -04:00
David Thomas
b3b2b32dd8 Merge branch 'master' of github.com:strapi/strapi 2018-07-13 17:52:43 -04:00
Jim LAURIE
d79a16b18c Fix hook lazy loading 2018-07-13 16:59:57 +02:00