From 75d98c3985573dcd8118890530c61a8cca7eb820 Mon Sep 17 00:00:00 2001 From: Subomi Oluwalana Date: Fri, 22 Oct 2021 20:09:09 +0100 Subject: [PATCH] Removed DSN details from ViewableConfig (#179) * Removed DSN details from ViewableConfig * remove port * remove dsn details from UI Co-authored-by: horlah --- docs/docs.go | 2 +- server/dashboard.go | 6 ---- web/ui/dashboard/src/pages/dashboard/index.js | 30 ------------------- 3 files changed, 1 insertion(+), 37 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 31f69e5065..d582b1f9e2 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,6 +1,6 @@ // Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag at -// 2021-10-21 21:45:49.920447 +0100 WAT m=+28.371370335 +// 2021-10-22 19:33:57.825121 +0100 WAT m=+27.754918168 package docs import ( diff --git a/server/dashboard.go b/server/dashboard.go index a7e54e1814..e9fd5a25ef 100644 --- a/server/dashboard.go +++ b/server/dashboard.go @@ -24,9 +24,6 @@ type AuthorizedLogin struct { } type ViewableConfiguration struct { - Database config.DatabaseConfiguration `json:"database"` - Queue config.QueueConfiguration `json:"queue"` - Server config.ServerConfiguration `json:"server"` Strategy config.StrategyConfiguration `json:"strategy"` Signature config.SignatureConfiguration `json:"signature"` } @@ -249,9 +246,6 @@ func fetchAllConfigDetails() func(next http.Handler) http.Handler { } viewableConfig := ViewableConfiguration{ - Database: cfg.Database, - Queue: cfg.Queue, - Server: cfg.Server, Strategy: cfg.Strategy, Signature: cfg.Signature, } diff --git a/web/ui/dashboard/src/pages/dashboard/index.js b/web/ui/dashboard/src/pages/dashboard/index.js index e151f57651..2935f8b6b8 100644 --- a/web/ui/dashboard/src/pages/dashboard/index.js +++ b/web/ui/dashboard/src/pages/dashboard/index.js @@ -382,36 +382,6 @@ function DashboardPage() {