Commit Graph

109 Commits (e9689b7269bc219bd75a1d3a51770de257b2c8e8)

Author SHA1 Message Date
Johnny Steenbergen de24c0e813 feat(influx): extend pkg export all cmd to allow for filtering of output
currently, support by filtering labelName and or by resource kind

closes: #17029
2020-03-09 09:27:01 -07:00
Johnny Steenbergen 1c9fd705a3 feat(pkger): add support for exporting org resources filtered by label 2020-03-06 14:51:01 -08:00
Johnny Steenbergen 6818925643 feat(pkger): add support for exporting all and filter by resource types
note: all associations are still included for resources that match the
filte criteria.
2020-03-06 11:51:38 -08:00
Johnny Steenbergen 29af0a26ff feat(pkger): add support for exporting table view charts
closes: #16882
2020-03-04 14:20:56 -08:00
Johnny Steenbergen 39b433c43f feat(pkger): add table view parser support 2020-03-04 12:48:46 -08:00
Johnny Steenbergen fca4e13255 fix(pkger): fix issue with imports causing option task to be injected at wrong point
closes: #17069
2020-03-02 15:19:54 -08:00
Johnny Steenbergen 46758e3370 fix(pkger): correct the export of tasks to include system type tasks
wrong assumption in original design. The system tasks are actually
the CRUD tasks. Name is a bit confusing for user generated tasks.

closes: #17038
2020-02-27 17:16:12 -08:00
Johnny Steenbergen 1a12ebc8ab fix(pkger): fix bug where tasks are exported for notification rules 2020-02-27 15:28:07 -08:00
Johnny Steenbergen 7761c99818 fix(pkger): elminate threshold color requirement for guage charts 2020-02-27 09:49:12 -08:00
Johnny Steenbergen ce08936deb fix(pkger): fix check for labels having conflict
also backfills a bunch of missing tests for these has conflict types
2020-02-13 11:58:06 -08:00
Johnny Steenbergen 684f7b82ad feat(pkger): extend HTTP API to enable users to submit multiple pkgs in one call 2020-02-07 08:08:58 -08:00
Johnny Steenbergen 6ce0c3de7f feat(pkger): add support for combining pkgs 2020-02-06 12:40:30 -08:00
Johnny Steenbergen b2da311aa2 chore(pkger): simplify env refs to remove juggling state between validations 2020-02-06 10:31:43 -08:00
Johnny Steenbergen 7cf6167356 feat(influx): extend pkg command with providing env ref entries
this also extend dry run to provide env refs to it. the refactoring was
to enable that bit. Having the ability to dry run with the env ref entries
means we can dry run the pkg with the env ref values to see the impact before
the application takes place.
2020-02-06 08:48:05 -08:00
Johnny Steenbergen 1343ccf7dc chore(pkger): refactor env refs lookup to be unique by entry idx
entry idx is static and unique per object. using this here as a means
to remove duplication when assigning envs on multiple validations of a
pkg.
2020-02-06 08:48:05 -08:00
Johnny Steenbergen bbdd6bf7fc feat(pkger): add env refs for associations 2020-02-05 09:48:50 -08:00
Johnny Steenbergen 036ba49e12 feat(pkger): add env ref fields for remaining resources 2020-02-05 07:47:12 -08:00
Johnny Steenbergen 64c8707594 feat(pkger): add support for env references for buckets 2020-02-04 17:00:11 -08:00
Johnny Steenbergen 9ee07b097c chore(pkger): refactor http server to use new http.API type 2020-02-04 10:42:54 -08:00
Johnny Steenbergen 71f204d465 fix(pkger): drop text color requirement for single stat charts 2020-02-03 13:48:34 -08:00
Johnny Steenbergen 343c9b166b chore(pkger): consolidate pkger http server into pkger
this is the last step for pkger to follow the service definition pattern
that is in the works. Some bits from http were moved into kit/transport/http
for reusability. End result is to hopefully axe http pkg for resuable types in
kit. Long ways off still...
2020-02-03 12:39:47 -08:00
Johnny Steenbergen f9ed0ccb82 feat(pkger): add metrics svc middleware 2020-02-03 11:07:46 -08:00
Johnny Steenbergen c45f011a59 chore(pkger): update comment and update root of pkg error to be `root` 2020-01-24 16:53:24 -08:00
Johnny Steenbergen f22201f5a8 fix(pkger): update yaml dep and trim space for all queries exported by pkger
attempt at fixing an issue that is hard to reproduce. the dep library says it
is fixed but we are still seeing issues.

