12146 Commits

Author SHA1 Message Date
Alexandre Bodin
a4d3ac34bd Merge branch 'master' into releases/v4 2021-08-17 19:10:29 +02:00
Alexandre Bodin
a041d76d8a Fix tests conflicting 2021-08-17 18:54:20 +02:00
Alexandre Bodin
fd86d1926f Handle polymorphic relation field filter and order 2021-08-17 18:08:42 +02:00
Alexandre Bodin
6a559d6db3 Split helpers and support populate * 2021-08-17 15:22:04 +02:00
Alexandre Bodin
d5dd34278b Fix delete permissions 2021-08-17 13:48:52 +02:00
GQ
7a80bdaa8e
change common beginning to common path (#10509)
* change common beginning to common path

* get common path

* add more tests

* add some space

Co-authored-by: Pierre Noël <petersg83@users.noreply.github.com>
2021-08-17 13:25:14 +02:00
Alexandre Bodin
3c2040011a Handle join table pivot associations and ordering 2021-08-12 16:12:40 +02:00
Alexandre Bodin
2009ebf129 Pagination params v4 & entity service split 2021-08-12 12:28:19 +02:00
Alexandre Bodin
637916202d Testing transform response meta 2021-08-12 09:23:04 +02:00
Alexandre Bodin
6fcbcaf2dc Add unit test on REST response transform 2021-08-11 13:52:57 +02:00
Alexandre Bodin
53cb9f1cbc Split CM & core API tests and adapt response format of the new rest api version 2021-08-11 11:13:01 +02:00
Alexandre Bodin
bf7592a804 Fix REST API e2e tests 2021-08-11 11:13:01 +02:00
Alexandre Bodin
0e3cc07627 Fix basic core api tests 2021-08-11 11:13:00 +02:00
Alexandre Bodin
a618bcf24c Fix deep filter tests 2021-08-11 11:13:00 +02:00
Alexandre Bodin
bf30d050ff Fix endpoint tests 2021-08-11 11:12:59 +02:00
Alexandre Bodin
03a92f0d6e Fix filter tests 2021-08-11 11:12:59 +02:00
Alexandre Bodin
3a32544351 Fix publication state test 2021-08-11 11:12:59 +02:00
Alexandre Bodin
c122056f2c Fix search test and entity manager count query 2021-08-11 11:12:58 +02:00
Alexandre Bodin
fd64926d88 Init test fixes 2021-08-11 11:12:58 +02:00
Alexandre Bodin
bfdb77ff47 Only destroy server if it is listening 2021-08-11 11:12:57 +02:00
Alexandre Bodin
86436f321e Cleanup core code 2021-08-11 11:12:57 +02:00
Alexandre Bodin
11afe17575 Init new REST API format and remove count as it is included in pagination 2021-08-11 11:12:56 +02:00
Alexandre Bodin
9b06d99a2a Fix relation counter to number 2021-08-11 11:02:17 +02:00
Alexandre Bodin
d3a1d6fc98 Fix tests and cleanups 2021-08-11 09:34:55 +02:00
Alexandre Bodin
b61440cdd1 Return null if entity is not found 2021-08-10 11:36:55 +02:00
Alexandre Bodin
9c74f0a84e Fix some database schema sync 2021-08-10 09:36:02 +02:00
Alexandre Bodin
16b3a44f8a Check nil values in query builder 2021-08-09 18:20:27 +02:00
Alexandre BODIN
d54610dc06
Remove hooks (#10711) 2021-08-09 17:33:02 +02:00
Alexandre Bodin
007bd9cd36 Fix return in for loop instead of continue 2021-08-09 10:53:25 +02:00
Alexandre BODIN
6ed18de85b
Rename _sort filter to sort (#10688) 2021-08-09 10:22:40 +02:00
Alexandre Bodin
5b5434c001 Fix CI and some tests 2021-08-06 18:46:30 +02:00
Alexandre Bodin
657e7096d6 Using private prefix only if the property is exposed 2021-08-06 12:14:11 +02:00
Alexandre Bodin
2a3600f419 Merge branch 'master' into releases/v4 2021-08-06 11:30:11 +02:00
Alexandre Bodin
189c819a1e Drop foreign keys before dropping tables 2021-08-06 11:19:17 +02:00
Alexandre Bodin
07ae49badd Avoid making empty queries in populate 2021-08-06 10:51:34 +02:00
Snyk bot
1c424ad9ba
fix: packages/strapi-generate-new/package.json to reduce vulnerabilities (#10697)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-TAR-1536758
2021-08-06 09:09:10 +02:00
Snyk bot
51126799d1
fix: packages/create-strapi-starter/package.json to reduce vulnerabilities (#10696)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-TAR-1536758
2021-08-06 09:08:49 +02:00
Alexandre Bodin
9ad5740952 Fix lint issue 2021-08-05 18:19:54 +02:00
Alexandre Bodin
5a276e2b46 Init container 2021-08-05 12:24:48 +02:00
Alexandre Bodin
71aba0001b Cleanup 2021-08-05 11:32:56 +02:00
Alexandre Bodin
d9d8a10af8 Init server module 2021-08-04 20:13:35 +02:00
Alexandre Bodin
ef63639cd3 Fix eslint so we can have the test run 2021-08-04 19:39:40 +02:00
Alexandre Bodin
805e7fdb4b Merge branch 'master' into releases/v4 2021-08-04 19:24:10 +02:00
Alexandre Bodin
1941cfbf4d Add a generic subscriber to run the model lifecycles 2021-08-04 17:47:38 +02:00
Alexandre Bodin
e63fb9d509 v3.6.6 2021-08-04 17:06:51 +02:00
Cameron
90044c6e2a
Update AWS S3 Provider (#10602)
Gives more information about what actions are needed for this provider to work without using s3:*
2021-08-04 16:59:19 +02:00
Alexandre Bodin
ae668591bb Upgrade tar 2021-08-04 16:43:02 +02:00
ELABBASSI Hicham
ae6aa271a2
Add an event to CTB banner button (#10687)
* Add event to CTB banner button

Signed-off-by: HichamELBSI <elabbassih@gmail.com>

* Change event name

Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2021-08-04 16:38:13 +02:00
Kim Martini
7b487059a0
fix: consider custom devServer config (#10492)
I´m using a custom Docker setup and had trouble to get the watch-admin running. After some testing i found a few things. 

I had to first add the url to the config and second add the devServer config.

webpack: (config, webpack) => {
      config.devServer = {
            host: '0.0.0.0',
            useLocalIp: false
    };
    return config;
},

After that strapi develop --watch-admin was accessible over the docker ip. But because the config gets not forwarded in the opts, the hot reload doesn't work. 
That's because this doesn't get the args that i setup.

function createDomain(options, server) {
  const protocol = options.https ? 'https' : 'http';
  const hostname = options.useLocalIp
    ? ip.v4.sync() || 'localhost'
    : options.host || 'localhost';

If there is a another way I would like to know. Otherwise I would appreciate this small hotfix.  

Here my original problem -> https://stackoverflow.com/questions/8925820/javascript-object-push-function
2021-08-04 16:24:31 +02:00
eternal~fire
172dad91fb
[I18N] improve simplified Chinese translation (#10408)
* [I18N] improve simplified Chinese translation

* this would be better

* [I18N] strapi-plugin-documentation improve
2021-08-04 16:23:00 +02:00