Skip to content

Commit

Permalink
Removed DSN details from ViewableConfig (#179)
Browse files Browse the repository at this point in the history
* Removed DSN details from ViewableConfig

* remove port

* remove dsn details from UI

Co-authored-by: horlah <emmanuel.ainaj@gmail.com>
  • Loading branch information
subomi and horlah authored Oct 22, 2021
1 parent 69bfdef commit 75d98c3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 deletions.
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
6 changes: 0 additions & 6 deletions server/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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,
}
Expand Down
30 changes: 0 additions & 30 deletions web/ui/dashboard/src/pages/dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,36 +382,6 @@ function DashboardPage() {
</div>

<ul className="card--container">
<li className="list-item">
<div className="list-item--label">
DB URL
<div className="list-item--item">{OrganisationDetails.database.dsn}</div>
</div>
<button onClick={() => copyText(OrganisationDetails.database.dsn)}>
<img src={CopyIcon} alt="copy icon" />
</button>
</li>

<li className="list-item">
<div className="list-item--label">
Queue
<div className="list-item--item">{OrganisationDetails.queue.redis.dsn}</div>
</div>
<button onClick={() => copyText(OrganisationDetails.queue.redis.dsn)}>
<img src={CopyIcon} alt="copy icon" />
</button>
</li>

<li className="list-item">
<div className="list-item--label">
Port
<div className="list-item--item">{OrganisationDetails.server.http.port}</div>
</div>
<button onClick={() => copyText('http://localhost:' + OrganisationDetails.server.http.port)}>
<img src={CopyIcon} alt="copy icon" />
</button>
</li>

<li className="list-item">
<div className="list-item--label">
Request interval Seconds
Expand Down

0 comments on commit 75d98c3

Please sign in to comment.