14807 Commits

Author SHA1 Message Date
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
soupette
c5441f1d61 Fix init request
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 15:47:35 +02:00
soupette
9532212e86 Update timeout
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 14:28:54 +02:00
soupette
e7f4f8bfa1 Fix edit file when lib not initialized
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 14:24:12 +02:00
soupette
19af1482af Fix errors
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 13:23:08 +02:00
Vasyl Rishko
0efdd382bd
Fix default values on create entity. (#5675)
* fix: default values on create entity.

Signed-off-by: VasylRishko <rishko92@gmail.com>

* tests: test default date and json values.

Signed-off-by: VasylRishko <rishko92@gmail.com>
2020-04-07 12:56:53 +02:00
soupette
ead77e08c4 Fix errors
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 11:18:26 +02:00
soupette
341bb9a209 Disable buttons when in uploading state
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-07 10:57:59 +02:00
Yassir Barchi
3a42a49162
Add RegExp as text type attribute validation option (#5648)
* feat: add Regexp for attribute value validation

strapi-plugin-content-type-builder

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* feat: add Regexp for attribute value validation

strapi-plugin-content-manager

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* fix error on submit

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* add regex pattern validation

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* add api validation

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* fix lint issues

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* remove redundant code

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* fix en.json build issue

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* add the reset input logic to the regex field

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>
2020-04-07 10:41:46 +02:00
adriatic
3c8ce102d4 Content_to_Collection
Update tutorial files to use the Collection type instead of Content type

Signed-off-by: adriatic <nik@congral.com>
2020-04-06 12:00:03 -04:00
ELABBASSI Hicham
1cbac7aa4d
Merge pull request #5721 from strapi/fix/button-state
Add disable state when uploading media
2020-04-06 17:57:24 +02:00
ELABBASSI Hicham
0576bbc2d1
Merge pull request #5720 from strapi/media-lib/last-ui-fixes
Media lib UI
2020-04-06 17:35:48 +02:00
Ky
d96ae81348 clean
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-06 17:14:20 +02:00
soupette
e843c526c5 Add disable state when uploading
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-06 16:32:01 +02:00
Ky
de91f8c43c some ui fixes
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-06 16:26:30 +02:00
cyril lopez
7c9bdebee8
Merge pull request #5718 from strapi/ml/fix-count
[ML] Fix count endpoint
2020-04-06 14:36:56 +02:00
soupette
e73e11971d Add emit event in back button in upload plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-06 14:24:57 +02:00
soupette
6bd863b563 Merge branch 'features/media-lib' of github.com:strapi/strapi into ml/fix-count 2020-04-06 14:23:04 +02:00
soupette
bdbec4e3f0 Fix count endpoint with filters
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-06 14:22:50 +02:00
cyril lopez
24a1da6c9e
Merge pull request #5717 from strapi/event/add-back-button-property
Add BackButton event
2020-04-06 14:22:08 +02:00
Ky
15c7beac0f pagination alignment
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-06 14:06:27 +02:00
soupette
836d016a73 Add back button event
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-06 13:36:04 +02:00
virginieky
a940bbc8c0
Merge pull request #5705 from strapi/media-lib/ui-fixes
Some ui fixes
2020-04-06 12:08:04 +02:00
Ky
64fbf03eeb apply code review
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-06 11:24:19 +02:00
cyril lopez
2ab7d0de68
Merge pull request #5704 from strapi/media-lib/fix-ui
Fix some UI issues in the ML
2020-04-06 11:23:41 +02:00
HichamELBSI
8096746555 Fix PR review 2020-04-06 11:11:40 +02:00
soupette
e42bf8117e Fixes #5564
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-06 10:21:50 +02:00
Ky
5e184c2784 Merge branch 'features/media-lib' of github.com:strapi/strapi into media-lib/ui-fixes 2020-04-03 18:27:55 +02:00
virginieky
c24c2f9adc
Merge pull request #5702 from strapi/media-lib/add-back-button
Add backbutton in upload
2020-04-03 18:15:19 +02:00
Ky
6c0c0ae607 some ui fixes
Signed-off-by: Ky <virginie.ky@gmail.com>
2020-04-03 17:29:08 +02:00
HichamELBSI
c285c2a88e Fix some UI issues in the ML
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-03 17:15:09 +02:00
soupette
cb0eb350ee Merge branch 'features/media-lib' of github.com:strapi/strapi into media-lib/add-back-button 2020-04-03 16:45:07 +02:00
cyril lopez
df21ff0d35
Merge pull request #5700 from strapi/media-lib/update-buffet
Media lib upgrade Buffet.js version
2020-04-03 16:44:49 +02:00
soupette
8cf7cc01a9 Merge branch 'features/media-lib' of github.com:strapi/strapi into media-lib/add-back-button 2020-04-03 16:32:35 +02:00
soupette
8ed4e7263e Fix conflicts
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 16:31:38 +02:00
Alexandre BODIN
8942456cd4
Merge pull request #5699 from strapi/media-lib/url-proxy
Add proxy to get url without cors issues
2020-04-03 16:21:28 +02:00
soupette
7260b02cbe Add back button in ctm modals
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 15:58:11 +02:00
Alexandre Bodin
71d7ecab6c Move proxy to controllers to protect it
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-03 15:34:05 +02:00
soupette
eb682a5912 Add backbutton in upload
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 15:31:00 +02:00
soupette
d4c7fe5c37 Add auth to request
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 15:17:10 +02:00
soupette
fdaf881bc5 Fix tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 15:12:15 +02:00
soupette
c69b6e8d4e Remove fileInfo.name when unchanged
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 14:38:44 +02:00
Alexandre Bodin
904b2b438b Use mime-types to set extension
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-03 14:02:26 +02:00
Jim LAURIE
c0ec9a54ec
Merge pull request #5088 from gambhiro/deploy-to-app-engine
Guide to deploy to google app engine
2020-04-03 13:50:31 +02:00
Jim LAURIE
810d333ef0
Merge branch 'master' into deploy-to-app-engine 2020-04-03 13:50:06 +02:00
soupette
500c12f7c7 Remove last / from file name
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 11:39:02 +02:00
soupette
0feb9df255 Update snapshots
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 11:29:34 +02:00
soupette
1953e5957a Fix date formats
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 11:28:11 +02:00
soupette
b5b140bb32 Use proxy endpoint to fetch external files
Signed-off-by: soupette <cyril.lpz@gmail.com>
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-03 11:24:59 +02:00
soupette
dd49b92e07 Upgrade buffet.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-03 11:00:28 +02:00