closes: #16632
2020-01-22 17:44:56 -08:00
Zoe Steinkamp 5ff7ec6035 fix: Fixing master gauge issues 2020-01-16 14:53:28 -07:00
Zoe Steinkamp 93037e3975 fix: Fixing master gauge issues 2020-01-16 14:23:04 -07:00
Zoe Steinkamp d4912dbdaa fix: Fixing master gauge issues
go test
2020-01-16 14:16:45 -07:00
Zoe Steinkamp f4ba7db697 fix: Fixing master gauge issues 2020-01-16 13:55:30 -07:00
Zoe Steinkamp 9afac5bac6 feat(ui): add the optional suffix and prefix to guage (#15909) 2020-01-16 08:40:40 -07:00
Johnny Steenbergen 93c8a2a104 feat(pkger): add service logging and tracing middlewares 2020-01-15 12:00:59 -08:00
Johnny Steenbergen 41beaf0bd5 fix(pkger): fixes issue where pkger can't discern the mime/content type of a package
also makes the yaml decoder the default. To foten we end up in application/octet-stream
which is the default for many different mime types. This provides a mechanism
around that so that when the automagical detection fails it can allow the user
to provide it via the CLI.
2020-01-14 15:44:48 -08:00
Johnny Steenbergen 234c458fa0 fix(pkger): fix missing API version in export of existing resources 2020-01-14 14:36:37 -08:00
Johnny Steenbergen 63fd1e2e9a feat(pkger): make pkger packages CRD compliant 2020-01-14 13:20:00 -08:00
Johnny Steenbergen fe12fd051e feat(pkger): add jsonnet support for package files 2020-01-13 09:55:08 -08:00
Johnny Steenbergen fdc3e7658c feat(pkger): add ability to supply a pkg from a url
the following is now possible from the CLI(same in REST API):
  influx pkg -u 1717709ffa/bucket_pkg_json
2020-01-12 07:53:58 -08:00
Michael Desa 26e8ee879c
feat: add tool to migrate 1.x chronograf dashboards and variables
feat(pkger): export dashboard and variable *ToResource methods

fix(pkger): add empty selected _measurement to builder config

feat(chronograf): add note & note visibility to dashboard cell

The 1.x DashboardCell struct had migrated since we brought the code into
the InfluxDB codebase. This allows us to migrate cells that were created
since then.

feat(cmd/chronograf-migrator): add 1.x chronograf migrator tool

feat(chronograf-migrator): add function to transpile queries

fix: update spelling of todo comment pkger/models.go

Co-Authored-By: Deniz Kusefoglu <deniz@influxdata.com>

fix(chronograf): add type to DashboardQuery

The type has evolved since this code was moved over from chronograf.
Previously, we did not have access to flux as a type of query.

feat(chonograf-migrator): transpile influxql query to flux if possible

fix(chronograf): omit fields when empty on old chronograf structs

fix: make linter not mad at me

feat(chronograf-migrator): lowercase variable names

fix(pkger): add empty selected measurement to builder config

chore(chronograf-migrator): add basic readme

chore(pkger): export Variable and Dashboard ToResource methods

fix(chronograf-migrator): move flags out of init call
2020-01-10 09:05:19 -08:00
Johnny Steenbergen 0dc5c2af92 feat(pkger): fixup flux query normalization in exporting of task 2019-12-27 15:16:48 -08:00
Johnny Steenbergen 5bdcfaee4d fix(pkger): make pkger skip system tasks when exporting all tasks 2019-12-27 14:26:18 -08:00
Johnny Steenbergen cce279a80e feat(pkger): add ability to provide secrets alongside package when applying
this provides the ability to add secret refs at runtime instead of adding
them to the pkg.
2019-12-27 12:41:42 -08:00
Johnny Steenbergen 33756ca7a8 fix(pkger): remove tasks created by checks from being exported when exporting by org 2019-12-27 09:36:23 -08:00
Johnny Steenbergen 1c2421cb9c feat(pkger): add export support for tasks 2019-12-23 15:41:14 -08:00
Johnny Steenbergen c9431bceb8 feat(pkger): add apply functionality for task resource 2019-12-23 13:56:42 -08:00
Johnny Steenbergen 8e87498317 feat(pkger): add dry run functionality for task resource 2019-12-23 11:40:28 -08:00
Johnny Steenbergen aef32b0a0a chore(pkger): improve error handling in service
this provides influxdb.Errors whenever possible from the pker service layer.
the behavior that caused the error is somewhat implicated in the errro code.
it is not perfect but is a big step forward. using the http server/client to
run pkger stuff makes it abundantly clear the errors need to be communicated
better.

closes: #16313
2019-12-23 09:36:25 -08:00
Johnny Steenbergen e33d74b38c feat(pkger): add support for tasks to parser 2019-12-23 09:24:35 -08:00
Johnny Steenbergen af5b7fd7d3 feat(pkger): add export support for notification rules 2019-12-21 14:58:02 -08:00
Greg abd8ce0089
feat(http): add functionality to retrieve/store telegraf config as toml (#16132) 2019-12-20 14:20:13 -07:00
Johnny Steenbergen 61dceaa727 feat(pkger): add application functionality for the notification rules resource 2019-12-20 12:48:46 -08:00
Johnny Steenbergen 02aec6ed29 feat(pkger): add dry run functionality for notification rules 2019-12-19 16:31:22 -08:00
Johnny Steenbergen 1d3e0daca4 feat(pkger): add parser support for notification rules 2019-12-19 12:56:02 -08:00