11469 Commits

Author SHA1 Message Date
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
edae06b898 Add entity validator service
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
37b184d063 Fix test
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-17 15:54:49 +01:00
Alexandre Bodin
77b1a2944b Add mongoose uid type
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-13 16:46:37 +01:00
Alexandre Bodin
3b41eb6230 Add uid type to bookshelf column generator and init tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-13 11:36:26 +01:00
Alexandre Bodin
8a6c48eb14 Merge branch 'develop' into features/single-types 2020-02-13 11:36:07 +01:00
cyril lopez
035265b3fd
Merge pull request #5226 from strapi/single-types/left-menu
Reskin and refacto the left admin menu and add Single type section
2020-02-13 10:27:37 +01:00
cyril lopez
fa4b57e0b8
Merge pull request #5225 from strapi/chore/remove-saga
Update Onboarding (blue box)
2020-02-13 10:16:04 +01:00
soupette
11bd6cc0ed Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-13 07:50:20 +01:00
HichamELBSI
fc1541330b Fix after PR comments
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-02-12 17:54:16 +01:00
Alexandre BODIN
b881506829
Merge pull request #5231 from strapi/single-types/uid-field
Single types/uid field
2020-02-12 17:37:23 +01:00
virginieky
da82757c95
Merge branch 'develop' into chore/remove-saga 2020-02-12 13:58:51 +01:00
Virginie Ky
540830a7a6 Merge branch 'develop' of github.com:strapi/strapi into develop
Signed-off-by: Virginie Ky <virginie.ky@gmail.com>
2020-02-12 13:53:51 +01:00
Alexandre Bodin
5d1e7c101e Handles clearing defaults and non existing targetField on update
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-12 11:28:08 +01:00
Alexandre Bodin
63c248bfde Add maxLength rules to UID validators
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-12 10:57:37 +01:00
Alexandre Bodin
f9a4b94040 Add default uid value validation
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-12 10:46:56 +01:00
soupette
081bdb613f Fix tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-12 10:46:44 +01:00
soupette
1a5a3fad67 Add comments
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-12 10:14:10 +01:00
Alexandre Bodin
9012e7a0ca Add UID in CTB validators
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-12 09:06:38 +01:00
Alexandre BODIN
3014cd58c5
Merge pull request #5220 from strapi/single-types/kind-switch
Single types/kind switch
2020-02-11 18:19:06 +01:00
Alexandre Bodin
5e79e9c275 Add appropriate tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 18:15:56 +01:00
Alexandre Bodin
aff529d09e Check db count when switching kind
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 18:15:56 +01:00
Alexandre Bodin
fc8d72baaa Handle switching between single type and collection type. This rebuilds the api entierly
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 18:15:55 +01:00
Alexandre BODIN
9b415eda0f
Merge pull request #5219 from strapi/single-types/core-api
Single types/core api
2020-02-11 18:15:00 +01:00
soupette
597cf9709d Add marketplace plugins to the admin reducer
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-11 17:52:01 +01:00
Alexandre Bodin
04f6050ae1 Cleanup feedbacks
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 17:35:09 +01:00
soupette
86dcf65c20 Use logo from the plugin object instead of the one from github in the user-permissions plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-11 17:29:14 +01:00
soupette
f924a53a8a Add pluginLogo to the plugin object in order to prevent fetching the logo from github
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-11 17:15:53 +01:00
HichamELBSI
4f5cd5a209 Reskin and refacto the left admin menu and add Single type section
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-02-11 17:13:31 +01:00
soupette
945e1047d3 Update link with next single type feature
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-11 16:53:34 +01:00
soupette
f955ed733d Fix link to create a new collectionType
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-11 16:50:47 +01:00
soupette
41d649f725 Remove saga from Onboarding container and simplified the logic a little
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-11 16:45:10 +01:00
Alexandre Bodin
5723af75c5 Fix issue with using local pakcage as dependency
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 16:24:06 +01:00
soupette
825721713a Fixes #4131 2020-02-11 15:02:58 +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
49b6a44078 Fix lint
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:40:13 +01:00
Alexandre Bodin
628b2e54e6 Refactor graphql plugin structure
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:40 +01:00
Alexandre Bodin
76393d860b Clean Resolver buildShadowCRUD
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:40 +01:00
Alexandre Bodin
49f0fdad8c Refactor schema definition language utils
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:40 +01:00
Alexandre Bodin
f1cbc014da Cleanup old graphql code
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:39 +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
04476e32a6 Cleanup graphql
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:39 +01:00
Alexandre Bodin
3f5f839b4c Build mutation and resolves in shadowCrud and then only build the missing ones
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:38 +01:00
Alexandre Bodin
7e6c23d0b7 Init cleanup graphql
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:38 +01:00
Alexandre Bodin
900cec28f4 Change mutaion definition for single types
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:37 +01:00
Alexandre Bodin
0285c7bd96 Add metadatas to resolvers to know where they are created
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:37 +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
c0bf015eb6 Refactor core api and add tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:36 +01:00
Alexandre Bodin
0a1d7c77db Add tests for CORE api single-types
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:36 +01:00