11733 Commits

Author SHA1 Message Date
Alexandre Bodin
37de70c4f9 v3.6.4 2021-06-23 15:19:11 +02:00
Alexandre BODIN
157f6cdc3b
Merge pull request #10433 from strapi/feat/interactive-cli
[CLI] Add interactive options for templates and starters
2021-06-23 15:16:24 +02:00
Vladan Paunovic
03cea0e28e
chore(sentry-sdk): update the sentry SDK version (#10504) 2021-06-23 15:07:01 +02:00
Alexandre Bodin
32c36bc9ac Revert to node-fetch to lighten the packages 2021-06-23 14:49:52 +02:00
Mark Kaylor
a655f861f5 add interactive CLI for starters and templates 2021-06-23 14:11:57 +02:00
markkaylor
a860d74a35
[Starter CLI] fix has-yarn (#10532)
* fix missing function call

* fix deprecated execa command
2021-06-23 14:00:57 +02:00
George Moon
aebdb33a6e
Typo fix for English translations in user-permissions (#10493)
Minor typo fix:
registred to registered
2021-06-21 18:14:58 +02:00
Abdón Rodríguez Davila
8de2e54aa2
Improve the relation item spacing (#10503)
Fix #9043
2021-06-21 18:14:35 +02:00
markkaylor
a83c8239e9
track marketplace activity (#10495) 2021-06-21 11:56:51 +02:00
Jean-Sébastien Herbaux
c7c549aee6
Fix RBAC upload permissions (#10484)
* Fix fetch of created_by.roles for the upload permissions' check

* Remove console.log

* Add default value for the set roles

* Fetch the author (user) instead of their roles only

* Only populate roles for the author
2021-06-17 12:00:02 +02:00
Pierre Noël
d66a49f23c
upgrade yup to 0.32.9 (#10487) 2021-06-17 09:55:32 +02:00
Alexandre Bodin
0ab3503e3c v3.6.3 2021-06-02 16:24:59 +02:00
DMehaffy
8354f4cc28
Upgrade yup to resolve prototype pollution (#10351)
* upgrade yup and let tests run

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>

* Decrease to minimum upgrade to fix issue

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2021-06-02 16:21:36 +02:00
Andrii Chernenko
5bb76c1918
Issue #8020: Disabled autoPopulate for File model (upload plugin) (#10370)
* Issue 8020: Disabled autoPopulate for File model (upload plugin)

* Issue #8020: Removed default File model populate

* Issue #8020: Reverted api controller methods
2021-06-02 16:07:00 +02:00
Roman Walters
e2cd8179a2
Update de.json (#10361)
Typo in "Policies.header.hint": Pfand => Pfad
2021-06-02 15:52:28 +02:00
Mark Kaylor
c318c3d809 exit loop if path doesn't exist 2021-05-31 17:56:56 +02:00
Mark Kaylor
eec4aa2e56 copy folders that exist 2021-05-31 16:34:42 +02:00
Mark Kaylor
aad0515764 remove default path 2021-05-31 13:43:41 +02:00
Mark Kaylor
5bfbf33a58 change wording 2021-05-31 13:43:40 +02:00
Mark Kaylor
c25e21262d update test variables 2021-05-31 13:43:40 +02:00
Mark Kaylor
e71d573ffb refactor 2021-05-31 13:43:39 +02:00
Mark Kaylor
a6eb49b75d add template config file to root 2021-05-31 13:43:39 +02:00
Mark Kaylor
c2d438ba88 rename export => generate 2021-05-31 13:43:39 +02:00
Mark Kaylor
e652a53d79 add tests 2021-05-31 13:43:38 +02:00
Mark Kaylor
8beb4b821b add export-template command to cli 2021-05-31 13:43:38 +02:00
DMehaffy
5207606c6d
Update badges and copy README to main Strapi package for NPM (#10398)
* Update Readme to remove old badges

Removed the old Travis badge and swapped the Slack one for the Discord one

* Copy in main README per Victor

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2021-05-31 11:37:37 +02:00
Pierre Noël
c6b3ab7043
fix duplicate locale when creating without specifying the locale (#10378) 2021-05-26 09:00:56 +02:00
Fabien Del Carmen
631ac69686
Add CLI support for branch in direct GitHub URL (#10273)
* Add CLI support for branch in direct GitHub URL

* Change getRepoInfo to return branch

* Change variable name, add eslint 'one-var' rule

* Fix eslint 'one-var' error

* Move fetch GitHub logic in its own file

* Update code to avoid destructuring reassignment

* Update and add some JSDoc
2021-05-19 19:02:41 +02:00
soupette
bdfd531488 Fixes #10328
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-05-18 09:55:57 +02:00
DMehaffy
4c844a7f7f
Update webhook doc link (#10309)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2021-05-17 14:17:16 -07:00
Hal Deadman
f46d1e2a67
Add support for login via cas - github.com/apereo/cas (#8058)
* Add CAS as authentication provider

* reorder provider cas after auth0 at end

* use strapi.log instead of console.log

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2021-05-17 17:52:40 +02:00
Jean-Sébastien Herbaux
15c04d0612
Fix RBAC permissions without subject ignoring conditions (#10291)
* Fix RBAC permissions without subject ignoring conditions

* Add unit test for nil subject in the permission engine
2021-05-17 08:14:58 +02:00
Alexandre Bodin
43b947b2ba v3.6.2 2021-05-11 11:43:35 +02:00
Kendaros
c46b6ccb5e
Keep metadata during resize images (#10161)
If the input file has EXIF, XMP, IPTC metadata (i.e user disabled "optimize size without quality loss" a.k.a "strip metadata" option in Admin UI), the resized images generated should keep metadata too.
If the user doesn't want to keep metadata, they would let the default option "Optimize size without quality loss" enabled, right? So the resized images wouldn't keep the metadata anyway.
2021-05-11 11:42:31 +02:00
Mike Robinson
ae927f5b1f
Removing positive requirement of integer validation (#10269)
Solves #10179

Co-authored-by: DMehaffy <derrickmehaffy@gmail.com>
2021-05-11 10:22:15 +02:00
Webnatural
a11c2364f0
Update strapi-admin Polish language translations (#10198) 2021-05-11 09:31:15 +02:00
DMehaffy
e547b11b9a
Fix date field being parsed with a timezone (#10033)
* Fix date field being parsed with a timezone

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>

* send YYYY-MM-DD format instead or 2021-04-27T15:01:09.155Z

* Revert "Fix date field being parsed with a timezone"

This reverts commit 498180477bf1750aa177a27786cc9b4e873c4e95.

Co-authored-by: Pierre Noël <petersg83@gmail.com>
2021-05-11 09:26:35 +02:00
Ilya Artamonov
2d8d3fdc06
Added missing translations (#10202) 2021-05-11 09:24:30 +02:00
p_0g_8mm3_
0bb208db4b
Update German strapi-admin translations (#10207)
* Fix grammar

* update de translation

* use plural
2021-05-11 09:22:09 +02:00
Ilya Artamonov
807101f290
Added missing translations (#10205) 2021-05-11 09:20:29 +02:00
Ilya Artamonov
e780baddb5
Added missing translation (#10204) 2021-05-11 09:19:22 +02:00
Ilya Artamonov
e2c06e30a6
Removed extra space (#10203) 2021-05-11 09:18:42 +02:00
Kenneth Solberg
95b81cd237
Added norwegian translation. (#9846)
* Added norwegian translation.

* Update the index.js file so the Norwegian translation is available in the dropdown

* Update the index.js file so the Norwegian translation is available in the dropdown

Co-authored-by: Kenneth Solberg <kenneth@codewise.no>
2021-05-11 09:08:03 +02:00
Jean-Sébastien Herbaux
30ccad91c0
Fix compatibility issue for mongo < 4.2 (#10281) 2021-05-11 09:04:58 +02:00
cyril lopez
436d9fdab5
Upgrade @buffet.js (#10270)
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-05-10 11:25:35 +02:00
Jean-Sébastien Herbaux
934a47eb34
Add possibility to set "required" RBAC conditions (#10185)
* Add optional property 'required' to rbac conditions

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

* Fix tests, remove object handler support & fix bug (pm.queryFrom)

* Remove required property, handle required conditions at the engine level (raw)

* Update EE snapshots

* Add hasSuperAdminRole util
2021-05-10 11:24:45 +02:00
Ralph
81a9a63cad
GraphQL Plugin (bug): Content type's attributes marked as private are being exposed in the exported GraphQL schema (#9805)
* Fixes #9804

* Fixes isPrivateAttribute function in strapi utils to take into account the private property within an attribute

* removing comment

* removing isNotPrivate function + adding call to already existing isPrivateAttribute function instead of isNotPrivate

* isPrivateAttribute fixed based on coments from Alexandre and confirmed that the model does indeed contain all private fields in an array at startup time

* removing isNotPrivate function and fixing generateEnumDefinitions to use the already available isPrivateAttribute function

* checking if created_at and update_at are also marked as private and if this is the case then hiding them

* allowIds by default when generating the input model to see if the tests will pass

* moving allowIds back to false by default

* adding isTypeAttributeEnabled function to check if a type attribute has been disabled and remove it from the exported graphql schema

* removing unused var

* only using isTypeAttributeEnabled instead of isPrivateAttribute.

* adding isPrivateAttribute at association level

* Adding isNotPrivate back together with isTypeAttributeEnabled

* adding unit test for removing a disabled attribute from a graphql schema

* renaming person to player in the test model

* Deleting the file as it has been renamed in the strapi master branch

* fixing lint issues

* fixing some lint issues

* adding isTypeAttributeEnabled support

* adding enumeration field in graphql

* adding use strict; to test file

* fixing test checking that disabled attributes in graphql are removed from the graphql schema

* adding test for buidShadowCrud

* Update packages/strapi-plugin-graphql/services/type-builder.js

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>

Co-authored-by: Rmaroun <rmaroun@outlook.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2021-05-10 09:35:07 +02:00
cyril lopez
3198d19906
Fixes #10187 (#10193)
Signed-off-by: soupette <cyril.lpz@gmail.com>
2021-05-07 15:04:16 +02:00
Pierre Noël
0b31bc3f42
make listLocales route available (#10255) 2021-05-07 09:54:55 +02:00
HichamELBSI
8117d4786e Fix SSO success redirection
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2021-05-06 11:06:22 +02:00