From 6164cc70bc43e58226d126c4d7d38dee91afb611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 29 Oct 2024 20:09:42 +0100 Subject: [PATCH 1/2] Described ibexa:content:remove-duplicate-fields in the 4.6.13 update doc --- .../from_4.6/update_from_4.6.md | 23 +++++++++++++++++-- mkdocs.yml | 2 +- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/docs/update_and_migration/from_4.6/update_from_4.6.md b/docs/update_and_migration/from_4.6/update_from_4.6.md index 0da7dd7f38..a0c40188e8 100644 --- a/docs/update_and_migration/from_4.6/update_from_4.6.md +++ b/docs/update_and_migration/from_4.6/update_from_4.6.md @@ -119,7 +119,7 @@ No additional steps needed. ## v4.6.10 -A command to deal with duplicated database entries, as reported in [IBX-8562](https://issues.ibexa.co/browse/IBX-8562), will be available soon. +No additional steps needed. ## v4.6.11 @@ -138,8 +138,27 @@ merge with your custom settings if needed, and commit them to Git. ## v4.6.12 -If the new bundle `ibexa/core-search` has not been added by the recipies, enable it by adding the following line in `config/bundles.php`: +If the new bundle `ibexa/core-search` has not been added by the recipes, enable it by adding the following line in `config/bundles.php`: ```php Ibexa\Bundle\CoreSearch\IbexaCoreSearchBundle::class => ['all' => true], ``` + +## v4.6.13 + +This release comes with a command to clean up the duplicated entries in the `ezcontentobject_attribute` table, caused by the issue described in [IBX-8562](https://issues.ibexa.co/browse/IBX-8562). + +If you're affected you can remove the duplicated entries by running the `ibexa:content:remove-duplicate-fields` command: +``` bash +php bin/console ibexa:content:remove-duplicate-fields +``` + +!!! caution + + Remember about [**proper database backup**](backup.md) before running the command in the production environment. + +You can customize the behavior of the command with the following options: + +- `batch-size` or `b` - number of attributes affected per iteration. Default: 10000. +- `max-iterations` or `i` - max. iterations count (default or -1: unlimited). Default: -1. +- `sleep` or `s` - wait time between iterations, in milliseconds. Default: 0. diff --git a/mkdocs.yml b/mkdocs.yml index a4396ef833..e620a6f3d6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -923,7 +923,7 @@ extra: latest_tag_4_3: '4.3.5' latest_tag_4_4: '4.4.4' latest_tag_4_5: '4.5.7' - latest_tag_4_6: '4.6.12' + latest_tag_4_6: '4.6.13' symfony_doc: 'https://symfony.com/doc/5.4' user_doc: 'https://doc.ibexa.co/projects/userguide/en/master' From 3b85d1ef17533290cfbf327b3e24148ad09380b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 31 Oct 2024 10:08:06 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> --- docs/update_and_migration/from_4.6/update_from_4.6.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/update_and_migration/from_4.6/update_from_4.6.md b/docs/update_and_migration/from_4.6/update_from_4.6.md index a0c40188e8..255e8e2c2d 100644 --- a/docs/update_and_migration/from_4.6/update_from_4.6.md +++ b/docs/update_and_migration/from_4.6/update_from_4.6.md @@ -148,7 +148,7 @@ If the new bundle `ibexa/core-search` has not been added by the recipes, enable This release comes with a command to clean up the duplicated entries in the `ezcontentobject_attribute` table, caused by the issue described in [IBX-8562](https://issues.ibexa.co/browse/IBX-8562). -If you're affected you can remove the duplicated entries by running the `ibexa:content:remove-duplicate-fields` command: +If you're affected you can remove the duplicated entries by running the following command: ``` bash php bin/console ibexa:content:remove-duplicate-fields ``` @@ -159,6 +159,6 @@ php bin/console ibexa:content:remove-duplicate-fields You can customize the behavior of the command with the following options: -- `batch-size` or `b` - number of attributes affected per iteration. Default: 10000. -- `max-iterations` or `i` - max. iterations count (default or -1: unlimited). Default: -1. -- `sleep` or `s` - wait time between iterations, in milliseconds. Default: 0. +- `batch-size` or `b` - number of attributes affected per iteration. Default value = 10000. +- `max-iterations` or `i` - max. iterations count (default or -1: unlimited). Default value = -1. +- `sleep` or `s` - wait time between iterations, in milliseconds. Default value = 0.