From 6095a9d7d19c64d6006e1dfe0e69511c195871a7 Mon Sep 17 00:00:00 2001 From: rjamet-ovh <157609363+rjamet-ovh@users.noreply.github.com> Date: Thu, 14 Nov 2024 19:17:51 +0100 Subject: [PATCH] feat(web): add private-database logs to customer module (#13574) ref: MANAGER-15356 Signed-off-by: Romain Jamet Co-authored-by: CDS Translator Agent --- .../dashboard/private-database.controller.js | 2 + .../dashboard/private-database.html | 7 ++- .../dashboard/private-database.module.js | 2 +- .../dashboard/private-database.routing.js | 6 ++ .../translations/Messages_de_DE.json | 3 +- .../translations/Messages_en_GB.json | 3 +- .../translations/Messages_es_ES.json | 3 +- .../translations/Messages_fr_CA.json | 3 +- .../translations/Messages_fr_FR.json | 3 +- .../translations/Messages_it_IT.json | 3 +- .../translations/Messages_pl_PL.json | 3 +- .../translations/Messages_pt_PT.json | 3 +- .../logs/data-streams/index.js | 27 +++++++++ ...private-database-data-streams.component.js | 13 +++++ ...private-database-data-streams.constants.js | 12 ++++ ...rivate-database-data-streams.controller.js | 19 +++++++ .../private-database-data-streams.module.js | 15 +++++ .../private-database-data-streams.routing.js | 29 ++++++++++ ...rivate-database-data-streams.template.html | 10 ++++ .../client/app/private-database/logs/index.js | 22 +++++++ .../app/private-database/logs/logs.module.js | 10 ---- .../app/private-database/logs/logs.routing.js | 15 ----- .../logs/private-database-logs.component.js | 14 +++++ .../logs/private-database-logs.constants.js | 50 ++++++++++++++++ .../logs/private-database-logs.controller.js | 57 ++++++------------- .../logs/private-database-logs.html | 30 ---------- .../logs/private-database-logs.module.js | 23 ++++++++ .../logs/private-database-logs.routing.js | 43 ++++++++++++++ .../logs/private-database-logs.service.js | 32 +++++------ .../logs/private-database-logs.template.html | 17 ++++++ .../logs/translations/Messages_de_DE.json | 4 +- .../logs/translations/Messages_en_GB.json | 4 +- .../logs/translations/Messages_es_ES.json | 4 +- .../logs/translations/Messages_fr_CA.json | 4 +- .../logs/translations/Messages_fr_FR.json | 4 +- .../logs/translations/Messages_it_IT.json | 4 +- .../logs/translations/Messages_pl_PL.json | 4 +- .../logs/translations/Messages_pt_PT.json | 4 +- packages/manager/apps/web/package.json | 2 + 39 files changed, 381 insertions(+), 132 deletions(-) create mode 100644 packages/manager/apps/web/client/app/private-database/logs/data-streams/index.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/data-streams/private-database-data-streams.component.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/data-streams/private-database-data-streams.constants.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/data-streams/private-database-data-streams.controller.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/data-streams/private-database-data-streams.module.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/data-streams/private-database-data-streams.routing.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/data-streams/private-database-data-streams.template.html create mode 100644 packages/manager/apps/web/client/app/private-database/logs/index.js delete mode 100644 packages/manager/apps/web/client/app/private-database/logs/logs.module.js delete mode 100644 packages/manager/apps/web/client/app/private-database/logs/logs.routing.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/private-database-logs.component.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/private-database-logs.constants.js delete mode 100644 packages/manager/apps/web/client/app/private-database/logs/private-database-logs.html create mode 100644 packages/manager/apps/web/client/app/private-database/logs/private-database-logs.module.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/private-database-logs.routing.js create mode 100644 packages/manager/apps/web/client/app/private-database/logs/private-database-logs.template.html diff --git a/packages/manager/apps/web/client/app/private-database/dashboard/private-database.controller.js b/packages/manager/apps/web/client/app/private-database/dashboard/private-database.controller.js index 0f8700b6f94d..2d931ad664da 100644 --- a/packages/manager/apps/web/client/app/private-database/dashboard/private-database.controller.js +++ b/packages/manager/apps/web/client/app/private-database/dashboard/private-database.controller.js @@ -22,6 +22,7 @@ export default class PrivateDatabaseCtrl { databaseLink, hasConfiguration, logsLink, + isLogsToCustomerFeatureAvailable, metricsLink, Hosting, PrivateDatabase, @@ -47,6 +48,7 @@ export default class PrivateDatabaseCtrl { this.hasConfiguration = hasConfiguration; this.hostingService = Hosting; this.logsLink = logsLink; + this.isLogsToCustomerFeatureAvailable = isLogsToCustomerFeatureAvailable; this.metricsLink = metricsLink; this.privateDatabaseExtensionService = PrivateDatabaseExtension; this.privateDatabaseService = PrivateDatabase; diff --git a/packages/manager/apps/web/client/app/private-database/dashboard/private-database.html b/packages/manager/apps/web/client/app/private-database/dashboard/private-database.html index 86d940343016..10f5357aa1e3 100644 --- a/packages/manager/apps/web/client/app/private-database/dashboard/private-database.html +++ b/packages/manager/apps/web/client/app/private-database/dashboard/private-database.html @@ -229,11 +229,15 @@ +
+