Skip to content

Commit

Permalink
fix(ui): properly map over queryBuilder tags and set default values
Browse files Browse the repository at this point in the history
  • Loading branch information
hoorayimhelping committed Dec 4, 2019
1 parent 5049850 commit a787494
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v2.0.0-alpha.21 [unreleased]

### Features

### Bug Fixes
1. [16101](https://github.com/influxdata/influxdb/pull/16101): Gracefully handle invalid user-supplied JSON
1. [16105](https://github.com/influxdata/influxdb/pull/16105): Fix crash when loading queries built using Query Builder

### UI Improvements

## v2.0.0-alpha.20 [2019-11-20]

### Features
Expand Down Expand Up @@ -28,7 +38,6 @@
1. [15853](https://github.com/influxdata/influxdb/pull/15853): Prompt users to make a dashboard when dashboards are empty
1. [15884](https://github.com/influxdata/influxdb/pull/15884): Remove name editing from query definition during threshold check creation
1. [15975](https://github.com/influxdata/influxdb/pull/15975): Wait until user stops dragging and releases marker before zooming in after threshold changes
1. [16101](https://github.com/influxdata/influxdb/pull/16101): Gracefully handle invalid user-supplied JSON

### UI Improvements
1. [15809](https://github.com/influxdata/influxdb/pull/15809): Redesign cards and animations on getting started page
Expand Down
5 changes: 4 additions & 1 deletion ui/src/timeMachine/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,10 @@ const initialQueryBuilderState = (
bucketsStatus: RemoteDataState.NotStarted,
functions: [],
aggregateWindow: {period: 'auto'},
tags: initialStateHelper().queryBuilder.tags,
tags: builderConfig.tags.map(() => {
const [defaultTag] = initialStateHelper().queryBuilder.tags
return defaultTag
}),
}
}

Expand Down

0 comments on commit a787494

Please sign in to comment.