Commit Graph

443 Commits (ebd37c8b9a280b100395c63390b9c0a118b6b823)

Author SHA1 Message Date
Daniel Moran 68f4df204f
fix(cmd/influx): improve CLI error returned on org-not-found (#20387) 2020-12-21 08:44:50 -08:00
Greg 0a28e7be99
fix(cli): don't overwrite stack name/desc on stack update (#20362) 2020-12-16 18:09:22 -07:00
Adrian Thurston e0543e6e3a
fix: various improvements to setup command (#20155)
When checking for existing configs, check the length of the array after
parsing. There could be an empty config file present.

If --name was specified then use that as the configuration name, regardless of
whether or not there are existing configs.

Allow a 0 (infinite) retention to be specified with --retention when in
interactive mode.


Co-authored-by: Dan Moran <dmoran@influxdata.com>
2020-12-02 10:39:56 -05:00
Daniel Moran 5fa60878d9
feat(cmd/influx): add hints to ID-related errors in DBRP CLI commands (#20204) 2020-12-01 10:52:54 -05:00
Daniel Moran cfca0cc85f
feat(cmd/influx): allow for setting v1 passwords via CLI args (#20123) 2020-11-20 15:09:23 -05:00
Dan Moran 4541ab936f chore: adjust help text based on PR feedback 2020-11-18 10:54:19 -05:00
Stuart Carnie d5becff970 fix: UX improvements and bug fixes to dbrp commands
Closes #20085
2020-11-18 10:54:19 -05:00
J. Emrys Landivar 478d25e774
feat(cmd/influx): Add DBRP cli commands as `influx v1 dbrp` (#20067)
Co-authored-by: Dan Moran <dmoran@influxdata.com>
2020-11-17 15:14:55 -05:00
George MacRorie 16d916a952 refactor(kv): delete deprecated kv service code
This includes removal of a lot of kv.Service responsibilities. However,
it does not finish the re-wiring. It removes documents, telegrafs,
notification rules + endpoints, checks, orgs, users, buckets, passwords,
urms, labels and authorizations. There are some oustanding pieces that
are needed to get kv service compiling (dashboard service urm
dependency). Then all the call sites for kv service need updating and
the new implementations of telegraf and notification rules + endpoints
needed installing (along with any necessary migrations).
2020-11-16 12:41:26 +00:00
Stuart Carnie 42aabb28fc chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
Ben Johnson b5f127597a fix: Use --skip-verify flag for backup/restore CLI command.
This commit passes the `--skip-verify` flag to the underlying HTTP
client in for the `BackupService` & `RestoreService`.
2020-11-11 12:54:22 -07:00
Daniel Moran 15b9531273
fix: correct various typos (#19987)
Co-authored-by: kumakichi <xyesan@gmail.com>
2020-11-11 13:54:21 -05:00
Stuart Carnie 3c9ee3f8af chore: Improve help for --no-password switch 2020-11-10 10:38:36 +11:00
Stuart Carnie 85b9d84e57 fix: PR Feedback 2020-11-09 15:22:05 -05:00
Stuart Carnie 5cec8a44cc fix: Improve `v1 auth` CLI UI
The enhancements and fixes to the user experience are as follows:

* Rename active and inactive commands to the actions set-active and
  set-inactive respectively to clarify their behavior

  To set a token to active:

  ```
  influx v1 auth set-active
  ```

  To set a token to inactive, preventing its use:

  ```
  influx v1 auth set-inactive
  ```

* allow `--id` or `--username` anywhere a single authentication token is
  required

* use separate vars to store the flag state of each command

* factor out the behavior to find a single authentication token into
  a shared function, `v1FindOneAuthorization`
2020-11-09 15:22:05 -05:00
Daniel Moran ee390ddfd3
fix: parsing of retention policy CLI args in `influx setup` and `influxd upgrade` (#19928) 2020-11-06 17:50:32 -05:00
Ben Johnson 419b0cf76b feat: Implement full restore 2020-11-05 10:05:01 -07:00
Ben Johnson 5f1968b331 fix: Skip deleted shard groups during backup 2020-11-05 10:05:01 -07:00
Ben Johnson 6e1097c625 feat: Minor updates to backup/restore 2020-11-05 10:05:01 -07:00
Ben Johnson 23679c2375 feat: Implement backup/restore CLI subcommands. 2020-11-05 10:05:01 -07:00
George 8ca2989717 feat(dashboards): isolate service in own package (#19852)
feat(dashboard): add owner ID to dashboard model

This adds the explicit OwnerID field to Dashboard and also adds a
migration which populates dashboard owners IDs based on dashboard owner
URMs.

feat(dashboards): isolate service in own package

This change isolates the dashboards service into its own package. It
also updates the API to no longer interface with user resource mappings.
Instead it defines new handlers which rely on the newly populated owner
ID field.

chore(dashboards): port tests from http package into new service transport package

chore(launcher): use dashboard transport package client in launcher tests

chore(kv): remove now defunkt dashboard service implementations
2020-11-04 15:53:02 +00:00
George MacRorie b274e15eac fix(telegraf): support pagination parameters when listing 2020-11-04 15:53:02 +00:00
Stuart Carnie 62a00fcf71 chore: Use new authorization client 2020-11-02 08:28:22 -07:00
Stuart Carnie ecbb5987a6 feat: add v1 auth set-password command to set token passwords
* Added capability to HTTP API to search for tokens by ID or Token
2020-10-29 08:21:38 -07:00
Stuart Carnie 4f85ce82a8 feat(cli): Extend CLI with v1 authorization commands
This commit add a series of new subcommands to the `influx` CLI tool.

* `influx v1` to host any InfluxDB v1 specific commands
* `influx v1 auth` for v1 authorization token management.

The commands provide access to the private authorization APIs
used to manage authorization tokens for v1 compatibility APIs,
including:

* `/write`
* `/query`

Closes #19765
2020-10-29 08:21:38 -07:00
George 3d643e0681
refactor(notification): move rule service into own package (#19804)
* refactor(notification): move rule service into own package

* chore(launcher): fix tests to use clients as opposed to direct kv service

* chore(influx): update task cli to consume core domain model task from client

* chore(kv): remove rule service behaviours from kv

This also introduces the org id resolver type. Which is transplanted
from the kv service. As this one function coupled all resource
capabilities onto the kv service. Making removing these capabilities
impossible. Moving this type out into its own package which depends on
each service explicitly ensures we don't have one type which has to
implement all the service contracts.

* fix(launcher): remove double reference to influxdb package
2020-10-27 11:45:05 +00:00
Gershon Shif ce00f0d226
fix(build): building arm 6 (#19756) 2020-10-21 16:29:48 -07:00
Greg 8c0ff75c6d
fix(cli): return error on failed resource addition (#19750) 2020-10-15 09:29:00 -06:00
Greg 9ab10c8b6c
feat(cli): provide means to remove stack without confirmation (#19740) 2020-10-14 13:35:58 -06:00
Johnny Steenbergen db97f1c1f6
fix(influx): update default value of list tasks influx command to 100 (#19732) 2020-10-12 17:05:56 -06:00
Greg 8243eb8a03
fix(cli): workaround for cloud api to return a single telegraf config if specified (#19695) 2020-10-06 12:55:49 -06:00
Greg fcb70c26d5
fix: add ability to define bucket to write to with a BucketFilter (#19658) 2020-10-05 15:05:49 -06:00
Pavel Závora a8c7254281
Merge pull request #19660 from influxdata/19335/rate_limit
feat(cmd/influx/write): allow to limit write rate
2020-10-05 17:01:15 +02:00
Pavel Zavora f8ffcb8a65 feat(cmd/influx/write): specify --rate-limit as COUNT(B|kB|MB)/TIME(s|sec|m|min) 2020-10-02 05:07:37 +02:00
Pavel Zavora b2a51593b3 feat(cmd/influx/write): allow to limit write rate 2020-10-02 02:31:49 +02:00
vlastahajek 999660ae2e feat(upgrade): upgrade command basic skeleton 2020-10-01 08:06:42 -07:00
Greg 8fea0cdda6
fix(cli): don't accept short passwords in setup (#19593) 2020-09-29 16:28:10 -06:00
Stuart Carnie 1e5ed47a61 fix: Increase the default default line length to 16MB and add option 2020-09-29 13:44:18 -07:00
greg linton 724de9d0d1 chore: fix typo in cli flag 2020-09-22 11:49:26 -06:00
greg linton 13cb2927bb Merge branch 'master' into feat/18733 2020-09-21 17:21:06 -06:00
Russ Savage 7c76efd6ea
fix(cli): update annotation order to match UI (#19503) 2020-09-14 10:18:29 -07:00
Pavel Zavora 0718c9a53f chore(cmd/influx/write): update option description 2020-09-12 11:13:27 +02:00
Pavel Zavora 90a3a7c8d8 feat(cmd/influx/write): add --errors-file option #18742 2020-09-12 11:13:27 +02:00
greg linton 53b325c7d0 Merge branch 'master' into feat/18733 2020-09-11 14:23:24 -06:00
Stuart Carnie 7964f86ffc
fix: switch port to 8086
fix(readme): update the port and setup
2020-09-03 14:40:29 -07:00
greg linton 4e1bc7ceb2 feat(pkger): add ability to export dashboards by name 2020-08-27 15:32:04 -06:00
Brett Buddin 09b0258ab4
chore(master): Merge branch 'master' into sgc/tsm1 2020-08-27 14:43:50 -04:00
Greg 80b85162e0
feat(cli): add option to dump the raw flux response from query (#19433) 2020-08-26 12:12:17 -06:00
Stuart Carnie f46e36b6ac
Merge remote-tracking branch 'origin/master' into sgc/tsm1 2020-08-17 09:27:00 -07:00
Stuart Carnie 80428fe2a9
fix(influx): httpClient global is cached, resulting in flaky tests 2020-08-14 15:10:24 -07:00