Skip to content

Commit

Permalink
fix(ui/dataLoaders): Add swap to system bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
ischolten committed Feb 5, 2019
1 parent d728c8f commit fd974fb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v2.0.0-alpha.2 [unreleased]

## Features

## Bug Fixes
1. [11678](https://github.com/influxdata/influxdb/pull/11678): Update the System Telegraf Plugin bundle to include the swap plugin

## UI Improvements


## v2.0.0-alpha.1 [2019-01-23]

### Release Notes
Expand Down
7 changes: 7 additions & 0 deletions ui/mocks/dummyData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
TelegrafPluginInputNet,
TelegrafPluginInputProcstat,
TelegrafPluginInputDocker,
TelegrafPluginInputSwap,
Task as TaskApi,
Organization,
} from 'src/api'
Expand Down Expand Up @@ -400,6 +401,12 @@ export const redisTelegrafPlugin = {
name: TelegrafPluginInputRedis.NameEnum.Redis,
}

export const swapTelegrafPlugin = {
...telegrafPlugin,
name: TelegrafPluginInputSwap.NameEnum.Swap,
configured: ConfigurationState.Configured,
}

export const redisPlugin = {
name: TelegrafPluginInputRedis.NameEnum.Redis,
type: TelegrafPluginInputRedis.TypeEnum.Input,
Expand Down
1 change: 1 addition & 0 deletions ui/src/dataLoaders/constants/pluginConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const pluginsByBundle: PluginBundles = {
TelegrafPluginInputMem.NameEnum.Mem,
TelegrafPluginInputNet.NameEnum.Net,
TelegrafPluginInputProcesses.NameEnum.Processes,
TelegrafPluginInputSwap.NameEnum.Swap,
],
[BundleName.Docker]: [TelegrafPluginInputDocker.NameEnum.Docker],
[BundleName.Kubernetes]: [TelegrafPluginInputKubernetes.NameEnum.Kubernetes],
Expand Down
2 changes: 2 additions & 0 deletions ui/src/dataLoaders/reducers/dataLoaders.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
token,
telegrafConfig,
dockerTelegrafPlugin,
swapTelegrafPlugin,
} from 'mocks/dummyData'
import {QUICKSTART_SCRAPER_TARGET_URL} from 'src/dataLoaders/constants/pluginConfigs'

Expand Down Expand Up @@ -506,6 +507,7 @@ describe('dataLoader reducer', () => {
memTelegrafPlugin,
netTelegrafPlugin,
processesTelegrafPlugin,
swapTelegrafPlugin,
])
)
})
Expand Down

0 comments on commit fd974fb

Please sign in to comment.