Skip to content

Commit

Permalink
adding new default template for getting started with flux (#13345)
Browse files Browse the repository at this point in the history
* adding new default template for getting started with flux
  • Loading branch information
russorat authored Apr 12, 2019
1 parent cc199fb commit 70100b2
Show file tree
Hide file tree
Showing 4 changed files with 970 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
1. [13161](https://github.com/influxdata/influxdb/pull/13161): Add the ability to add labels on variables
1. [13171](https://github.com/influxdata/influxdb/pull/13171): Add switch organizations dropdown to home navigation menu item.
1. [13173](https://github.com/influxdata/influxdb/pull/13173): Add create org to side nav
1. [13345](https://github.com/influxdata/influxdb/pull/13345): Added a new Getting Started with Flux Template

### Bug Fixes
1. [13284](https://github.com/influxdata/influxdb/pull/13284): Update shift to timeShift in the flux functions side bar
Expand Down
4 changes: 4 additions & 0 deletions ui/src/onboarding/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export const setupAdmin = (params: ISetupParams) => async (
await client.auth.signin(username, password)

await client.templates.create({...defaultTemplates.systemTemplate(), orgID})
await client.templates.create({
...defaultTemplates.gettingStartedWithFluxTemplate(),
orgID,
})

dispatch(notify(SetupSuccess))
dispatch(setStepStatus(1, StepStatus.Complete))
Expand Down
4 changes: 4 additions & 0 deletions ui/src/organizations/actions/orgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ export const createOrgWithBucket = (
...defaultTemplates.systemTemplate(),
orgID: createdOrg.id,
})
await client.templates.create({
...defaultTemplates.gettingStartedWithFluxTemplate(),
orgID: createdOrg.id,
})
dispatch(notify(orgCreateSuccess()))

dispatch(addOrg(createdOrg))
Expand Down
Loading

0 comments on commit 70100b2

Please sign in to comment.