56 Commits

Author SHA1 Message Date
Ben Irvin
3cea9ffa5c
chore(database): use naming functions for identifiers in metadata relations 2024-02-26 12:27:58 +01:00
Ben Irvin
c29dcf0999
chore: add centralized methods for replacing hardcoded strings for database identifiers 2024-02-23 15:53:56 +01:00
Ben Irvin
3fe01a0f6d
test(database): init unit tests for createMetadata 2024-02-21 12:07:15 +01:00
Ben Irvin
92e0fee2c4
fix: prevent infinite loop opening pool connections in mysql 2024-02-21 11:54:47 +01:00
Alexandre BODIN
0f312df726
chore: rename webhooks & allow custom joinColumn (#19344)
Co-authored-by: Marc Roig <marc12info@gmail.com>
2024-02-05 09:01:50 +01:00
Josh
aabbb0b2ef Merge branch 'develop' into v5/main 2024-01-30 16:26:36 +00:00
Marc Roig
2d371a2d60
fix: nested on commit on rollback transactions (#19368) 2024-01-30 11:00:08 +01:00
Jamie Howard
1097504b36
[core] document unique field validation per content type and locale (#19153)
* feat: use document service in content manager

* feat: update contracts with meta information

* chore: group metadata types into a single type

* feat: metadata information in single types

* chore: change meta contract to return documents instead of strings

* fix: remove unused type

* fix: ignore doc id if entry is null

* fix: update contract metadata

* feat: document metadata service

* feat: locale and status filtering

* chore: add comment

* chore: refactor metadata service

* chore: refactor entity manager exists to handle single types

* feat: refactor single type controllers to use documents

* feat: get locale param from in cm endpoints

* Revert "feat: get locale param from in cm endpoints"

This reverts commit 856c38588b8f8521cadd85c8c933f42a36a2178a.

* feat: get locale param from cm endpoints

* Update packages/plugins/i18n/server/src/controllers/validate-locale-creation.ts

Co-authored-by: Ben Irvin <ben@innerdvations.com>

* fix: entity manager unit tests

* chore: unit test document metadata

* feat: prevent empty string locale filtering

* feat(core): document unique field validation per content type and locale

* feat(e2e): test document unique fields

* fix(admin): ts build

* fix: cm contract import

* chore: test new d&p cm features

* feat(core): validate document unique fields within one publication state

chore: remove build:ts

* fix: search content manager api test

* fix: cm tests

* fix: cm tests

* fix: cm tests

* fix(content-manager): access to non default locale documents (#19190)

* fix(content-manager): access to non default locale documents

* chore(content-manager): revert route construction

* fix(content-manager): api tests for number of draft relations

* test(content-manager): counting number of draft relations for non default locales

* chore(content-manager): remove default locale from entity manager countDraftRelations

* test(document-service): api tests for unique document fields per publication state

* test(i18n): api tests for unique document fields per locale

* chore(api-tests): adjust author schema

* chore(e2e): disable edit view tests (#19235)

* fix(core): unique validation on publish

* fix(api-tests): un-localise author

* fix(e2e): incorrect path

* fix(admin): tidy up

* fix(admin): pass correct locale query params

fix(core): pass locale outside of filters

* chore(api-tests): wip comment for relatedEntityId logic

* fix(core): entity validator tests

* chore(api-tests): wip skip failing relations i18n test

* chore(e2e): clean up editview spec

* fix(content-manager): pass locale to publish and unpublish

* fix(content-manager): fix test:ts:back

* fix(e2e): update edit view expected path

* fix(entity-validator): default to null locale

fix(api-tests): wip i18n test changes

* fix(e2e): wip UID fields

* chore(content-type-builder): temporarily disable component unique field checkboxes (#19253)

* fix(admin): wip correctly pass params

feat(e2e): reintroduce uniqueness e2e tests

* Refactor UID validation for V5 (#19285)

* fix(database): wip remove UID unique DB constraint

* feat(content-manager): update uid checking endpoints to look at locale

* chore(admin): clean up

* fix(content-manager): single type unit tests

* fix(content-manager): send all params to uid endpoints

* feat(e2e): update tar backup to support unique CT

* fix(e2e): uniqueness spec

* chore(e2e): remove only

* fix(content-manager): only check UID availability against drafts

feat(api-tests): test case for UID validation across locales

* fix(content-manager): uid unit tests

* chore(api-tests): clean up

* chore(content-manager): clean up

* chore(i18n): remove relatedEntityId reference

---------

Co-authored-by: Marc-Roig <marc12info@gmail.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-01-29 15:35:20 +00:00
Alexandre Bodin
3bc82f6a77 chore: add a simple model registry 2024-01-26 11:31:53 +01:00
Alexandre Bodin
9d5602124c chore: life compontent logic out of the db and start exposing models 2024-01-25 13:13:01 +01:00
Marc Roig
d4d47227a6
feat: Initialize Document Service (#18558)
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-11-28 12:01:27 +01:00
Marc-Roig
d89856c348
fix: remove doc id type from database 2023-11-09 12:50:31 +01:00
Marc-Roig
91d6b8ca44
feat: move the document id schema insertion into strapi/strapi 2023-11-06 10:05:06 +01:00
Ben Irvin
0504e10de7 chore: move contentype transform out of database
Co-authored-by: Marc Roig <Marc-Roig@users.noreply.github.com>
2023-10-31 15:00:33 +01:00
Ben Irvin
8822ecf770 chore: add comment 2023-10-31 14:33:28 +01:00
Ben Irvin
f23ce5a08c fix: documentId casing 2023-10-31 14:10:29 +01:00
Ben Irvin
dae632c775 Merge branch 'v5/main' into v5/document_id 2023-10-31 14:07:04 +01:00
Ben Irvin
7a48741483
fix: init dialect on every new connection in the pool (#18588) 2023-10-30 17:53:25 +01:00
Ben Irvin
3e3b3393e2
chore: use mysql2 as the package for mysql (#18503) 2023-10-30 13:29:39 +01:00
Ben Irvin
6d4417f55c
chore: only support better-sqlite3 package for sqlite (#18500)
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
resolves #16645
2023-10-30 12:38:20 +01:00
Ben Irvin
881eda9996
chore: remove support for MySQL v5 (#18499) 2023-10-30 12:06:18 +01:00
Alexandre Bodin
1ccc22fb6d chore(core/database): update test 2023-10-24 17:18:59 +01:00
Alexandre Bodin
f0c3683482 feat(database): add internal migrations 2023-10-24 17:18:59 +01:00
Marc-Roig
b50b65bc7b
Merge branch 'v5/main'
Conflicts:
	packages/core/database/package.json
2023-10-20 10:17:39 +02:00
Alexandre Bodin
75974c805d chore(core/database): update test 2023-10-16 11:09:17 +02:00
Alexandre Bodin
c0de2c2711 feat(database): add internal migrations 2023-10-13 18:37:14 +02:00
Marc-Roig
2bedd3f2c8
merge 2023-10-09 15:30:22 +02:00
Alexandre Bodin
338a75fd16 Export isKnexQuery but tag is as internal 2023-10-09 10:54:13 +02:00
Alexandre Bodin
3f96522f72 Fix duplicate value in array 2023-10-05 18:19:38 +02:00
Alexandre Bodin
c8c571e5f7 Fix tests 2023-10-05 13:30:56 +02:00
Marc-Roig
591952323f
feat: add document id in database 2023-10-05 08:35:36 +02:00
Alexandre Bodin
290f9f1269 Apply feedbacks 2023-10-04 15:55:33 +02:00
Alexandre Bodin
c29b11186e Fix lint 2023-10-04 13:55:48 +02:00
Alexandre Bodin
4f44013229 fix unit tests 2023-10-04 13:53:11 +02:00
Alexandre Bodin
5c48b9b07e Merge branch 'main' into chore/ts-database 2023-10-04 13:36:07 +02:00
Alexandre Bodin
2fa5adde62 Fix tests 2023-09-21 20:01:37 +02:00
Alexandre Bodin
c4573af2eb Update tests 2023-09-21 18:42:19 +02:00
Alexandre Bodin
c9516d4bf5 Remove old types 2023-09-21 16:50:18 +02:00
Alexandre Bodin
eb64ae5745 Update typings and fix invalid usage 2023-09-21 16:49:53 +02:00
Alexandre Bodin
ba04122263 wip 2023-09-20 15:52:30 +02:00
Alexandre Bodin
d1cc5df7c5 Update types 2023-09-20 11:46:13 +02:00
Alexandre Bodin
1a917d4eca Fixes 2023-09-20 11:30:19 +02:00
Alexandre Bodin
e01234c008 Refactor types 2023-09-20 10:07:46 +02:00
Alexandre Bodin
22ea624841 1st pass done 2023-09-15 09:54:49 +02:00
Alexandre Bodin
4761ec70c8 wip 2023-09-14 17:35:36 +02:00
Alexandre Bodin
671cd3fb72 All but populate 2023-09-14 15:21:32 +02:00
Alexandre Bodin
4f9d247d7b db helpers ts 2023-09-14 13:20:14 +02:00
Alexandre Bodin
b0ea4161b9 Improvide types 2023-09-14 12:11:03 +02:00
Alexandre Bodin
bc8f81eee4 1st passe except query 2023-09-14 09:22:47 +02:00
Alexandre Bodin
c56f1863ab wip 2023-09-14 09:07:08 +02:00