25115 Commits

Author SHA1 Message Date
Josh
187039633e fix: keep useRelation hook in sync with browser state
also normalize relation on connection
2022-11-02 11:58:50 +01:00
Josh
d681351901 test: add cleanData tests for relations 2022-11-02 11:58:50 +01:00
Josh
99fa4c3696 fix: RelationInputDataManager test 2022-11-02 11:58:50 +01:00
Josh
5235e25698 fix: broken clean data test 2022-11-02 11:58:50 +01:00
Josh
f50f8a9dd4 test: EditViewDataManger reducer 2022-11-02 11:58:50 +01:00
Josh
2cc18becf4 fix: bug with default values in repeatable and dynamic components 2022-11-02 11:58:50 +01:00
Josh
04a223b0ba test: add tests for findLeafByPathAndReplace 2022-11-02 11:58:50 +01:00
Josh
55fbc3732f test: add more for recursivelyFindPathsBasedOnCondition 2022-11-02 11:58:50 +01:00
Josh
d445966dd2 refactor: make findLeafByPath more generic
it's a replacing function, let someone pick what they want to replace with.
2022-11-02 11:58:50 +01:00
Josh
69ad01c388 fix: dynamic zones with relations 2022-11-02 11:58:50 +01:00
Josh
c57f46f506 fix: use modifiedData if we have it 2022-11-02 11:58:50 +01:00
Josh
34f69999f9 refactor(wip): repeatable components 2022-11-02 11:58:50 +01:00
Josh
5ef96b9741 fix: handle components and nested components 2022-11-02 11:58:50 +01:00
Josh
22c8ec1c26 fix: reducer and clean data tests 2022-11-02 11:58:50 +01:00
Josh
8c1756abfc feat: add diff relations test 2022-11-02 11:58:50 +01:00
Josh
08ba321ca5 fix: useRelation test pt2 2022-11-02 11:58:50 +01:00
Josh
b08d7739e6 fix: normalizeRelation tests 2022-11-02 11:58:50 +01:00
Josh
5e3490104b refactor: return the same data format for search and relations 2022-11-02 11:58:50 +01:00
Josh
cf23e39892 fix: RelationInput tests 2022-11-02 11:58:50 +01:00
Josh
6383fc85ce fix: tests with useRelation 2022-11-02 11:58:50 +01:00
Josh
eec478a63c fix: RIDM tests 2022-11-02 11:58:50 +01:00
Josh
e0907a64e3 chore: fix dispatch callbacks 2022-11-02 11:58:50 +01:00
Josh
19da435de2 chore: minor amends 2022-11-02 11:58:50 +01:00
Josh
36bbdd0bd6 fix: XtoMany relations 2022-11-02 11:58:49 +01:00
Josh
549a39adb5 feat: add search 2022-11-02 11:58:49 +01:00
Josh
bbf2726cf3 fix: saving relations to server 2022-11-02 11:58:49 +01:00
Julie Plantey
19f7860844 temp 2022-11-02 11:58:49 +01:00
Josh
69ffaa4406 fix: adding components with relational fields 2022-11-02 10:52:02 +00:00
Gustav Hansen
6e2b51c280 chore: Update snapshot tests 2022-11-02 11:33:06 +01:00
dmoKruso
84ce4290fe
Merge branch 'main' into fix-en-lang 2022-11-02 10:24:56 +00:00
Josh
2ada652540 chore: rename fields & paths 2022-11-02 10:18:00 +00:00
Josh
9d11987556 fix: repeatableComponents in regular components 2022-11-02 10:08:47 +00:00
Jamie Howard
639c3a290f Merge branch 'feature/relations-main-view' of github.com:strapi/strapi into fix/relations/rel-error-handling 2022-11-02 09:57:37 +00:00
Pierre Noël
cbcf02eeca Merge branch 'main' into feature/relations-main-view 2022-11-02 10:48:27 +01:00
Pierre Noël
5f73c296f1 remove populate.js file 2022-11-02 10:43:30 +01:00
dmoKruso
56142c70f8 Update en.json 2022-11-01 23:22:31 +00:00
Josh
b317761f1d fix: anticipate oldValue being undefined 2022-11-01 13:32:20 +00:00
Josh
574e6db817 test(fix): useRelation 2022-11-01 11:35:10 +00:00
Josh
050b0ab42a fix: unit tests 2022-11-01 11:10:26 +00:00
Josh
4f9918cd56 refactor: PR updates 2022-11-01 10:49:33 +00:00
Josh
ddb1bca0eb
Update packages/core/admin/admin/src/content-manager/components/RelationInputDataManager/RelationInputDataManager.js
Co-authored-by: Gustav Hansen <gustav.hansen@strapi.io>
2022-11-01 10:22:52 +00:00
Josh
bae3c0d7b3
Update packages/core/admin/admin/src/content-manager/components/EditViewDataManagerProvider/utils/cleanData.js
Co-authored-by: Gustav Hansen <gustav.hansen@strapi.io>
2022-11-01 10:13:52 +00:00
Josh
abc530f3e1 fix: keep useRelation hook in sync with browser state
also normalize relation on connection
2022-10-31 14:57:38 +00:00
Josh
2d8da5affa test: add cleanData tests for relations 2022-10-31 14:57:38 +00:00
Josh
2b65bc4ffb fix: RelationInputDataManager test 2022-10-31 14:57:38 +00:00
Josh
988c183233 fix: broken clean data test 2022-10-31 14:57:38 +00:00
Josh
a6978b7fc6 test: EditViewDataManger reducer 2022-10-31 14:57:37 +00:00
Josh
08c81b92ea fix: bug with default values in repeatable and dynamic components 2022-10-31 14:57:37 +00:00
Josh
fdde661d10 test: add tests for findLeafByPathAndReplace 2022-10-31 14:57:37 +00:00
Josh
9096b456ce test: add more for recursivelyFindPathsBasedOnCondition 2022-10-31 14:57:37 +00:00