Convly
87a50a0231
Use directly getModel instead of fetching all the models
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:26 +02:00
Convly
8a69d187d0
Update models attributes & get models from the database manager
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:24 +02:00
Convly
1f3506710d
Handle special scenarios where pluginName === 'admin' when retrieving models
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:16 +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
Pierre Noël
c12c6e95b4
make serverUrl absolute for watch-admin ( #6405 )
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-05-28 11:38:50 +02:00
Pierre Noël
4a6ef41201
openbrowser on localhost instead of 0.0.0.0 ( #6391 )
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2020-05-28 11:17:59 +02:00
Alexandre BODIN
f1116160ad
Merge pull request #6012 from mkqavi/fix/local-upload-url-encoding
...
Fix url encoding for local upload provider
2020-05-19 13:40:18 +02:00
Pierre Noël
20aedc0e68
refactor
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-05-15 17:15:24 +02:00
Marvin König
fa31b5dfc2
Fix file names containing reserved and unsafe URL characters
...
This fixes the `generateFileName` function in the Strapi upload plugin,
so that reserved and unsafe charactes for URLs are replaced with
underscores.
Signed-off-by: Marvin König <dev@mkqavi.com>
2020-05-13 13:17:26 +02:00
Pierre Noël
57d7d876b7
Fix/#4513/ability to use a sub path behind a proxy ( #5833 )
...
* add possibility to use strapi on a non-root base url path
* fix documentation password form
* use server.url and admin.url in config
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* update doc proxy
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* move server.url location in config
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* refacto
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* add possibility to put relative urls
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* allow '/' as an admin url + refacto
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* update yarn.lock
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* Remove default proxy option
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
* fix github provider
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* fix github login
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* Remove files that should be here
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Pierre Noël <pierre.noel@strapi.io>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-08 13:50:00 +02:00
Thiago Augusto
a96d41eeca
Preventing parse-type Date test failure due to Time Zone differences ( #6044 )
...
Signed-off-by: Thiago Augusto <thiago.android88@gmail.com>
2020-05-05 19:34:32 +02:00
Pierre Noël
e0e561e6d0
add test for escapeQuery()
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-04-30 19:47:04 +02:00
Pierre Noël
015480b1b5
Change search logic
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-04-30 19:47:02 +02:00
Alexandre Bodin
087920fb47
Merge branch 'develop' into features/media-lib
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-31 11:58:31 +02:00
Pierre Noël
f2663eb1f7
improve joinTable customization + test collectionName duplicates
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-27 15:51:23 +01:00
soupette
38b7823b34
Merge branch 'develop' of github.com:strapi/strapi into features/media-lib
2020-03-26 08:01:22 +01:00
Alexandre Bodin
d19189b626
Treat mime ncontains as AND params in files list
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-23 17:30:19 +01:00
Pierre Noël
be6517c02d
refacto strapi-generate-* + move nameToSlug to strapi-utils
...
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-23 10:42:34 +01:00
Alexandre Bodin
c8de166051
Add deleteRelations logic in connectors
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-20 11:04:23 +01:00
Alexandre Bodin
7a8c865051
Merge branch 'develop' into features/media-lib
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 15:18:08 +01:00
Alexandre Bodin
f6cf06d22c
Add notNull validator for edition
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-18 09:02:48 +01:00
Alexandre Bodin
780f2695df
Add some more rules
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-17 15:55:08 +01:00
Alexandre Bodin
c7594f5743
Add some default validators for numbers and string
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-17 15:55:07 +01:00
Alexandre Bodin
7eece2bb00
Init entity serivce validators and refactor boom middleware to render errors
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-17 15:55:06 +01:00
Alexandre Bodin
eec7d04b20
Fix policy tests after prefix renaming
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 10:06:17 +01:00
Alexandre Bodin
3ce852af61
User :: in policies prefix and update documentation accordingly
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:39 +01:00
Alexandre Bodin
0c6d39297f
Add graphql tests for single-types
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:37 +01:00
Alexandre Bodin
0b59bd61f6
Refactor policy util and error handling
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:37:16 +01:00
Alexandre BODIN
23f7af19f6
Merge pull request #5015 from adcar/patch-1
...
Fix typo invalid date format
2020-01-21 15:16:37 +01:00
Alexander D. Cardosi
2761445aa0
Fix typo
...
Fix a small typo
Signed-off-by: adcar <alexanderdcardosi@gmail.com>
2020-01-17 19:38:00 -05:00
Alexandre Bodin
76b0dd7385
Merge branch 'features/webhooks' into webhooks/init
2020-01-07 19:17:12 +01: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
864578a0c9
Improve validators
2019-12-24 15:01:03 +01:00
Alexandre Bodin
74d25bb459
Add validators
2019-12-24 14:49:44 +01:00
Hemant Yadav
b31bae2917
Update parse-multipart.js
...
typo fix
2019-12-23 23:25:18 +05:30
Alexandre Bodin
a9cef57687
Lower case policy controller name
2019-12-11 14:23:45 +01:00
Alexandre Bodin
a503c20353
Cleanup strapi-utils
2019-12-11 10:22:47 +01:00
Alexandre Bodin
3446b7f577
wip
2019-12-10 14:21:20 +01:00
Alexandre Bodin
f55e1f704b
Do not parse date types
2019-12-05 12:29:24 +01:00
Alexandre Bodin
909266232f
Add tests on datetime
2019-12-04 18:49:47 +01:00
Alexandre Bodin
fe5ff4bc83
Handle and parse datetime & timestamps
2019-12-04 17:49:14 +01:00
Alexandre Bodin
06b0cc22c8
parse date types
2019-12-04 17:49:13 +01:00
Alexandre Bodin
4c784318d8
Handle time type
2019-12-04 17:49:13 +01:00
Alexandre Bodin
62237bcd08
Mongoose fix populate and support dynamic zone populate
2019-11-26 17:01:58 +01:00
Alexandre Bodin
a5288f0cf7
Implement new populate algorithm loading nested components and dynamic zones
2019-11-13 18:49:05 +01:00
Alexandre Bodin
b9122edf0d
Rename groups to components
2019-11-13 18:49:02 +01:00
Alexandre Bodin
66b2d4f5c3
Init
2019-10-23 17:02:23 +02:00
soupette
beef6e5510
Fix conflicts
2019-10-10 06:34:31 +02:00
Alexandre Bodin
444ce89b19
Fix sanitize bug with mongo objectid and use lower-case for getModel
2019-10-04 11:38:54 +02:00
soupette
6f8b23d254
Fix conflicts
2019-09-27 16:26:09 +02:00