Update hostname for meta urls for new sources only
parent
50dd57a37a
commit
ed877df57f
|
@ -4,6 +4,7 @@
|
||||||
1. [#4895](https://github.com/influxdata/chronograf/pull/4895): Properly set scroll to row for table graph
|
1. [#4895](https://github.com/influxdata/chronograf/pull/4895): Properly set scroll to row for table graph
|
||||||
1. [#4906](https://github.com/influxdata/chronograf/pull/4906): Prevent Kapacitor URLs from being overwritten in Connection Wizard.
|
1. [#4906](https://github.com/influxdata/chronograf/pull/4906): Prevent Kapacitor URLs from being overwritten in Connection Wizard.
|
||||||
1. [#4862](https://github.com/influxdata/chronograf/pull/4909): Fix logs intermitently show empty on first load
|
1. [#4862](https://github.com/influxdata/chronograf/pull/4909): Fix logs intermitently show empty on first load
|
||||||
|
1. [#5034](https://github.com/influxdata/chronograf/pull/5034): Prevent meta node URLs from being overwritten in Connection Wizard.
|
||||||
|
|
||||||
## v1.7.5 [2018-12-14]
|
## v1.7.5 [2018-12-14]
|
||||||
|
|
||||||
|
|
|
@ -216,10 +216,10 @@ class SourceStep extends PureComponent<Props, State> {
|
||||||
const {source} = this.state
|
const {source} = this.state
|
||||||
const metaserviceURL = new URL(source.metaUrl || DEFAULT_SOURCE.metaUrl)
|
const metaserviceURL = new URL(source.metaUrl || DEFAULT_SOURCE.metaUrl)
|
||||||
const sourceURL = new URL(sourceURLstring || DEFAULT_SOURCE.url)
|
const sourceURL = new URL(sourceURLstring || DEFAULT_SOURCE.url)
|
||||||
metaserviceURL.hostname = sourceURL.hostname
|
|
||||||
|
|
||||||
if (isNewSource(source)) {
|
if (isNewSource(source)) {
|
||||||
try {
|
try {
|
||||||
|
metaserviceURL.hostname = sourceURL.hostname
|
||||||
let sourceFromServer = await createSource(source)
|
let sourceFromServer = await createSource(source)
|
||||||
sourceFromServer = {...sourceFromServer, metaUrl: metaserviceURL.href}
|
sourceFromServer = {...sourceFromServer, metaUrl: metaserviceURL.href}
|
||||||
this.props.addSource(sourceFromServer)
|
this.props.addSource(sourceFromServer)
|
||||||
|
|
Loading…
Reference in New Issue