14807 Commits

Author SHA1 Message Date
Convly
a559047e77 Fix e2e and unit tests
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:17 +02:00
Convly
28beaaa932 Refactor validators and add better messages
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:16 +02:00
Convly
df5dc17c75 Refactor cleanPermissionFields method
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:16 +02:00
Convly
dfc852c350 Fix tests
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:15 +02:00
Convly
f19bccc094 Add publish permission by default for editor and removes it from the authors
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:15 +02:00
Convly
72aaa16d3d Rename fieldsGranularity to fieldsRestriction, various bug fixes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:14 +02:00
Convly
310a0d16f3 Add Publish permission & action
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:14 +02:00
Alexandre Bodin
38d896f0ea Fix schema handler set disgarding falsy values
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-09-22 17:39:13 +02:00
soupette
f12a696824 Enable draft and publish by default
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:13 +02:00
soupette
4d61448ab4 Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:12 +02:00
soupette
7ec435b36e Add draft/publish to CLI
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:12 +02:00
soupette
3b3ea84685 Fix trads
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:11 +02:00
soupette
126a612eee Add draftAndPublish to generate-model and generate-api and update unit tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:11 +02:00
soupette
3aeafa8b54 Add draftAndPublish option to ct for create and update
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:10 +02:00
soupette
4b207e6cc0 Add D&P key to all models. Change UI modal divider
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-22 17:39:10 +02:00
Daniel dos Santos Pereira
f5f0853942
fix(plugin-graphql): Fix associaion resolver for manyWay nature. (#7959)
This fixes strapi/strapi#4353 and all its duplicates.

Signed-off-by: Daniel dos Santos Pereira <danield1591998@gmail.com>
2020-09-22 17:05:27 +02:00
Abdón Rodríguez Davila
79a996f871
Update graphql plugin dependencies (#7953)
Signed-off-by: Abdón Rodríguez Davila <a@abdonrd.com>
2020-09-22 17:00:40 +02:00
Peter Etelej
318f20e826
Bump up minimum required Node to 10.16 (#7962)
Updated README docs & package.json `engine` versions to bump up the
minimum required Node version from `10.10` to `10.16` (or `10.16.0+`)

Strapi no longer supports `10.10` since it updated `sharp` to `0.26.0`
( https://github.com/strapi/strapi/pull/7729 ) which requires Node 10.16.0+
(See https://github.com/lovell/sharp/blob/master/docs/changelog.md#v0260---25th-august-2020 )

` yarn create strapi-app my-project --quickstart` on 10.10 fails with error
```
error sharp@0.26.0: The engine "node" is incompatible with this module. Expected version ">=10.16.0". Got "10.10.0"
error Found incompatible module.
```

Signed-off-by: Peter Etelej <peter@etelej.com>
2020-09-22 16:00:13 +02:00
dependabot[bot]
16a7be23de
Bump markdown-it from 11.0.0 to 11.0.1 (#7983)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 11.0.0 to 11.0.1.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/11.0.0...11.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-22 13:24:38 +02:00
dependabot[bot]
a41f9d82ef
Bump @babel/core from 7.9.0 to 7.11.6 (#7982)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.9.0 to 7.11.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.6/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-22 13:24:24 +02:00
DMehaffy
42ceba9d88
Remove bad example with array for method (#7972)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2020-09-21 07:53:23 -07:00
DMehaffy
a3a77b417c
Remove outdated reference in getting started guide (#7968) 2020-09-21 03:17:45 -07:00
Alexandre Bodin
8b8c27111d Remove codecov annotations
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-09-21 11:16:17 +02:00
François de Metz
49ce4649cc
Encode the URL before fetching it. (#7934)
Signed-off-by: François de Metz <francois@2metz.fr>
2020-09-18 10:05:34 +02:00
dependabot[bot]
885dc8aa3c
Bump @babel/plugin-proposal-async-generator-functions (#7915)
Bumps [@babel/plugin-proposal-async-generator-functions](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-async-generator-functions) from 7.8.3 to 7.10.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.5/packages/babel-plugin-proposal-async-generator-functions)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 10:01:31 +02:00
dependabot[bot]
1b90e3c78d
Bump webpackbar from 3.2.0 to 4.0.0 (#7827)
Bumps [webpackbar](https://github.com/nuxt/webpackbar) from 3.2.0 to 4.0.0.
- [Release notes](https://github.com/nuxt/webpackbar/releases)
- [Changelog](https://github.com/nuxt/webpackbar/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nuxt/webpackbar/compare/v3.2.0...v4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 10:01:13 +02:00
dependabot[bot]
803aae0e70
Bump @babel/polyfill from 7.8.7 to 7.11.5 (#7662)
Bumps [@babel/polyfill](https://github.com/babel/babel/tree/HEAD/packages/babel-polyfill) from 7.8.7 to 7.11.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.5/packages/babel-polyfill)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 10:00:58 +02:00
margielewski
80c0337faf
translation improvement (#7926)
"EditForm.inputToggle.label.email-reset-password": "Straona resetowania hasła"   <--- should be "Strona resetowania hasła"
2020-09-18 10:00:42 +02:00
Igor Liška
781fba0ab9 Fix incorrect PostgreSQL data path
`postgresql` Docker image stores the database files in `/var/lib/postgresql/data`.

Signed-off-by: Igor Liška <liska.igor4@gmail.com>
2020-09-17 21:26:31 +02:00
Jim LAURIE
4eb7f65c85
Merge pull request #7821 from strapi/docs/node/v12
Fix missing note about Node v12 in cli docs
2020-09-17 11:53:17 +02:00
Alexandre Bodin
fe451d1f74 Fix logo location
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-09-16 17:22:13 +02:00
Convly
a2578a2ab5 Merge branch 'master' into documentation 2020-09-16 15:33:46 +02:00
Convly
736a580001 v3.1.5 v3.1.5 2020-09-16 15:26:12 +02:00
jbergeron03
adedf1f1b2
Typo in contributing.md (#7909)
Buidler -> Builder
2020-09-16 10:22:13 +02:00
Rud Wangrungarun
9ca0743ed4
Edit understanding login flow to be more readable (#7858)
* Edit `understanding login flow` to be more readable

- Edit steps 2 and 4 to make it more readable. The previous one is quite confusing when I read it.
- Edit assumption `Let's say...` to be more readable
- Change github to GitHub for consistency

Signed-off-by: Rud Wangrungarun <rudwna@gmail.com>

* Revert change in Understanding the login flow assumption

Signed-off-by: Rud Wangrungarun <rudwna@gmail.com>
2020-09-15 09:56:51 +02:00
Adam Hunter
435248ab1c
Update docs to include MySQL and MariaDB ocker-compose.yaml (#7892)
Signed-off-by: Adam Hunter <arhunter@gmail.com>
2020-09-15 09:54:26 +02:00
Jim LAURIE
64a3e26952
docs: update logo and meta og image (#7885)
Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>
2020-09-15 09:49:46 +02:00
dependabot[bot]
bf1f4f920e
Bump is-docker from 2.0.0 to 2.1.1 (#7895)
Bumps [is-docker](https://github.com/sindresorhus/is-docker) from 2.0.0 to 2.1.1.
- [Release notes](https://github.com/sindresorhus/is-docker/releases)
- [Commits](https://github.com/sindresorhus/is-docker/compare/v2.0.0...v2.1.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-15 09:48:06 +02:00
dependabot[bot]
7a9803c439
Bump file-loader from 3.0.1 to 6.1.0 (#7810)
Bumps [file-loader](https://github.com/webpack-contrib/file-loader) from 3.0.1 to 6.1.0.
- [Release notes](https://github.com/webpack-contrib/file-loader/releases)
- [Changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/file-loader/compare/v3.0.1...v6.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-15 09:47:39 +02:00
Igor Nikolenko
6a937a995f
Fix autocomplete issue in Chrome. Fixes #7666 (#7802)
Signed-off-by: richardgrey <richie.grey@gmail.com>
2020-09-15 09:47:04 +02:00
cyril lopez
d7ba1c2a3b
Merge pull request #7888 from strapi/fix/edit-role
Fix role edition
2020-09-14 16:11:17 +02:00
soupette
cd720c26e5 Fix role edition
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-09-14 14:28:13 +02:00
Rémi de Juvigny
899e2eb21d
Parameters docs typo (#7833) 2020-09-14 09:37:57 +02:00
KULDIP PIPALIYA
eba0afd4c4
Update controllers.md (#7814) 2020-09-14 09:37:07 +02:00
William Cheong Weelau
74ed5a2e2d
Update email.md (#7769)
* Update email.md

to emphasize the part that developer need to pay attention to, especially the file name, and rewrite the part of the sentences on updating default sender email to make it works with the new email provider. Such that those who read this documentation could avoid hours of troubleshooting this configuration, (like what I had)

Signed-off-by: William Cheong Weelau <cheongweelau@gmail.com>

* Update email.md

Added the missing `:::` to close the newly added tip paragraph

Signed-off-by: William Cheong Weelau <cheongweelau@gmail.com>
2020-09-14 09:32:44 +02:00
GreenRobot
4220052310
add some russian translations for DynamicZone component (#7748) 2020-09-14 09:32:09 +02:00
LongYinan
de3ae77af0
Replace babel-jest with @swc-node/jest to speedup frontend testing (#7724)
Signed-off-by: LongYinan <longyinan.brooklyn@bytedance.com>
2020-09-14 09:30:43 +02:00
Bobby Glidwell
5af64a3837
set email validator to lowercase (#7645)
* set email validator to lowercase

Yup .lowercase() converts the string to lowercase which should be done in all instances of email across the application.

Fixes bug where users created inside Strapi admin panel end up with mixed case emails in database.

Signed-off-by: bglidwell <sintex+github@gmail.com>

* match front-end profile validation to backend

Removed .min(5) from backend validation due to redundancy with .email() check

Signed-off-by: bglidwell <sintex+github@gmail.com>

* cleanup redundant email.toLowerCase()

Signed-off-by: Bobby Glidwell <sintex+github@gmail.com>

* Revert "cleanup redundant email.toLowerCase()"

This reverts commit 4565054b298e4518e4ddf41ca602c5960bd9cc28.

Signed-off-by: Bobby Glidwell <sintex+github@gmail.com>

* fix email case in admin user controller

Signed-off-by: Bobby Glidwell <sintex+github@gmail.com>

* fix email case in api user controller

Signed-off-by: Bobby Glidwell <sintex+github@gmail.com>

* fix for graphql tests

Signed-off-by: Bobby Glidwell <sintex+github@gmail.com>
2020-09-14 09:30:12 +02:00
Ove
5509d68c48
Fix minor typos on model documentation (#7619)
* Fix minor typos on model documentation

found 3 minor typos and replaced them

* fix typo in model 3.x docs
2020-09-14 09:29:19 +02:00
Dominic
bbb8b421b3
Optimize plugins translation in Traditional Chinese. (#7557)
* Optimize plugin 'content-type-builder' translations in zh.json.

Signed-off-by: Dominic Lee <dominiclee0512@gmail.com>

* Optimize plugin 'documentation' translations in zh.json.

Signed-off-by: Dominic Lee <dominiclee0512@gmail.com>

* Optimize plugin 'upload' translations in zh.json and filter button
missing translation wording.

Signed-off-by: Dominic Lee <dominiclee0512@gmail.com>

* refactor: move filter translation config from plugin to admin core.

Signed-off-by: Dominic Lee <dominiclee0512@gmail.com>
2020-09-14 09:28:11 +02:00