From 6c77d9c77e17a1bb18762916b2007952e315c871 Mon Sep 17 00:00:00 2001 From: Nevermind23 Date: Thu, 13 Jun 2024 13:10:58 +0400 Subject: [PATCH 1/5] chore: Add new sections to hide by feature flag --- ...ersion202406131030273245_taoBackOffice.php | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 migrations/Version202406131030273245_taoBackOffice.php diff --git a/migrations/Version202406131030273245_taoBackOffice.php b/migrations/Version202406131030273245_taoBackOffice.php new file mode 100644 index 0000000..2d0d4e5 --- /dev/null +++ b/migrations/Version202406131030273245_taoBackOffice.php @@ -0,0 +1,46 @@ +getServiceManager()->get(SectionVisibilityFilter::SERVICE_ID); + + $sectionVisibilityFilter->hideSectionByFeatureFlag( + 'taoBo_remotelist', + FeatureFlagCheckerInterface::FEATURE_FLAG_SOLAR_DESIGN_ENABLED + ); + $sectionVisibilityFilter->hideSectionByFeatureFlag( + 'taoBo_tree', + FeatureFlagCheckerInterface::FEATURE_FLAG_SOLAR_DESIGN_ENABLED + ); + + $this->getServiceManager()->register(SectionVisibilityFilter::SERVICE_ID, $sectionVisibilityFilter); + } + + public function down(Schema $schema): void + { + throw new IrreversibleMigration(); + } +} From b7bb053e4d288789d2ed35cb5cb85fa9447616da Mon Sep 17 00:00:00 2001 From: Saba <23014889+Nevermind23@users.noreply.github.com> Date: Mon, 24 Jun 2024 12:37:47 +0400 Subject: [PATCH 2/5] chore: Update generis and tao-core Signed-off-by: Saba <23014889+Nevermind23@users.noreply.github.com> --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 192e4d2..a8e6d24 100755 --- a/composer.json +++ b/composer.json @@ -22,8 +22,8 @@ "minimum-stability" : "dev", "require": { "oat-sa/oatbox-extension-installer": "~1.1||dev-master", - "oat-sa/generis" : ">=15.22", - "oat-sa/tao-core" : ">=54.10.0" + "oat-sa/generis": ">=15.36.4", + "oat-sa/tao-core": ">=54.14.7" }, "autoload" : { "psr-4" : { From 8a3f5b63108ca7000dcfcf05ff493f37e4cdc902 Mon Sep 17 00:00:00 2001 From: Saba <23014889+Nevermind23@users.noreply.github.com> Date: Mon, 24 Jun 2024 12:40:14 +0400 Subject: [PATCH 3/5] chore: Rollback changes with generis version Signed-off-by: Saba <23014889+Nevermind23@users.noreply.github.com> --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a8e6d24..9de2f4e 100755 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "minimum-stability" : "dev", "require": { "oat-sa/oatbox-extension-installer": "~1.1||dev-master", - "oat-sa/generis": ">=15.36.4", + "oat-sa/generis": ">=15.22", "oat-sa/tao-core": ">=54.14.7" }, "autoload" : { From e93c8bcb513289202e31e4673432fd3c18fa2dbe Mon Sep 17 00:00:00 2001 From: Saba <23014889+Nevermind23@users.noreply.github.com> Date: Mon, 24 Jun 2024 12:45:35 +0400 Subject: [PATCH 4/5] chore: Remove generis from composer Signed-off-by: Saba <23014889+Nevermind23@users.noreply.github.com> --- composer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/composer.json b/composer.json index 9de2f4e..adcf63b 100755 --- a/composer.json +++ b/composer.json @@ -22,7 +22,6 @@ "minimum-stability" : "dev", "require": { "oat-sa/oatbox-extension-installer": "~1.1||dev-master", - "oat-sa/generis": ">=15.22", "oat-sa/tao-core": ">=54.14.7" }, "autoload" : { From 57b5cf0f6be89d6c2b65e0271b4763c4a9dfad7d Mon Sep 17 00:00:00 2001 From: Saba <23014889+Nevermind23@users.noreply.github.com> Date: Mon, 24 Jun 2024 12:50:34 +0400 Subject: [PATCH 5/5] chore: Add description Signed-off-by: Saba <23014889+Nevermind23@users.noreply.github.com> --- migrations/Version202406131030273245_taoBackOffice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/Version202406131030273245_taoBackOffice.php b/migrations/Version202406131030273245_taoBackOffice.php index 2d0d4e5..7de35f7 100644 --- a/migrations/Version202406131030273245_taoBackOffice.php +++ b/migrations/Version202406131030273245_taoBackOffice.php @@ -19,7 +19,7 @@ final class Version202406131030273245_taoBackOffice extends AbstractMigration { public function getDescription(): string { - return ''; + return 'Hiding taoBo_remotelist and taoBo_tree sections in case solar design is enabled'; } public function up(Schema $schema): void