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 Apr 26, 2019
1 parent f79dab5 commit 90f1dd4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
4 changes: 2 additions & 2 deletions ui/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,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 @@ -232,7 +232,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 @@ -406,7 +406,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 @@ -496,8 +496,7 @@ export const bucket = {
self: '/api/v2/buckets/034a10d6f7a6b000',
},
id: '034a10d6f7a6b000',
organizationID: '034a0adc49a6b000',
organization: 'default',
orgID: '034a0adc49a6b000',
name: 'newbuck',
retentionRules: [],
labels: [],
Expand All @@ -512,8 +511,7 @@ export const buckets = [
self: '/api/v2/buckets/034a10d6f7a6b000',
},
id: '034a10d6f7a6b000',
organizationID: '034a0adc49a6b000',
organization: 'default',
orgID: '034a0adc49a6b000',
name: 'newbuck',
retentionRules: [],
labels: [],
Expand All @@ -526,8 +524,7 @@ export const buckets = [
self: '/api/v2/buckets/034a10d6f7a6b000',
},
id: '034a10d6f7a6b001',
organizationID: '034a0adc49a6b000',
organization: 'default',
orgID: '034a0adc49a6b000',
name: 'newbuck1',
retentionRules: [],
labels: [],
Expand All @@ -553,7 +550,6 @@ export const setSetupParamsResponse = {
},
id: '033bc62534fe3000',
orgID: '033bc62534be3000',
organization: 'default',
name: 'defbuck',
retentionRules: [],
labels: [],
Expand Down Expand Up @@ -648,12 +644,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
4 changes: 2 additions & 2 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 @@ -141,7 +141,7 @@
},
"dependencies": {
"@influxdata/clockface": "0.0.10",
"@influxdata/influx": "github:influxdata/influxdb2-js#dev",
"@influxdata/influx": "github:influxdata/influxdb2-js#telegraf_rename_orgID",
"@influxdata/react-custom-scrollbars": "4.3.8",
"@influxdata/vis": "^0.2.3",
"axios": "^0.18.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 90f1dd4

Please sign in to comment.