Skip to content

Commit

Permalink
Merge pull request #12096 from influxdata/feat/clone-task-labels
Browse files Browse the repository at this point in the history
feat(ui): Clone a task's labels when cloning the task
  • Loading branch information
ischolten authored Feb 22, 2019
2 parents a75adf6 + ed39dc5 commit b9d5a7b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v2.0.0-alpha.5 [unreleased]

### Features
1. [12096](https://github.com/influxdata/influxdb/pull/12096): Add labels to cloned tasks

### Bug Fixes

Expand Down
47 changes: 33 additions & 14 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 @@ -134,7 +134,7 @@
},
"dependencies": {
"@influxdata/clockface": "0.0.5",
"@influxdata/influx": "0.2.15",
"@influxdata/influx": "0.2.18",
"@influxdata/react-custom-scrollbars": "4.3.8",
"axios": "^0.18.0",
"babel-polyfill": "^6.26.0",
Expand Down
4 changes: 1 addition & 3 deletions ui/src/tasks/actions/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,7 @@ export const deleteTask = (task: Task) => async dispatch => {

export const cloneTask = (task: Task, _) => async dispatch => {
try {
// const allTaskNames = tasks.map(t => t.name)
// const clonedName = incrementCloneName(allTaskNames, task.name)
await client.tasks.create(task.orgID, task.flux)
await client.tasks.clone(task.id)

dispatch(notify(taskCloneSuccess(task.name)))
dispatch(populateTasks())
Expand Down

0 comments on commit b9d5a7b

Please sign in to comment.