122 Commits

Author SHA1 Message Date
Ben Irvin
c1cd5b5b90 fix scope 2023-05-18 09:53:02 +02:00
Ben Irvin
980edbbcce move operators to utils 2023-05-12 12:13:29 +02:00
Jorge Martin
6a9b9a9aec
Merge branch 'main' into main 2023-01-28 12:26:27 +01:00
Jorge Martin
bbc59f321b
Merge branch 'main' into main 2023-01-23 17:29:04 +01:00
Bassel
9fecc309e7 Merge branch 'chore/transactions' into deits/rollbacks 2023-01-18 14:27:17 +02:00
Bassel Kanso
c08e0afda6
Merge branch 'main' into chore/transactions 2023-01-18 11:04:32 +02:00
Ben Irvin
532a5c044e Merge branch 'main' into features/deits 2023-01-18 09:19:49 +01:00
Alexandre Bodin
f19da0cbf8 Merge branch 'main' into chore/transactions 2022-12-09 18:32:54 +01:00
Marc-Roig
a148b81d85 Merge branch 'main' into feature/relations-reordering 2022-12-01 09:31:08 +01:00
Hasta
b210dac830
Update where.js 2022-11-30 16:48:23 +01:00
Simone Taeggi
b12ee6b0f7 Merge branch 'main' into features/deits 2022-11-29 21:38:33 +01:00
Alexandre Bodin
8a8359c3ed Merge branch 'main' into chore/transactions 2022-11-23 10:19:52 +01:00
Convly
7c1837bbe1 Add test + update logic 2022-11-21 11:02:38 +01:00
Convly
8c2fb155b8 hanlde morphToOne populate & re-add legacy way of querying DZs 2022-11-15 15:14:28 +01:00
Marc-Roig
ea5325b46c compact max order and adjacent sql queries into one 2022-11-11 17:08:52 +01:00
Convly
bb7d566d42 Merge branch 'main' of github.com:strapi/strapi into features/deits 2022-11-09 15:15:28 +01:00
Convly
4dcfe4ab40 (tmp) init morph populate 2022-11-04 15:06:36 +01:00
Pierre Noël
5f73c296f1 remove populate.js file 2022-11-02 10:43:30 +01:00
Convly
bc4b412aa2 Remove useless comment 2022-10-27 17:35:22 +02:00
Convly
a0a8e06c54 Push values to stream from a regular loop instead of shifting the initial array 2022-10-27 16:00:07 +02:00
Convly
1cfb30658a Remove useless checks & fix the limit 2022-10-27 15:50:44 +02:00
Convly
fa4dcb669b Fix limit & offset computation 2022-10-27 14:32:48 +02:00
Convly
78c5f82c37 Update symbols 2022-10-27 14:17:14 +02:00
Convly
125269d4fa Add readable stream capabilities to the query builder 2022-10-27 11:51:44 +02:00
Pierre Noël
24add7820d Merge branch 'main' into feature/relations-main-view 2022-10-25 16:04:49 +02:00
Convly
b4f4b499b9 Fix a bug that was not automatically adding the join column to the select list when populated 2022-10-20 15:32:51 +02:00
Pierre Noël
bd82249ab6 fix xToOne relations + finish e2e tests 2022-10-10 14:28:57 +02:00
Pierre Noël
da70af1294 remove offset & limit when counting in populate 2022-10-07 20:21:15 +02:00
Alexandre Bodin
15cb9900b4 Add ordering option to populate 2022-09-30 23:38:05 +02:00
Alexandre Bodin
7c4b7e02c8 Refactor populate 2022-09-30 23:38:05 +02:00
Pierre Noël
a9819dc375 use onConflict in updateRelations 2022-09-30 10:54:38 +02:00
Pierre Noël
eaf0d84224 add decrements to queryBuilder + use it 2022-09-30 10:54:34 +02:00
Alexandre Bodin
0d73def370 Implicit transactioning 2022-09-12 15:26:08 +02:00
Pierre Noël
3f72ff3a73 Merge branch 'main' into feature/relations-main-view 2022-09-08 15:41:31 +02:00
Pierre Noël
79355cf239 properly handle knex queries for in and notIn 2022-09-06 12:17:55 +02:00
Pierre Noël
1958e08559 replace previewMany by getExistingRelations 2022-09-06 12:17:54 +02:00
Alexandre Bodin
70b6966458 Fix eslint database 2022-09-05 19:44:58 +02:00
Pierre Noël
b4f6c87fd4 avoid using db metadata 2022-08-30 15:12:05 +02:00
Pierre Noël
7f521c9348 refactor relation findNew route 2022-08-30 15:12:03 +02:00
Alexandre BODIN
2a9050d0d7
Merge pull request #14017 from strapi/chore/use-eslint-config
Chore/use eslint config
2022-08-11 16:19:29 +02:00
Pierre Noël
d49d687e72
Merge pull request #14032 from strapi/fix/populate-dz
Ignore if populating a scalar attribute
2022-08-11 15:38:41 +02:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Alexandre Bodin
0ae14c06cb 1st fix pass 2022-08-11 10:20:48 +02:00
Pierre Noël
6168d38617 ignore if populating a scalar attribute 2022-08-09 12:19:58 +02:00
Bassel Kanso
f92ff683ea make 'id' default value for count 2022-08-09 10:45:58 +03:00
Bassel Kanso
9619cf69a3 only use countDistinct when needed 2022-08-03 14:46:07 +03:00
Bassel Kanso
2b576869b6 only use id when state.count is * 2022-08-03 12:59:30 +03:00
Bassel Kanso
b218ec3997 count columns based on distinct ID 2022-08-01 12:15:05 +03:00
Gustav Hansen
01784575bf Merge branch 'master' into features/ML-folder 2022-07-22 12:48:41 +02:00
Alexandre BODIN
bc60b90b9e
Merge pull request #13578 from meherchandan/fix/case-insensitive-equal-filter
fix: added new eqi operator for case insensitive equal search
2022-07-21 15:53:25 +02:00