19 Commits

Author SHA1 Message Date
HichamELBSI
7a4a87fa68 Merge branch 'develop' of github.com:strapi/strapi into fix/single-types-issues
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-23 17:18:14 +02:00
HichamELBSI
2f7f9f5f25 Allow deselect files
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-16 12:43:55 +02:00
HichamELBSI
bbd4fcb7e3 Fix toggle all
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-16 10:29:25 +02:00
HichamELBSI
a672b66b7f Fix filters and allowed types
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-10 14:06:09 +02:00
Alexandre Bodin
cc9d23c3ac Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-07 20:24:39 +02:00
Jean-Sébastien Herbaux
a583d1b859
Fix/#3184/fix server crashs on database change (#5703)
* Don't set connection field on create/edit operation on content-types & components

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Make sure that every component has a valid connection attribute

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove connection check on components load

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove default connections from core & webhook stores but make sure it's defined in the application lifecycle

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix component's associations that can be undefined instead of empty in populateBareAssociations

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove "default" connection from plugins' models

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove connection attribute from generated models (cli)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Mutate each component instead of reassign

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Build core_store and webhook model based on the current config

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Add connection to templates conditionally (based on args)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Set default value for description to undefined instead of empty string

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove unnecessary complexity

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Update getStarted models

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix attributes parsing for generate:model

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Removed tpl option from generate:model/api

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove tpl option from cli

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-04-07 16:31:44 +02:00
HichamELBSI
0b7872e0a8 Add Drop file into input media
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-03-30 16:40:46 +02:00
HichamELBSI
1276bf9767 Add input allowed types in filters
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-03-30 16:40:03 +02:00
HichamELBSI
f19fb580ec Update after review
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-03-23 23:28:30 +01:00
HichamELBSI
b5947621fc Merge branch 'master' into develop 2020-03-04 09:32:13 +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
04f6050ae1 Cleanup feedbacks
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 17:35:09 +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
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
023bda1f9e Generate single query for single type and update core api service
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:34 +01:00
HichamELBSI
abbb045277 Edit single type options
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-02-06 14:13:48 +01:00
Alexandre Bodin
98570f0663 Support single types in entity service
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-21 11:46:39 +01:00