4 Commits

Author SHA1 Message Date
Josh
49e84a90ad
fix(cm): send status & locale with disconnect array (#19832)
* fix(cm): send status & locale with disconnect array

* fix: backend ids to omit to entry ids

* fix(cm): use id to connect & invalidate form data after updating

* fix: api tests

* fix: cache issue switching tabs

---------

Co-authored-by: Marc-Roig <marc12info@gmail.com>
2024-03-19 12:39:45 +00:00
Josh
98ecaa5093
feat: add drag-and-drop to relations (#19788)
* feat: add drag-and-drop to relations

Co-Authored-By: Marc Roig <20578351+Marc-Roig@users.noreply.github.com>

* chore: spelling mistakes

* chore: fix mainField accessing

* chore: remove comment code

Co-Authored-By: Marc Roig <marc12info@gmail.com>

---------

Co-authored-by: Marc Roig <20578351+Marc-Roig@users.noreply.github.com>
Co-authored-by: Marc Roig <marc12info@gmail.com>
2024-03-15 15:16:35 +00:00
Marc Roig
fc1ac2acd5
feat: disable dp by default (#19743) 2024-03-13 14:08:07 +01:00
Josh
a8498df926
feat(cm): reimplement relations for draft & publish (#19642)
* feat(content-manager): Rework findAvailable and findExisting (#19597)

* feat(content-manager): wip rework findAvailable and findExisting

* chore(strapi): simplify relations controller

* feat(content-manager): entity Id based find available

* feat(content-manager): entity Id based find existing

* fix(content-manager): build issues

* chore(content-manager): cleanup

* fix(content-manager): relations controllers unit tests

* fix(content-manager): improve error handling

* fix(content-manager): simplify findExisting relations logic

* fix(content-manager): clean up types

* fix(content-manager): extend available relation API tests

* fix(content-manager): pr feedback

* feat(content-manager): cover find existing test cases

* feat(content-manager): test that we can only find available relations in the same locale

* fix: wip fix unit tests

* chore(content-manager): pr feedback

* fix(content-manager): use db layer to find relations

fix(content-manager): failing relations tests

* fix(content-manager): find relations test

* fix(content-manager): build issues

* fix(content-manager): return latest status of relations in findAvailable (#19681)

* fix(content-manager): return latest status of relations in findAvailable

* fix(content-manager): share logic for findAvailable and findExisting

* fix(admin): relation tests

* fix(content-manager): clean up types

* fix(content-manager): support status for find exisiting

* fix(content-manager): add status and locale filters to subQuery

* fix(content-manager): ts front and skip relations unit tests

* fix(content-manager): request specific status or get latest using document-metadata

* chore(content-manager): use interface

* fix(content-manager): tidy up target relation subquery

* fix(content-manager): tidy up and skip TS for build issues

* fix(content-manager): return status when requested

* chore(content-manager): dont re type entity service response

* fix(content-manager): use document metadata getManyAvailableStatus

* chore(content-manager): remove mapAsync

* feat: implement relations in the cm (#19702)

* Fix: Relating i18n and non-i18n content types (#19731)

* chore: re-enable e2e relation tests

* fix: return undefined

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Jamie Howard <jamie.howard@strapi.io>
Co-authored-by: Marc-Roig <marc12info@gmail.com>
2024-03-13 10:25:47 +00:00