From f3e41006f4049e22a0e4a986fdd9b0aae548fb48 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Thu, 19 May 2022 15:47:38 +0530 Subject: [PATCH 1/3] added dashboard redirection using migration --- appinfo/info.xml | 11 ++++++++++- lib/Migration/SetDefaultApp.php | 24 ++++++++++++++++++++++++ lib/Migration/UnsetDefaultApp.php | 26 ++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 lib/Migration/SetDefaultApp.php create mode 100644 lib/Migration/UnsetDefaultApp.php diff --git a/appinfo/info.xml b/appinfo/info.xml index 57d4f89..ef0f3ea 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ ECloud dashboard /e/ Cloud Dashboard - 0.0.2 + 0.0.6 agpl Ronak Patel EcloudDashboard @@ -20,4 +20,13 @@ ecloud-dashboard.page.index + + + OCA\EcloudDashboard\Migration\SetDefaultApp + + + OCA\EcloudDashboard\Migration\UnsetDefaultApp + + + diff --git a/lib/Migration/SetDefaultApp.php b/lib/Migration/SetDefaultApp.php new file mode 100644 index 0000000..4b4869d --- /dev/null +++ b/lib/Migration/SetDefaultApp.php @@ -0,0 +1,24 @@ +config = $config; + } + + public function getName() { + return 'Set the custom email template'; + } + + public function run(IOutput $output) { + $this->config->setSystemValue('defaultapp', 'ecloud-dashboard,dashboard'); + } +} diff --git a/lib/Migration/UnsetDefaultApp.php b/lib/Migration/UnsetDefaultApp.php new file mode 100644 index 0000000..7a654a0 --- /dev/null +++ b/lib/Migration/UnsetDefaultApp.php @@ -0,0 +1,26 @@ +config = $config; + } + + public function getName() { + return 'Reset the email template to default'; + } + + public function run(IOutput $output) { + if ($this->config->getSystemValue('defaultapp') === EMailTemplate::class) { + $this->config->deleteSystemValue('defaultapp'); + } + } +} -- GitLab From c4d70f11b2c726821d750e103c390da96c9b38cc Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Thu, 19 May 2022 15:55:05 +0530 Subject: [PATCH 2/3] version change --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index ef0f3ea..0757e5f 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ ECloud dashboard /e/ Cloud Dashboard - 0.0.6 + 0.0.3 agpl Ronak Patel EcloudDashboard -- GitLab From aeaa4319562d6ebf155016186e7c20817ac02dcb Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Thu, 19 May 2022 16:06:48 +0530 Subject: [PATCH 3/3] gitlab change --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae6fa90..4607a20 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,7 +68,7 @@ deploy:dev01: - master - main - production - - auto-deployments + - change-dashboard-redirection environment: name: dev/01 url: https://dev.eeo.one/ -- GitLab