Skip to content

Commit

Permalink
Fixed task manual run notification type (#14412)
Browse files Browse the repository at this point in the history
* Fixed task manual run notification type

* updating changelog

* fixing trailing whitespace in stale.yml config
  • Loading branch information
russorat committed Jul 23, 2019
1 parent 871f546 commit 3dafbc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ markComment: >
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
This issue has been automatically closed because it has not had
recent activity. Please reopen if this issue is still
recent activity. Please reopen if this issue is still
important to you. Thank you for your contributions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Bug Fixes

1. [14287](https://github.com/influxdata/influxdb/pull/14287) Fix incorrect reporting of task as successful when error occurs during result iteration
1. [14412](https://github.com/influxdata/influxdb/pull/14412) Fix incorrect notification type for manually running a Task

### Known Issues

Expand Down
4 changes: 2 additions & 2 deletions ui/src/shared/copy/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,13 @@ export const taskImportSuccess = (): Notification => ({
})

export const taskRunSuccess = (): Notification => ({
...defaultErrorNotification,
...defaultSuccessNotification,
duration: FIVE_SECONDS,
message: 'Task scheduled successfully',
})

export const taskRunFailed = (error: string): Notification => ({
...defaultSuccessNotification,
...defaultErrorNotification,
duration: FIVE_SECONDS,
message: `Failed to run task: ${error}`,
})
Expand Down

0 comments on commit 3dafbc6

Please sign in to comment.