12906 Commits

Author SHA1 Message Date
Josh
0ba9e53511 Merge branch 'develop' into v5/main 2024-02-13 11:19:06 +00:00
Ben Irvin
8ea71985c8
fix: restrict model and attribute names that break Strapi 2024-02-12 10:47:14 +01:00
Ben Irvin
7fdffa1851
enhancement: make policy error public 2024-02-09 15:16:28 +01:00
Jean-Sébastien Herbaux
90a86f595c
Fix input payload validation 2024-02-09 15:05:32 +01:00
Ben Irvin
c9de63e8ae
enh: add logger level to server config 2024-02-09 15:04:00 +01:00
Jean-Sébastien Herbaux
fc8807019c
feat: modify the default value of Attribute.Component Repeatable 2024-02-09 11:04:05 +01:00
Ben-Zahler
023e95b482
enhancement: allow relative links in the Blocks editor (#19197)
* enable relative links in blocks editor

* implement link validation in backend, improve validation for relative links

* remove console.log

---------

Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2024-02-09 10:19:31 +01:00
Fernando Chávez
677a639124
feat(content-releases): update cron scheduling when release scheduledAt is changed (#19456)
* feat(content-releases): update cron scheduling when release scheduledAt is changed

* fix ts issue
2024-02-08 14:24:12 +01:00
Simone
14e824252a
fix(content-releases): replace Popover with Menu component in the Details page (#19408)
* fix(content-releases): replace Popover with Menu to avoid weird behaviour onClick

* fix(content-releases): replace MenuButton with Menu.Item
2024-02-08 14:01:40 +01:00
Fernando Chávez
e36ac0d387
feat(content-releases): sync all scheduled releases on bootstrap and cancel them on destroy (#19435)
* feat(content-releases): sync all scheduled releases on bootstrap and cancel all of them on destroy

* apply marc feedback

* throw error when sync
2024-02-08 12:10:21 +01:00
Josh
08bc82a220 Merge branch 'develop' into v5/main 2024-02-07 18:27:45 +00:00
Marc Roig
60335b11ec
Merge pull request #19452 from strapi/releases/4.20.0
Releases/4.20.0 - develop
2024-02-07 17:50:56 +01:00
Mark Kaylor
b0d94f6dce v4.20.0 2024-02-07 17:11:39 +01:00
Bassel Kanso
425f7870d6
fix(cm): restore proper pagination object on relations response (#19445) 2024-02-07 14:31:51 +00:00
Josh
28ff8c22bc
fix(review-workflows): pass data not body (#19447)
resolves #19340
2024-02-07 14:26:36 +00:00
Josh
04fae4025e
fix(review-workflows): cannot create or update workflow & data doesn't invalidate correctly (#19440)
* fix(review-workflows): cannot create or update workflow & data doesn't invalidate correctly

resolves #19439

* Update packages/core/admin/ee/admin/src/services/reviewWorkflows.ts
2024-02-07 12:53:50 +00:00
Simone
1e7aa5939c
fix(content-releases): add disabled state to action radio buttons (#19420)
* fix(content-releases): change action radio buttons behaviour and ui

* fix(content-releases): change the hover effect and remove the publish check

* fix(content-releases): show hover effect only on enabled radio buttons
2024-02-07 09:39:17 +01:00
Fernando Chávez
6d384ed205
feat(content-releases): add scheduledAt to releases content type & requests (#19418)
* feat(content-releases): Add new scheduling service

* feat(content-releases): add scheduledAt to releases contentType and request

* fix unit tests

* change release type
2024-02-06 13:50:40 +01:00
markkaylor
bbc0605d68
test(content-releases): add end-to-end tests (#19407) 2024-02-06 12:26:06 +01:00
Fernando Chávez
53caa296b5
feat(content-releases): Add new scheduling service (#19414)
* feat(content-releases): Add new scheduling service

* apply remi's feedback
2024-02-06 10:08:59 +01:00
markkaylor
287aae0bb4
fix(content-releases): handle release.createdBy is null (#19376) 2024-02-05 14:02:53 +01:00
markkaylor
e63e99cccf
fix(dts): support morphToOne relations (#19381)
Co-authored by: @Convly
2024-02-05 10:58:16 +01:00
Fernando Chavez
f6928f6864 Merge branch 'develop' of github.com:strapi/strapi into v5/merge2 2024-02-05 10:48:01 +01:00
Simone
3054a74dd9
fix(content-releases): use the same width and height for the two menus (#19399) 2024-02-05 09:42:39 +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
Ben Irvin
44f19b3d2f
chore: fixes for flaky tests 2024-02-02 10:49:02 +01:00
Jamie Howard
3f7b2587c5
fix: unique and UID validation logic 2024-02-01 18:02:02 +01:00
David Pulgarin
9f7647d074
fix(users): adjust response management to create user (#19382) 2024-02-01 09:25:56 +00:00
Fernando Chávez
c5f067b565
fix(content-releases): Add single type to releases (#19332)
* fix(content-releases): Add single type to releases

* apply mark & remi feedback

* change comment to be more clear

* remove file
2024-01-31 15:56:01 +01:00
Simone
b271d3ffd3
fix(content-releases): correct wrong property name (#19394) 2024-01-31 15:45:29 +01:00
markkaylor
8e78b0c909
Merge pull request #19397 from strapi/releases/4.19.1
v4.19.1
2024-01-31 15:44:40 +01:00
Mark Kaylor
34f7e875cd v4.19.1 2024-01-31 14:41:53 +01:00
Josh
812647b8b0
fix(cm): pass params to post requests for publish & unpublish (#19294)
* fix(cm): pass params to post requests for publish & unpublish

resolves #19289

* Extract locale from query strings (#19359)

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-01-31 11:50:22 +00:00
Madhuri Sandbhor
382f9062c8
feat(Blocks): Nested list (#19244)
* feat: nested list feat added, toggling lists through toolbar button updated, list node validation updated

* update: list select option logic updated to toggle whole list

* fixes: both toolbar list buttons active for nested list, reverted conversion change

* feat: on double enter the nested list item, shift list-item under parent list

* feat: added handle delete on simple and nested list-items and list block, updated handle enter on last list-item

* fix: typeguards added

* fix: added missing depth to find anchorNode

* fix: nested list first item backspace issue handled, fixed selecting all + delete doesnt delete last list item

* fix: handling last list item on delete moved to toolbar where it tries to save DD option as list-item

* update: restrict MB for first level of list items

* update: restrict MB for first level of list items

* fix: minor changes, comments updated, removed unnecessary code

* fix:code optimisation, added aria label for blocks input

* tests: unit tests added for tab, backspace and enter event functionality newly added

* tests: toggle nested list test added

* update: type changes, fixed enter at the beginning of the node

* update: use handleConvert to toggle list, variable renamed to aria-labelId

* fix: minor change

* fix: code optimisation, comments added

* comment updated
2024-01-31 09:58:54 +01:00
Fernando Chávez
0a7843dbfb
chore(content-releases): add tracking (#19369)
* chore(content-releases): add tracking

* apply remi's feedback
2024-01-30 17:57:25 +01:00
Josh
aabbb0b2ef Merge branch 'develop' into v5/main 2024-01-30 16:26:36 +00:00
Simone
cae3a5a17d
chore(content-releases): show Banner reached limit max releases (#19276)
* chore(content-releases): add alert reached max limit pending releases

* chore(content-releases): use max pending releases number from config

* chore(content-releases): change limits string content

* chore(content-releases): unit test to check the limit banner

* chore(content-releases): fix ts error

* chore(content-releases): fix review comments

* chore(content-releases): refactor the solution to use useLicenseLimits

* chore(content-releases): fix review comments

* chore(content-releases): fix type error

* chore(content-releases): fix HeaderLayout wrong height because of subtitle empty on loading

* chore(content-releases): remove ReleaseLayout component

* chore(content-releases): remove useless translation

---------

Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
2024-01-30 12:03:33 +01:00
Marc Roig
2d371a2d60
fix: nested on commit on rollback transactions (#19368) 2024-01-30 11:00:08 +01:00
Jean-Sébastien Herbaux
080f42e344
[breaking change] Remove the TOrigin Type Param for Attribute.UID (#19336) 2024-01-30 10:10:05 +01:00
Fernando Chávez
8832c2b924
chore(content-releases): optimistic updates for content releases actions (#19065)
* chore(content-releases): optimistic updates for content releases actions

* fix lint issues

* dont use lodash
2024-01-30 09:26:48 +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
Bassel Kanso
e1dfd4d9f1
fix: Check component names against collectionTypeNames 2024-01-29 15:29:46 +01:00
Jean-Sébastien Herbaux
b1576b572e
Merge pull request #19335 from strapi/v5/enhancement/types/remove-attribute-relation-param 2024-01-29 14:02:26 +01:00
Serghei
e269729047
fix(admin): password should not be sent if it is an empty string (#19295)
* Fix password is sent when it was not changed

* Refactor a bit

* Try fix types

* Run prettier

* Update packages/core/admin/admin/src/pages/Settings/pages/Users/EditPage.tsx

* Use signle quotes instead

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-01-29 10:58:54 +00:00
Jean-Sébastien Herbaux
1a290be57f
Merge pull request #19334 from strapi/v5/enhancement/types/relation-properties 2024-01-26 15:37:31 +01:00
Alexandre Bodin
3bc82f6a77 chore: add a simple model registry 2024-01-26 11:31:53 +01:00
Jean-Sébastien Herbaux
d752a33d2d
Merge branch 'v5/main' into v5/enhancement/types/relation-properties 2024-01-26 11:12:24 +01:00
Josh
8c0ce63098 test(cm): hotfix AutoCloneFailureModal test 2024-01-26 10:01:54 +00:00
Josh
1ec998ff84 Merge branch 'develop' into v5/main 2024-01-26 08:31:31 +00:00
Ben Irvin
64423c997f
enhancement: restrict configuration filenames 2024-01-26 09:07:31 +01:00