Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding new default template #13345

Merged
merged 5 commits into from
Apr 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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