* 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>
* feat: disable dp
* feat: keep draftAndPublish flag to enable feature
* feat: type publish methods not enabled
* fix: unit tests
* feat: do not compute status on non D&P content types
* chore: refactor CM, CTB & i18n to accomodate option D&P (#19712)
* chore: re-implement option in ctb
* chore: refactor CM & i18n to accomodate option D&P
* test(unit): add test to ensure status is not in EditView header when we dont pass the prop
* chore: remove unused import
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
---------
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
* feat: relations no dp (#19682)
---------
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
* feat: handle history version pagination params
* fix: ts build error
* chore: validate pagination params
* chore: pr feedback and test
* feat: show pagination ui
* fix: no history version selected
* chore: change default history page size to 20
* fix: don't redirect to old version
* fix: add comment
* chore: re-implement option in ctb
* chore: refactor CM & i18n to accomodate option D&P
* test(unit): add test to ensure status is not in EditView header when we dont pass the prop
* chore: remove unused import
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
---------
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
* fix: min date considering selected timezone added for scheduling
* fix: e2e test updated for selecting always current date
* test: temp adding a small version of test to check its status
* fix: reverted some part of code to test the ci failure
* update: to setting time by 45 ahead of current clock
* fix: replaced concatenation symbol _ with & , as _ is also a part of timezone sometimes
* fix: escape character &