Skip to content

Commit

Permalink
fix(ui): update ui telegraf orgID
Browse files Browse the repository at this point in the history
  • Loading branch information
kelwang committed Jun 3, 2019
1 parent 18a0f3f commit fe01f36
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 19 deletions.
4 changes: 2 additions & 2 deletions ui/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export const createScraper = (
export const createTelegraf = (
name?: string,
description?: string,
organizationID?: string
orgID?: string
): Cypress.Chainable<Cypress.Response> => {
return cy.request({
method: 'POST',
Expand All @@ -256,7 +256,7 @@ export const createTelegraf = (
description,
agent: {collectionInterval: 10000},
plugins: [],
organizationID,
orgID,
},
})
}
Expand Down
16 changes: 6 additions & 10 deletions ui/mocks/dummyData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export const influxDB2Plugin = {

export const telegrafConfig = {
id: telegrafConfigID,
organizationID: '1',
orgID: '1',
name: 'in n out',
created: '2018-11-28T18:56:48.854337-08:00',
lastModified: '2018-11-28T18:56:48.854337-08:00',
Expand Down Expand Up @@ -500,8 +500,7 @@ export const bucket = {
self: '/api/v2/buckets/034a10d6f7a6b000',
},
id: '034a10d6f7a6b000',
organizationID: '034a0adc49a6b000',
organization: 'default',
orgID: '034a0adc49a6b000',
name: 'newbuck',
retentionRules: [],
labels: [],
Expand All @@ -516,8 +515,7 @@ export const buckets = [
self: '/api/v2/buckets/034a10d6f7a6b000',
},
id: '034a10d6f7a6b000',
organizationID: '034a0adc49a6b000',
organization: 'default',
orgID: '034a0adc49a6b000',
name: 'newbuck',
retentionRules: [],
labels: [],
Expand All @@ -530,8 +528,7 @@ export const buckets = [
self: '/api/v2/buckets/034a10d6f7a6b000',
},
id: '034a10d6f7a6b001',
organizationID: '034a0adc49a6b000',
organization: 'default',
orgID: '034a0adc49a6b000',
name: 'newbuck1',
retentionRules: [],
labels: [],
Expand All @@ -557,7 +554,6 @@ export const setSetupParamsResponse = {
},
id: '033bc62534fe3000',
orgID: '033bc62534be3000',
organization: 'default',
name: 'defbuck',
retentionRules: [],
labels: [],
Expand Down Expand Up @@ -652,12 +648,12 @@ export const telegraf = [
{
id: '03636a150fb51000',
name: 'Name this Configuration',
organizationID: '03636a0aabb51000',
orgID: '03636a0aabb51000',
},
{
id: '03636a150fb51001',
name: 'Name this Configuration',
organizationID: '03636a0aabb51000',
orgID: '03636a0aabb51000',
},
]

Expand Down
5 changes: 2 additions & 3 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
},
"dependencies": {
"@influxdata/clockface": "0.0.13",
"@influxdata/influx": "0.3.4",
"@influxdata/influx": "github:influxdata/influxdb2-js#telegraf_rename_orgID",
"@influxdata/influxdb-templates": "influxdata/influxdb-templates",
"@influxdata/react-custom-scrollbars": "4.3.8",
"@influxdata/vis": "^0.9.0",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/dataLoaders/actions/dataLoaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ const createTelegraf = async (dispatch, getState, plugins) => {
name: telegrafConfigName,
description: telegrafConfigDescription,
agent: {collectionInterval: DEFAULT_COLLECTION_INTERVAL},
organizationID: org.id,
orgID: org.id,
plugins,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`CollectorList rendering renders 1`] = `
Object {
"id": "03636a150fb51000",
"name": "Name this Configuration",
"organizationID": "03636a0aabb51000",
"orgID": "03636a0aabb51000",
}
}
key="03636a150fb51000"
Expand All @@ -37,7 +37,7 @@ exports[`CollectorList rendering renders 1`] = `
Object {
"id": "03636a150fb51001",
"name": "Name this Configuration",
"organizationID": "03636a0aabb51000",
"orgID": "03636a0aabb51000",
}
}
key="03636a150fb51001"
Expand Down

0 comments on commit fe01f36

Please sign in to comment.