influxdb/kv
Lyon Hill 3c6779f011
feat(task): Allow tasks to run more isolated from other task systems (#15384)
* feat(task): Allow tasks to run more isolated from other task systems

To allow the task internal system to be used for user created tasks as well
as checks, notification and other future additions we needed to take 2 actions:

1 - We need to use type as a first class citizen, meaning that task's have a type
and each system that will be creating tasks will set the task type through the api.
This is a change to the previous assumption that any user could set task types. This change
will allow us to have other service's white label the task service for their own purposes and not
have to worry about colissions between the types.

2 - We needed to allow other systems to add data specific to the problem they are trying to solve.
For this purpose adding a `metadata` field to the internal task system which should allow other systems to
use the task service.

These changes will allow us in the future to allow for the current check's and notifications implementations
to create a task with meta data instead of creating a check object and a task object in the database.
By allowing this new behavior checks, notifications, and user task's can all follow the same pattern:

Field an api request in a system specific http endpoint, use a small translation to the `TaskService` function call,
translate the results to what the api expects for this system, and return results.

* fix(task): undo additional check for ownerID because check is not ready
2019-10-11 08:53:38 -06:00
..
auth.go feat(http): find auths by org 2019-04-14 18:06:19 +08:00
auth_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
bucket.go feat(kv): random ids without comma, space, backslash for org and bucket 2019-09-08 01:50:05 -05:00
bucket_test.go feat(kv): random ids without comma, space, backslash for org and bucket 2019-09-08 01:50:05 -05:00
check.go feat(influxdb): user disabling 2019-09-23 11:57:16 -07:00
check_test.go fix(notification/check): ensure cloud integration works 2019-08-27 15:02:53 -04:00
cursor.go feat(platform): add generic kv store 2018-12-18 16:08:48 -05:00
cursor_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
dashboard.go fix(kv): updatedAt should be updated as well 2019-05-18 23:36:48 -04:00
dashboard_test.go feat(http): add audit log 2019-05-16 10:57:28 -04:00
document.go fix(kv): updatedAt should be updated as well 2019-05-18 23:36:48 -04:00
document_test.go feat(influxdb): add support for templates 2019-03-06 13:18:31 -08:00
kv_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
kvlog.go feat(http): add audit log 2019-05-16 10:57:28 -04:00
kvlog_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
label.go fix label tests 2019-04-12 01:29:49 -07:00
label_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
lookup_service.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
lookup_service_test.go feat(kv): random ids without comma, space, backslash for org and bucket 2019-09-08 01:50:05 -05:00
notification_endpoint.go fix(http): fix NotificationEndpoint: (#15148) 2019-09-23 15:55:37 -07:00
notification_endpoint_test.go fix(http): fix notfication endpoint secret store 2019-08-28 16:02:17 -04:00
notification_rule.go fix(notification/rule): fixed http NotificationRule (#15245) 2019-10-07 09:36:55 +02:00
notification_rule_test.go feat(influxdb): user disabling 2019-09-23 11:57:16 -07:00
onboarding.go remove org from bucket 2019-04-22 18:39:05 -04:00
onboarding_test.go feat(kv): random ids without comma, space, backslash for org and bucket 2019-09-08 01:50:05 -05:00
org.go feat(kv): random ids without comma, space, backslash for org and bucket 2019-09-08 01:50:05 -05:00
org_test.go feat(kv): random ids without comma, space, backslash for org and bucket 2019-09-08 01:50:05 -05:00
passwords.go Minor text updates for password error and default scraper name (#12448) 2019-03-08 09:12:59 -08:00
passwords_test.go refactor: http error serialization matches the new error schema (#15196) 2019-09-19 10:06:47 -05:00
scrapers.go feat(influxdb): add scraper filter 2019-04-25 11:33:34 -04:00
scrapers_test.go feat(influxdb): add scraper filter 2019-04-25 11:33:34 -04:00
secret.go fix(kv): fix extra \x00 secret decoding 2019-08-15 21:56:20 -04:00
secret_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
service.go feat(kv): random ids without comma, space, backslash for org and bucket 2019-09-08 01:50:05 -05:00
service_test.go feat(authentication): Add cli args for specifying session length and renewal (#13924) 2019-05-15 10:16:47 -07:00
session.go feat(task): impersonate user on task execution (#14675) 2019-08-15 18:31:52 -06:00
session_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
source.go add spans to multiple services 2019-03-07 12:12:31 -07:00
source_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
store.go add spans to multiple services 2019-03-07 12:12:31 -07:00
task.go feat(task): Allow tasks to run more isolated from other task systems (#15384) 2019-10-11 08:53:38 -06:00
task_test.go fix(task): include offset in next due calculation (#15281) 2019-09-25 15:21:37 -06:00
telegraf.go fix(influxdb): rename telegraf orgID 2019-06-03 16:20:53 -04:00
telegraf_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
unique.go fix(kv): remove extraneous function calls 2019-09-08 02:53:46 -05:00
urm.go fix(kv): ignore not found error when removing org dep resources 2019-09-03 18:32:04 -04:00
urm_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
user.go fix(http): Ensures users are created with an active status 2019-09-30 15:37:59 -07:00
user_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
variable.go fix failures in variable http testing 2019-06-20 16:25:38 -07:00
variable_test.go fixed bolt and inmem tests 2019-06-20 16:25:38 -07:00