Commit Graph

1390 Commits (e9689b7269bc219bd75a1d3a51770de257b2c8e8)

Author SHA1 Message Date
Christopher M. Wolff 20c2439230
refactor(http): change *ast.Package to json.RawMessage in query requests (#17316) 2020-03-23 12:39:24 -07:00
Jonathan A. Sternberg 7012470479
Merge branch 'master' into feat/use-algo-w 2020-03-10 14:52:28 -05:00
Lorenzo Affetti fd729f8a38
fix(http): refactor document service and fix auth 2020-03-09 20:32:31 +01:00
Jonathan A. Sternberg 8d2ba699a0
refactor(http): remove the spec and update lang usage (#17148)
This removes the spec and updates the lang package usage to make use of
passing in the runtime as a parameter.

It removes all direct dependendencies on the flux runtime from the http
package.
2020-03-09 13:30:43 -05:00
Jonathan A. Sternberg 0d6e4e310b
Merge branch 'master' into feat/use-algo-w 2020-03-06 16:46:49 -06:00
Jonathan A. Sternberg 834a8740e0
refactor(task/backend): move the task/backend constants to the global package (#17133)
This moves a few types and constants to the global package so it can be
used without importing the `task/backend` package. These constants are
referenced in non tasks-specific code.

This is needed to break a dependency chain where the task backend will
call into the flux runtime to perform parsing or evaluation of a script
and to prevent the http package from inheriting that dependency.
2020-03-06 16:19:32 -06: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
Brett Buddin de0b92ebc9
fix(http): Revert d51447fc34. 2020-03-06 12:24:12 -05:00
Jonathan A. Sternberg bcbb9df72e
refactor(task): tasks will now use the flux language service (#17104)
The tasks subsystem will now use the flux language service to parse and
evaluate flux instead of directly interacting with the parser or
runtime. This helps break the dependency on the libflux parser for the
base influxdb package.

This includes the task notification packages which were changed at the
same time.
2020-03-05 14:36:58 -06:00
Brett Buddin f897c15187
Merge pull request #17091 from influxdata/bb/require-content-type
fix(http): Require Content-Type for query endpoint
2020-03-05 12:06:48 -05:00
Alirie Gray dff47721ce
fix(secrets): wrap secrets service in authorizer (#17099) 2020-03-05 08:35:14 -08:00
Jonathan A. Sternberg a907e05426
refactor(http): modify query handler to use a language service (#17074)
The language service abstracts away the parse source which breaks the
dependency without moving any of the code.
2020-03-05 10:32:17 -06:00
Brett Buddin d51447fc34
fix(http): Require Content-Type for query endpoint. 2020-03-05 11:12:33 -05:00
Alirie Gray c4e9201859
refactor(api): add HTTPC client service to notification rules API (#17087) 2020-03-04 16:32:33 -08:00
Jorge Landivar 3c8ad39733 fix(checks): typo causing panic in checks endpoint 2020-02-28 10:54:06 -06:00
Lorenzo Affetti d4af93eec2
refactor(http): make client contain every service available, and make it more pluggable 2020-02-26 17:45:38 +01:00
Gavin Cabbage fe21b9eb88
feat(http): checks client (#16922) 2020-02-26 11:34:10 -05:00
pierwill d70076e643
fix(http): Add secure flag to session cookie (#16574) 2020-02-25 14:37:11 -08:00
Lorenzo Affetti 4a83a80784
Merge pull request #16998 from influxdata/fix/add-document-service
feat(http): add document service to http Service
2020-02-25 22:47:37 +01:00
Alirie Gray 0ed292b1be
fix(tasks): update tasks authorization (#16994) 2020-02-25 12:59:59 -08:00
Lorenzo Affetti 3171cf0656
feat(http): add document service to http Service 2020-02-25 16:22:33 +01:00
Alirie Gray 3120b4c47e
refactor(tasks): add Client to http TaskService (#16912) 2020-02-24 11:41:21 -08:00
Lorenzo Affetti 9defb8a77f
feat(http): add document service 2020-02-21 15:58:40 +01:00
tmgordeeva 890c943643
fix(backup): handle backup with no credentials file (#16877)
* fix(backup): handle backup with no credentials file

Backups and restores should work whether or not the original installation uses
a credentials file and whether or not the backup contains a credentials file.
2020-02-14 09:19:58 -08:00
George f239a2ed9c
fix(kv): remove URM and Authorizations by UserID Index (#16852)
* Revert "fix(kv): Don't stop when key not found from index."

This reverts commit bd9167d383.

* Revert "fix(kv): push down org ID to skip in delete URM (#16841)"

This reverts commit a5f508de77.

* Revert "fix(kv): delete authorization from correct index bucket (#16835)"

This reverts commit 7349216e94.

* Revert "feat(kv): Index Authorizations by User ID (#16818)"

This reverts commit df36fe957b.

* Revert "feat: add indexes to urm for user lookups (#16789)"

This reverts commit 9561d0a4f4.
2020-02-13 15:27:57 +00:00
Nathaniel Cook 03f65cf045
fix(influxql): add explicit routing to influxql service (#16832)
Prior to this change influxql requests were sent to the same back end as Flux queries.
This MAY not always be the case. Now InfluxQL queries are specifically routed to the InfluxQLService.
In the case of this OSS build the FluxService and InfluxQLService are the same.
2020-02-12 10:07:29 -07:00
Johnny Steenbergen e650c941c7 fix: remove duplicate content types from httpc requests
2 issues from investigating this error. First is the status check func
did not identify it was a media unsupported issue adn tries to unmarshal
the empty response body. The 2nd, was the double content type headers were
causing an error. Locally this error does not surface, cannot repoduce on
macos, but in cloud it is persistent.

closes: #16819
2020-02-11 11:14:44 -08:00
George df36fe957b
feat(kv): Index Authorizations by User ID (#16818)
* feat(kv): add user id index on authorizations

* chore(auths): test FindAuthorizations both with and without a populated index

* chore(kv): cleanup index skipping flag in auths service

* fix(kv): bad flag around auth by user index population

* fix(kv): auth by user index lookup use correct buckets

* chore(kv): ensure indexer is called as expected when auth user index missing

* chore(kv): add benchmarks around authorization lookup
2020-02-11 17:34:20 +00:00
kelwang 2761c1f48a
Merge pull request #16786 from influxdata/feat_cli_secret
feat(cmd/influx): add secret cli
2020-02-10 10:39:18 -07:00
Nathaniel Cook 9f7d4f9be0
feat(query): adds support for influxql as language type for queries (#16712)
This change allows for the InfluxQL language type to be used with the
/v2/query API endpoint.

This change also introduces a way to give the transpiler an explicit
bucket name instead of using the DBRPMapping service.
Requests to the endpoint will know the bucket name directly but will
likely not have run the migration step to populate the DBRP mappings.
2020-02-07 15:20:50 -07:00
Kelvin Wang e3acd7f86b feat(http): add secret service 2020-02-07 15:54:28 -05: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
Michael Desa c8edf66ee4
chore(http): export NewBucketResponse function
This function is required for maintaining a similar buckets reponse.
2020-02-06 16:01:30 -08:00
Johnny Steenbergen 64c8707594 feat(pkger): add support for env references for buckets 2020-02-04 17:00:11 -08:00
Johnny Steenbergen 8150e1b51a chore(http): refactor bkt service to use API type 2020-02-04 14:41:56 -08:00
Johnny Steenbergen 236f52ba62 fix(http): improve error handling and response to api consumer for org service 2020-02-04 09:43:51 -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 2b0b32abe8 chore(http): pull out eror handler into kit pkg for portability 2020-02-03 12:39:47 -08:00
Jade McGough e78be03465
Merge pull request #16527 from oiooj/pr-panic
fix(http): fix /telegrafs panics when using org=org_name parameter
2020-01-26 19:48:49 -08:00
kun 8e6ce60cf5 fix(http): fix /telegrafs panics when using org=org_name parameter 2020-01-27 11:04:11 +08:00
Johnny Steenbergen 592e9369a7 feat(pkger): add support for inspecting url paths to grab extension for pkger decoding 2020-01-23 14:14:28 -08:00
Andrew Watkins 78c1e9e19e
refactor(ui/views): normalization (#16616)
* refactor: move views logic to separate directory

* refactor: normalize views

* fix: spinners

* fix: dont render views until status is done

* fix(http/dashboards): view shape not returning from getDashboard

* test: delete irrelevant and redundant test

* fix: go tidy

* test: skipping monaco test

* chore: sort type exports

* chore: cleanup
2020-01-23 13:17:08 -08:00
Jacob Marble b836ab9c17
feat(storage): implement backup and restore (#16504)
* feat(backup): `influx backup` creates data backup

* feat(backup): initial restore work

* feat(restore): initial restore impl

Adds a restore tool which does offline restore of data and metadata.

* fix(restore): pr cleanup

* fix(restore): fix data dir creation

* fix(restore): pr cleanup

* chore: amend CHANGELOG

* fix: restore to empty dir fails differently

* feat(backup): backup and restore credentials

Saves the credentials file to backups and restores it from backups.

Additionally adds some logging for errors when fetching backup files.

* fix(restore): add missed commit

* fix(restore): pr cleanup

* fix(restore): fix default credentials restore path

* fix(backup): actually copy the credentials file for the backup

* fix: dirs get 0777, files get 0666

* fix: small review feedback

Co-authored-by: tmgordeeva <tanya@influxdata.com>
2020-01-21 14:22:45 -08:00
Andrew Watkins a4e3dce135
refactor(ui): normalize cells (#16569)
* wip: cells reducer

* wip: normalize cells

* refactor(norm): dashboards

* chore: move GetResources to resources dir

* feat: introduce GetResource component

* feat: introduce GetTimeRange component

* refactor(cells): move updateCells to cells thunks

* refactor: move clone cell

* refactor: stop passing entire dashboard to dashboard page

* chore: cleanup

* fix: overlays not rendering

* refactor: move GlobalAutoRefresh polling to container

* refactor: stop passing entire dashboard object

* fix: deletion of dashboards

* fix: runtime error and formatting
2020-01-21 10:54:24 -08:00
Lorenzo Affetti 0e0b36be0c feat(task): make task query without returning content 2020-01-17 16:51:01 +01:00
Lorenzo Affetti ceb6598cbf
Merge pull request #16548 from influxdata/feat/ret-no-cont-with-err
feat(query): add 'Prefer: return-no-content-with-error' behavior
2020-01-17 16:24:55 +01:00
Zoe Steinkamp f4ba7db697 fix: Fixing master gauge issues 2020-01-16 13:55:30 -07:00
Zoe Steinkamp cd8eeaaf95
Merge pull request #16532 from influxdata/zs-optionalsuffix15909
Zs optionalsuffix15909
2020-01-16 09:14:13 -07:00
Zoe Steinkamp 8835f4ea1d feat(ui): add the optional suffix and prefix to guage (#15909) 2020-01-16 08:40:40 -07:00
Zoe Steinkamp 9afac5bac6 feat(ui): add the optional suffix and prefix to guage (#15909) 2020-01-16 08:40:40 -07:00